[FFmpeg-trac] #10348(undetermined:open): Invalid B-frames timestamps importing .h264 or .hevc stream

FFmpeg trac at avcodec.org
Mon May 8 02:15:22 EEST 2023


#10348: Invalid B-frames timestamps importing .h264 or .hevc stream
-------------------------------------+-------------------------------------
             Reporter:  slydiman     |                    Owner:  (none)
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  frames       |               Blocked By:
  timestamp h264 hevc                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Balling):

 * status:  new => open

Comment:

 >You must playback the invalid MP4 in Google Chrome

 Yes, Chrome Canary is horrific playback. Still, you were not using last
 version: Lavf58.51.101 is old. Latest version is a little different:

 ffmpeg -i http://slydiman.me/ffmpeg/invalid.mp4 -vf vfrdet -f null -


 {{{
 [null @ 0000016fe18d5880] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 99 >= 98
 [out#0/null @ 0000016fdfa58480] video:47kB audio:0kB subtitle:0kB other
 streams:0kB global headers:0kB muxing overhead: unknown
 frame=  100 fps= 26 q=-0.0 Lsize=N/A time=00:00:01.96 bitrate=N/A
 speed=0.51x
 [Parsed_vfrdet_0 @ 0000016fe185e400] VFR:0.030303 (3/96) min: -24000 max:
 48000 avg: 16000

 }}}


 while newest version gives this:

 {{{
 ffmpeg -i invli.mp4 -vf vfrdet -f null -

 [null @ 000001a403501a00] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 98 >= 97
 [out#0/null @ 000001a4035e83c0] video:46kB audio:0kB subtitle:0kB other
 streams:0kB global headers:0kB muxing overhead: unknown
 frame=   99 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.94 bitrate=N/A speed=
 3.4x
 [Parsed_vfrdet_0 @ 000001a407079640] VFR:0.020408 (2/96) min: -24000 max:
 48000 avg: 0
 }}}

 Also:

 ffmpeg -i http://slydiman.me/ffmpeg/b-frames.h264 -vf vfrdet -f null -

 gives perfect VFR:0.000000 (0/100) but says:

 [h264 @ 00000186dc07f8c0] non-existing SPS 0 referenced in buffering
 period



 Extracting ffmpeg -i invli.mp4 -c copy nceaca.264 back gives bitperfct
 file.

 There are many bugs, e.g. just now:
 https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230505113123.28404-1-jeebjp@gmail.com/
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10348#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list