Page 1 of 1

ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Mon Dec 05, 2016 1:33 am
by stib
In the last couple of versions I've been having an issue where ffmpeg will randomly freeze mid-encode. There is no crash or error message, it just stops encoding and never finishes. It does this at a random point in the encode, and it doesn't do it repeatably; if I kill one encode and then repeat the same command it will usually complete successfully. It also seems to happen regardless of the command I'm using. so it will happen if I do:

Code: Select all

ffmpeg -i input.avi output.mp4
and also using a different codec with a different input and output format:

Code: Select all

ffmpeg -i '.\alpha test.mov'  -c:v prores_ks -profile:v 4 -quant_mat 4 -pix_fmt yuva444p10le -alpha_bits 8 'prorestest.mov'
This is on Windows7 x64 with ffmpeg version N-82759-g1f5630a (updated 5/12/2016).

So in short it's the worst kind of bug: entirely non-repeatable. Has anyone else had this happen?

Re: ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Thu Dec 08, 2016 7:03 pm
by llogan
Is it reproducible on multiple machines?

Re: ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Sat Dec 10, 2016 5:49 am
by Degru
I am having this same issue, latest version, Win10 x64

Re: ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Sun Dec 11, 2016 3:04 am
by Zeranoe
To anyone experiencing this issue, please provide the full uncut command and command output.

Please use:

Code: Select all

ffmpeg -loglevel verbose -i ...
Degru wrote:I am having this same issue, latest version, Win10 x64
You could open a bug report and post a stack trace.

Re: ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Sun Dec 11, 2016 4:31 am
by Degru
How do I go about putting this in a script? The issue is extremely intermittent, happening only 1 in 300 encodes or so. I need it to go into a file that gets overwritten every time until it freezes up, because it takes a LONG time to reproduce this.

Re: ffmpeg randomly freezes - vers. version N-82759-g1f5630a

Posted: Sun Dec 11, 2016 5:05 pm
by Zeranoe
This could be related to http://ffmpeg.org/pipermail/ffmpeg-user ... 07861.html

I believe this issue was due to a bug in winpthreads.