#10260 closed defect (invalid)

issues when parsing h264

Reported by: apua Owned by:
Priority: important Component: undetermined
Version: 6.0 Keywords: h264 parser
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When ffmpeg get live stream from specific device as input, it shows a lot of errors and not processing stream correctly:
[h264 @ 0x327f3210] missing picture in access unit with size xxx

It seems, this is error from libavcodec\h264_parser.c, function parse_nal_units
nal.type of these NALs is 6 (H264_NAL_SEI)

Problematic behavior can be reproduced using attached file.

How to reproduce:

% ffmpeg -i libavcodec_h264_parser_c_parse_nal_units.mp4 -vcodec copy -acodec copy -f null /dev/null
ffmpeg version git-master, 6.0, 5.1
built on arm or x64

Checked with 5.1, 6.0 and git-master with the same result.

Attachments (2)

libavcodec_h264_parser_c_parse_nal_units.mp4 (1.3 MB ) - added by apua 14 months ago.
ffmpeg-20230314-173101.log (126.9 KB ) - added by apua 14 months ago.

Download all attachments as: .zip

Change History (5)

by apua, 14 months ago

Attachment: ffmpeg-20230314-173101.log added

comment:1 by Balling, 14 months ago

ffplay.exe -vcodec h264_cuvid libavcodec_h264_parser_c_parse_nal_units.mp4

HW accelerator agrees this is invalid file.

comment:2 by apua, 14 months ago

This file is recorded by Wowza Streaming Engine when live streaming from specific device. Wowza accepted stream and played it.
Also vcl playing this recorded file.
That's why I assume it is rather correct or almost correct than completely incorrect.


comment:3 by quinkblack, 14 months ago

Resolution: invalid
Status: newclosed

The file is broken, verified by VQ analyzer. ffplay can show some frames. Nothing we can do.

Note: See TracTickets for help on using tickets.