Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: eumagga0x2a on April 03, 2017, 05:51:17 PM

Title: Crash encoding mpeg2 with the number of consecutive b-frames set to zero
Post by: eumagga0x2a on April 03, 2017, 05:51:17 PM
At the very end of an encoding process using the Mpeg2 (ff) encoder, probably at postEncode, Avidemux crashes hard if B-frames were disabled. The saved video is playable and seems to be complete.
Title: Re: Crash encoding mpeg2 with the number of consecutive b-frames set to zero
Post by: eumagga0x2a on April 03, 2017, 08:07:44 PM
Crash fixed by [ffEncoder] make sure we have something to pop out before popping it out (https://github.com/mean00/avidemux2/commit/ecb1382c8c7feb857a023741609ca9128da2b20d), thanks! Will later look into apparently each mpeg2 encoding ending with

Application provided invalid, non monotonically increasing dts to muxer in stream

error from libavformat/mux.c:642 at least when using the Mpeg PS container.

Title: Re: Crash encoding mpeg2 with the number of consecutive b-frames set to zero
Post by: eumagga0x2a on April 04, 2017, 09:25:37 AM
The remaining issue was fixed by Mean while I was still sleeping  :)

[lav/encoder] bail if the encoded frame queue is empty (https://github.com/mean00/avidemux2/commit/9648e4308c05823cf19b31eec7c111ed6c26bf43)

Thanks!