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

Hernan Gips gipsh at nubicam.com
Thu Nov 22 16:10:19 EET 2018


Thanks Carl, i can confirm that with `-disable-bsf=extract_extradata` i'm
able to decode and play the video  file correctly.

Still, the file was extracted from an RTSP session and when i try to use
ffplay directly against the RTSP server is still failing to detect or
decode the h264. The audio is played correctly.
The SDP looks good, and it detects the stream as h264, but it seems cant
detect codec parameters .

Any hint on this?


Here is the log:

onosendai:~/workspace/playground/ffmpeg/ffmpeg$ ./ffplay -v debug rtsp://
admin:admin at 10.0.0.180/Streams/Channel/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 --disable-bsf=extract_extradata
  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.
[tcp @ 0x7f16b0002f40] No default whitelist set
[tcp @ 0x7f16b0002f40] Original list of addresses:
[tcp @ 0x7f16b0002f40] Address 10.0.0.180 port 554
[tcp @ 0x7f16b0002f40] Interleaved list of addresses:
[tcp @ 0x7f16b0002f40] Address 10.0.0.180 port 554
[tcp @ 0x7f16b0002f40] Starting connection attempt to 10.0.0.180 port 554
[tcp @ 0x7f16b0002f40] Successfully connected to 10.0.0.180 port 554
[rtsp @ 0x7f16b0000b80] SDP:aq=    0KB vq=    0KB sq=    0B f=0/0
v=0
o=- 1542895050076410 1542895050076410 IN IP4 10.0.0.180
s=Media Presentation
e=NONE
b=AS:5100
t=0 0
a=control:rtsp://10.0.0.180:554/Streams/Channel/1/
m=video 0 RTP/AVP 96
b=AS:5000
a=control:rtsp://10.0.0.180:554/Streams/Channel/1/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1;
sprop-parameter-sets=Z00AII2NQGAb0IAACvyA,aO48gA==
m=audio 0 RTP/AVP 104
b=AS:50
a=control:rtsp://10.0.0.180:554/Streams/Channel/1/trackID=2
a=rtpmap:104 mpeg4-generic/16000/1
a=fmtp:104 profile-level-id=15; streamtype=5; mode=AAC-hbr;
config=1408;SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
a=Media_header:MEDIAINFO=494D4B48010100000400010001200110803E0000007D000000000000000000000000000000000000;
a=appversion:1.0

[rtsp @ 0x7f16b0000b80] video codec set to: h264
[rtsp @ 0x7f16b0000b80] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[rtsp @ 0x7f16b0000b80] RTP Packetization Mode: 1
[rtsp @ 0x7f16b0000b80] Extradata set to 0x7f16b0005070 (size: 27)
[rtsp @ 0x7f16b0000b80] audio codec set to: aac
[rtsp @ 0x7f16b0000b80] audio samplerate set to: 16000
[rtsp @ 0x7f16b0000b80] audio channels set to: 1
[rtp @ 0x7f16b00088c0] No default whitelist set
[udp @ 0x7f16b0009200] No default whitelist set
[udp @ 0x7f16b0009200] end receive buffer size reported is 131072
[udp @ 0x7f16b00196c0] No default whitelist set
[udp @ 0x7f16b00196c0] end receive buffer size reported is 131072
[rtsp @ 0x7f16b0000b80] setting jitter buffer size to 5000B f=0/0
[rtp @ 0x7f16b0008e00] No default whitelist set
[udp @ 0x7f16b002a700] No default whitelist set
[udp @ 0x7f16b002a700] end receive buffer size reported is 131072
[udp @ 0x7f16b003aa80] No default whitelist set
[udp @ 0x7f16b003aa80] end receive buffer size reported is 131072
[rtsp @ 0x7f16b0000b80] setting jitter buffer size to 5000B f=0/0
[rtsp @ 0x7f16b0000b80] hello state=0
[h264 @ 0x7f16b0004b80] nal_unit_type: 7(SPS), nal_ref_idc: 3=0/0
[h264 @ 0x7f16b0004b80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f16b0004b80] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f16b0004b80] Overread VUI by 8 bits
[rtsp @ 0x7f16b0000b80] Failed to open codec in avformat_find_stream_info
[NULL @ 0x7f16b0004b80] nal_unit_type: 7(SPS), nal_ref_idc: 3=0/0
[NULL @ 0x7f16b0004b80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[NULL @ 0x7f16b0004b80] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[NULL @ 0x7f16b0004b80] Overread VUI by 8 bits
[h264 @ 0x7f16b0004b80] nal_unit_type: 7(SPS), nal_ref_idc: 3=0/0
[h264 @ 0x7f16b0004b80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f16b0004b80] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f16b0004b80] Overread VUI by 8 bits
[rtsp @ 0x7f16b0000b80] max_analyze_duration 5000000 reached at 5056000
microseconds st:1
[rtsp @ 0x7f16b0000b80] Could not find codec parameters for stream 0
(Video: h264 (Main), 1 reference frame, none(progressive, left)):
unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, rtsp, from 'rtsp://admin:Rbla9m2ru3@10.0.0.180/Streams/Channel/1':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 77, 1/90000: Video: h264 (Main), 1 reference frame,
none(progressive, left), 90k tbr, 90k tbn, 180k tbc
    Stream #0:1, 81, 1/16000: Audio: aac (LC), 16000 Hz, mono, fltp
