#10894(undetermined:new): FFmpeg can't handle h264 NAL units that are split between packets
#10894: FFmpeg can't handle h264 NAL units that are split between packets -------------------------------------+------------------------------------- Reporter: Rokolell | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- When a NAL unit is split between AVPackets, FFmpeg fails to decode it properly, causing graphical glitching. How to reproduce: - Download the provided archive with example data. - Compile test.c with {{{ gcc -lavcodec -lavutil -g test.c -o test }}} - Run the test with {{{ ./test . }}} - View 420-440.yuv420p in your preferred raw image viewer to see the glitches. The resolution for each frame is shown by the example program. Example: [[Image(https://cdn.discordapp.com/attachments/1196894597515849779/1212588460393766993/w0j6RKS8ejPgAAAABJRU5ErkJggg.png?ex=65f26201&is=65dfed01&hm=9e2019ff51bc82a08ae80f2a15d50d4fc93051f2419ec3cf1a9d2fe7ff0aa0b9, 480px)]] Example result created by the Windows Media Foundation Decoder (which can handle these packets perfectly fine): [[Image(https://cdn.discordapp.com/attachments/474680786373836801/1214646770525544480/windows-11.png?ex=65f9def5&is=65e769f5&hm=e58da1a2c33e0920b03ecd1477fea0ccb70b89c7b02441fda4ec6c2ebae31b81&, 480px)]] -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10894: FFmpeg can't handle h264 NAL units that are split between packets -------------------------------------+------------------------------------- Reporter: Rokolell | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Rokolell): I preemptively uploaded the example to the videolan fileshare. -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10894: FFmpeg can't handle h264 NAL units that are split between packets -------------------------------------+------------------------------------- Reporter: Rokolell | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Rokolell): * version: unspecified => git-master -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10894: FFmpeg can't handle h264 NAL units that are split between packets ----------------------------------+---------------------------------------- Reporter: Rokolell | Owner: (none) Type: defect | Status: new Priority: normal | Component: undetermined Version: 6.1 | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------------- Changes (by Rokolell): * version: git-master => 6.1 -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10894: FFmpeg can't handle h264 NAL units that are split between packets ----------------------------------+---------------------------------------- Reporter: Rokolell | Owner: (none) Type: defect | Status: closed Priority: normal | Component: undetermined Version: 6.1 | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------------- Changes (by mkver): * status: new => closed * resolution: => invalid Comment: Our decoders work on proper packets (for the H.264 decoder this means "access units", but generally proper NALUs (that don't span multiple packets) if the AV_CODEC_FLAG2_CHUNKS is set). If you don't have proper packets, use the parsing API to assemble them. -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10894: FFmpeg can't handle h264 NAL units that are split between packets ----------------------------------+---------------------------------------- Reporter: Rokolell | Owner: (none) Type: defect | Status: closed Priority: normal | Component: undetermined Version: 6.1 | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------------- Comment (by Balling): So why does MFF has no problem -- Ticket URL: <https://trac.ffmpeg.org/ticket/10894#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg