#11250(ffmpeg:new): VVC MP4 Decoding Issue - Frames Are Missing
#11250: VVC MP4 Decoding Issue - Frames Are Missing -------------------------------------+------------------------------------- Reporter: | Type: defect Rupert_Williamson | Status: new | Priority: important Component: ffmpeg | Version: Keywords: vvc, vvenc, | unspecified livbbenc, mp4 | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: Attempting to extract frames from a vvenc-encoded .mp4 file does not extract all the frames. How to reproduce: {{{ Encode with: % ffmpeg -r 60 -ss 0 -i silver.mov -t 4 -y -c:v libvvenc vvc.mp4 Then decode with: ffmpeg -r 60 -i vvc.mp4 out/out_%04d.png ffmpeg version 2024-10-10-git-0f5592cfc7-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers }}} Rather than getting 240 frames as I would expect (4 seconds of 60.000 fps input), I only get 209 frames out. In this case the input file is a lossless 8bpc RGB 60fps 4K uncompressed .mov file. However I have this issue with other files too, such as 16 bit .nut files or even 16bpc .tif sequences. Gyan thinks it "notionally appears to be a bug in the mp4 muxer" and sees an "editlist setting the start of the video track output from ~half- second." For more details, you can see a post I made here: https://www.reddit.com/r/ffmpeg/comments/1g684mo/vvc_decoding_issue_frames_a... -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by MasterQuestionable): * cc: MasterQuestionable (added) * keywords: vvc, vvenc, livbbenc, mp4 => mp4 editlist * version: unspecified => git-master * component: ffmpeg => avformat * summary: VVC MP4 Decoding Issue - Frames Are Missing => VVC MP4 decoding of frames missing Comment: ͏ Another MP4 editlist shenanigans... -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by MasterQuestionable): ͏ Also input "-ss" with output "-t"..? ͏ Try "-t" as input? ͏ Also express "-r" implies frame rate override: ͏ At times may cause unexpected behavior (when using with input of defined frame rate incompatible). -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Rupert_Williamson): Replying to [comment:2 MasterQuestionable]:
͏ Also input "-ss" with output "-t"..? ͏ Try "-t" as input?
͏ Also express "-r" implies frame rate override: ͏ At times may cause unexpected behavior (when using with input of defined frame rate incompatible).
I just tried several permutations of different orders of -ss, -i, and -t, as well as including or excluding the -r flag. It seems like it only happens when -r 60 is specified when decoding. Here were the results: {{{ -ss -i -t, -r encode, -r for decode: 209 frames -ss -t -i, -r encode, -r for decode: 209 frames -i -ss -t, -r encode, -r for decode: 209 frames -ss -i -t, -r encode only: 240 frames -ss -t -i, -r encode only: 240 frames -i -ss -t, -r encode only: 240 frames -ss -i -t, -r decode only: 209 frames -ss -t -i, -r decode only: 209 frames -i -ss -t, -r decode only: 209 frames -ss -i -t, no -r flag used: 240 frames -ss -t -i, no -r flag used: 240 frames -i -ss -t, no -r flag used: 240 frames }}} Given both the .mov file and the output .vvc file are exactly 60.000 fps, I don't really understand why the -r flag is causing a problem, but apparently it is. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by MasterQuestionable): ͏ Probably bug. ͏ Did you reproduce what mentioned by Gyan? ͏ https://old.reddit.com/r/ffmpeg/comments/1g684mo/vvc_decoding_issue_frames_a... ͏ ([https://ffmpeg.org/ffmpeg-formats.html#mov_002fmp4_002f3gp ͏"-ignore_editlist"] workaround) -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Rupert_Williamson): Replying to [comment:4 MasterQuestionable]:
͏ Probably bug.
͏ Did you reproduce what mentioned by Gyan? ͏ https://old.reddit.com/r/ffmpeg/comments/1g684mo/vvc_decoding_issue_frames_a... ͏ ([https://ffmpeg.org/ffmpeg-formats.html#mov_002fmp4_002f3gp ͏"-ignore_editlist"] workaround)
͏ ----
͏ For debug adding below may help: ͏ `-v debug -hide_banner -nostdin -nostats`
Yes, I could, using {{{ ffmpeg -r 60 -ignore_editlist true -i vvc.mp4 out/out_%04d.png }}} produces all 240 frames, whereas {{{ ffmpeg -r 60 -i vvc.mp4 out/out_%04d.png }}} only produces 209 frames. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11250: VVC MP4 decoding of frames missing -------------------------------------+------------------------------------- Reporter: | Owner: (none) Rupert_Williamson | Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mp4 | Blocked By: editlist | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Nuo Mi): Hi Rupert Williamson This should fixed by https://patchwork.ffmpeg.org/project/ffmpeg/patch/1aff505d- 06f0-4773-9b25-747e3fca21a8@hege.cc/ Could you help check and close this? thank you -- Ticket URL: <https://trac.ffmpeg.org/ticket/11250#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg