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.
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.
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!