detected 4 logical cores
[ffplay_abuffer @ 0x7f16b016d140] Setting 'sample_rate' to value '16000'
[ffplay_abuffer @ 0x7f16b016d140] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f16b016d140] Setting 'channels' to value '1'
[ffplay_abuffer @ 0x7f16b016d140] Setting 'time_base' to value '1/16000'
[ffplay_abuffer @ 0x7f16b016d140] Setting 'channel_layout' to value '0x4'
[ffplay_abuffer @ 0x7f16b016d140] tb:1/16000 samplefmt:fltp
samplerate:16000 chlayout:0x4
[ffplay_abuffersink @ 0x7f16b016d600] auto-inserting filter
'auto_resampler_0' between the filter 'ffplay_abuffer' and the filter
'ffplay_abuffersink'
[AVFilterGraph @ 0x7f16b00607c0] query_formats: 2 queried, 0 merged, 3
already done, 0 delayed
[auto_resampler_0 @ 0x7f16b016ed40] [SWR @ 0x7f16b016f240] Using fltp
internally between filters
[auto_resampler_0 @ 0x7f16b016ed40] ch:1 chl:mono fmt:fltp r:16000Hz ->
ch:1 chl:mono fmt:s16 r:16000Hz
[h264 @ 0x7f16b007ee80] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f16b007ee80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x7f16b007ee80] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f16b007ee80] Overread VUI by 8 bits
Audio frame changed from rate:16000 ch:1 fmt:fltp layout:mono serial:-1 to
rate:16000 ch:1 fmt:fltp layout:mono serial:1
[ffplay_abuffer @ 0x7f16940038c0] Setting 'sample_rate' to value '16000'
[ffplay_abuffer @ 0x7f16940038c0] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f16940038c0] Setting 'channels' to value '1'
[ffplay_abuffer @ 0x7f16940038c0] Setting 'time_base' to value '1/16000'
[ffplay_abuffer @ 0x7f16940038c0] Setting 'channel_layout' to value '0x4'
[ffplay_abuffer @ 0x7f16940038c0] tb:1/16000 samplefmt:fltp
samplerate:16000 chlayout:0x4
[ffplay_abuffersink @ 0x7f1694004ec0] auto-inserting filter
'auto_resampler_0' between the filter 'ffplay_abuffer' and the filter
'ffplay_abuffersink'
[AVFilterGraph @ 0x7f1694003380] query_formats: 2 queried, 0 merged, 3
already done, 0 delayed
[auto_resampler_0 @ 0x7f1694006540] [SWR @ 0x7f16940069c0] Using fltp
internally between filters
[auto_resampler_0 @ 0x7f1694006540] ch:1 chl:mono fmt:fltp r:16000Hz ->
ch:1 chl:mono fmt:s16 r:16000Hz
Created 640x480 texture with SDL_PIXELFORMAT_ARGB8888.
Switch subtitle stream from #-1 to #-1 vq=    0KB sq=    0B f=0/0




El mié., 21 nov. 2018 a las 20:10, Carl Eugen Hoyos (<ceffmpeg at gmail.com>)
escribió:

> 2018-11-21 19:13 GMT+01:00, Hernan Gips <gipsh at nubicam.com>:
> >> 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
>
> Looks related to ticket #6422, I attached the sample there.
> Work-around is to configure with --disable-bsf=extract_extradata
>
> Thank you for the sample, Carl Eugen
> _______________________________________________
> 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