[FFmpeg-user] Problem decoding h264 on newer versions of ffmpeg

Hernan Gips gipsh at nubicam.com
Wed Nov 21 20:13:16 EET 2018


> Only current FFmpeg git head is supported here.
>
> Feel free to provide a sample, Carl Eugen
>

Hi Carl, the problem is also on git head.

You can download video from here:
https://drive.google.com/file/d/18tLhD2NTZuQVw2f_NaflfcrEsctTTI8n/view?usp=sharing

This same file you can play it correctly on 2.5.1 but not working on git
head.

Im pasting the log here for git head build:

onosendai:~/workspace/playground/ffmpeg$ ./ffmpeg/ffplay -v debug
./video-H264-1
ffplay version N-92502-gd290bb0c54 Copyright (c) 2003-2018 the FFmpeg
developers
  built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
  configuration: --disable-doc --disable-podpages --disable-txtpages
--disable-manpages --disable-htmlpages --enable-ffplay --enable-gpl
--enable-nonfree
  libavutil      56. 23.101 / 56. 23.101
  libavcodec     58. 39.100 / 58. 39.100
  libavformat    58. 22.100 / 58. 22.100
  libavdevice    58.  6.100 / 58.  6.100
  libavfilter     7. 46.100 /  7. 46.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Initialized opengl renderer.
[NULL @ 0x7f6694000b80] Opening './video-H264-1' for reading
[file @ 0x7f6694001700] Setting default whitelist 'file,crypto'
[h264 @ 0x7f6694000b80] Format h264 probed with size=2048 and score=51
[h264 @ 0x7f6694000b80] Before avformat_find_stream_info() pos: 0 bytes
read:32768 seeks:0 nb_streams:1
[h264 @ 0x7f66940027c0] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f66940027c0] Overread VUI by 8 bits
[h264 @ 0x7f66940027c0] sps_id 0 out of range
[AVBSFContext @ 0x7f6694028ec0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[AVBSFContext @ 0x7f6694028ec0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[AVBSFContext @ 0x7f6694028ec0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[AVBSFContext @ 0x7f6694028ec0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[AVBSFContext @ 0x7f6694028ec0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] Overread VUI by 8 bits
[h264 @ 0x7f66940027c0] SPS decoding failure, trying again with the
complete NAL
[h264 @ 0x7f66940027c0] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f66940027c0] Overread VUI by 8 bits
    Last message repeated 1 times
[h264 @ 0x7f66940027c0] Format yuv420p chosen by get_format().
[h264 @ 0x7f66940027c0] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 0x7f66940027c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7f66940027c0] nal_unit_type: 1(Coded slice of a non-IDR picture),
nal_ref_idc: 2
    Last message repeated 4 times
[h264 @ 0x7f6694000b80] max_analyze_duration 5000000 reached at 5000000
microseconds st:0
[h264 @ 0x7f6694000b80] After avformat_find_stream_info() pos: 346112 bytes
read:360448 seeks:0 frames:77
Input #0, h264, from './video-H264-1':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 77, 1/1200000: Video: h264 (Main), 1 reference frame,
yuv420p(progressive, left), 1280x720, 0/1, 15 fps, 15 tbr, 1200k tbn, 30 tbc
detected 4 logical cores
[h264 @ 0x7f6694008dc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f6694008dc0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f6694008dc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f6694008dc0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f6694008dc0] Overread VUI by 8 bits
Failed to open file './video-H264-1' or configure filtergraph
[AVIOContext @ 0x7f6694009b80] Statistics: 360448 bytes read, 0 seeks









> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



-- 

Hernan Gips
Nubicam

AR Office: +54 (11) 5217 4775
Mobile: +54 (911) 5511 1351
Email: gipsh at nubicam.com <hernan.gips at intraway.com>


More information about the ffmpeg-user mailing list