Opened 2 years ago

Last modified 9 days ago

#9886 new enhancement

ffmpeg does not warn about broken multiplexing

Reported by: eram Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by eram)

Summary of the bug:
How to reproduce:

% ffmpeg -y -i bad-interleaving.mkv -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -v trace output.mp4 1>ffmpeg.stdout 2>ffmpeg.stderr

The file bad-interleaving.mkv has an interleaving problem at 18:32 where the video gets stuck bud the audio keeps playing. Video playback resumes later at 34:37. Both input and output files have the exact same issue. mplayer successfully reports this problem during playback:

% mplayer bad-interleaving.mkv
MPlayer SVN-r38359 (C) 2000-2022 MPlayer Team
226 audio & 469 video codecs
[...]
Possibly bad interleaving detected.
Use -ni option if this causes playback issues and avoid or fix the program that created the file.
[...]
Exiting... (Quit)

I think that ffmpeg.stderr at line 108031 could mention something about it, but not sure if it's warning enough:

108030# frame=26488 fps= 67 q=40.0 size=  132352kB time=00:18:39.37 bitrate= 968.6kbits/s dup=0 drop=184 speed=2.85x    
108031# [mp4 @ 0x55a47535e500] Delay between the first packet and last packet in the muxing queue is 10008163 > 10000000: forcing output

Sample file and full logs:

https://mega.nz/file/gfI00QyR#yHAlwsDaTm-3jsxcscoy2ZksBV33VUitxUN0j9lJDKQ

Change History (8)

comment:1 by eram, 2 years ago

Description: modified (diff)

comment:2 by eram, 2 years ago

Description: modified (diff)

comment:3 by eram, 2 years ago

Description: modified (diff)

comment:4 by eram, 2 years ago

Description: modified (diff)

comment:5 by eram, 2 years ago

Description: modified (diff)

comment:6 by eram, 2 years ago

Description: modified (diff)

comment:7 by eram, 2 years ago

Description: modified (diff)

comment:8 by eram, 9 days ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.