Discussion:
[FFmpeg-user] Problem decoding h264 on newer versions of ffmpeg
Hernan Gips
2018-11-21 15:30:34 UTC
Permalink
Hi Guys,

I'm having problems decoding and playing a RAW h264 video file,
on older versions of ffmpeg (2.5.1) I'm able to decode the video
correctly,
but with newer versions like 3.4.4 it can't decode.

Are you aware of any change in the h264 decoding that may be generating
this behavior?
I have compared some code from libavcodec and it seem a lot of work was
made on the decoder.

I can provide an example video file if needed.

For example, on ffmpeg 2.5.1 work's well:

onosendai:~/workspace/playground/ffmpeg$ ./ffmpeg-2.5.1/ffplay -v debug
./video-H264-1
ffplay version 2.5.1 Copyright (c) 2003-2014 the FFmpeg developers
built on Nov 21 2018 10:25:40 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 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[h264 @ 0x7fdd14007d80] Format h264 probed with size=2048 and score=51
[h264 @ 0x7fdd14007d80] Before avformat_find_stream_info() pos: 0 bytes
read:32768 seeks:0
[h264 @ 0x7fdd14000fa0] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd14000fa0] sps_id 0 out of range
[h264 @ 0x7fdd14000fa0] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd14000fa0] SPS decoding failure, trying again with the
complete NAL
[h264 @ 0x7fdd14000fa0] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd14000fa0] sps_id 0 out of range
[h264 @ 0x7fdd14007d80] max_analyze_duration 5000000 reached at 5000000
microseconds
[h264 @ 0x7fdd14007d80] 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), yuv420p(left),
1280x720, 1/30, 15 fps, 15 tbr, 1200k tbn, 30 tbc
detected 4 logical cores
[h264 @ 0x7fdd140a9340] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd140a9340] SPS decoding failure, trying again with the
complete NAL
[h264 @ 0x7fdd140a9340] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd140a9340] sps_id 0 out of range
[h264 @ 0x7fdd140a9340] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7fdd140a9340] SPS decoding failure, trying again with the
complete NAL
[h264 @ 0x7fdd140a9340] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
Video frame changed from size:0x0 format:none serial:-1 to size:1280x720
format:yuv420p serial:1
[ffplay_buffer @ 0x7fdd0c1c11c0] Setting 'video_size' to value '1280x720'
[ffplay_buffer @ 0x7fdd0c1c11c0] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x7fdd0c1c11c0] Setting 'time_base' to value '1/1200000'
[ffplay_buffer @ 0x7fdd0c1c11c0] Setting 'pixel_aspect' to value '0/1'
[ffplay_buffer @ 0x7fdd0c1c11c0] Setting 'frame_rate' to value '30/2'
[ffplay_buffer @ 0x7fdd0c1c11c0] w:1280 h:720 pixfmt:yuv420p tb:1/1200000
fr:30/2 sar:0/1 sws_param:
[ffplay_crop @ 0x7fdd0c1c1ca0] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7fdd0c1c1ca0] Setting 'out_h' to value 'floor(in_h/2)*2'
[AVFilterGraph @ 0x7fdd0c1c08a0] query_formats: 3 queried, 2 merged, 0
already done, 0 delayed
[ffplay_crop @ 0x7fdd0c1c1ca0] w:1280 h:720 sar:0/1 -> w:1280 h:720 sar:0/1
[AVIOContext @ 0x7fdd1400bbc0] Statistics: 360448 bytes read, 0 seeks





but with ffmpeg-3.4.5 does not work:

onosendai:~/workspace/playground/ffmpeg$ ./ffmpeg-3.4.5/ffplay -v debug
./video-H264-1
ffplay version 3.4.5 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 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Initialized opengl renderer.
[NULL @ 0x7f9cec000b80] Opening './video-H264-1' for reading
[file @ 0x7f9cec001640] Setting default whitelist 'file,crypto'
[h264 @ 0x7f9cec000b80] Format h264 probed with size=2048 and score=51
[h264 @ 0x7f9cec000b80] Before avformat_find_stream_info() pos: 0 bytes
read:32768 seeks:0 nb_streams:1
[h264 @ 0x7f9cec001e00] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f9cec001e00] Overread VUI by 8 bits
[h264 @ 0x7f9cec001e00] sps_id 0 out of range
[AVBSFContext @ 0x7f9cec0098e0] nal_unit_type: 7, nal_ref_idc: 3
[AVBSFContext @ 0x7f9cec0098e0] nal_unit_type: 8, nal_ref_idc: 3
[AVBSFContext @ 0x7f9cec0098e0] nal_unit_type: 7, nal_ref_idc: 3
[AVBSFContext @ 0x7f9cec0098e0] nal_unit_type: 8, nal_ref_idc: 3
[AVBSFContext @ 0x7f9cec0098e0] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 7, nal_ref_idc: 3 0B f=0/0
[h264 @ 0x7f9cec001e00] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f9cec001e00] Overread VUI by 8 bits
[h264 @ 0x7f9cec001e00] SPS decoding failure, trying again with the
complete NAL
[h264 @ 0x7f9cec001e00] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f9cec001e00] Overread VUI by 8 bits
[h264 @ 0x7f9cec001e00] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f9cec001e00] Overread VUI by 8 bits
[h264 @ 0x7f9cec001e00] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 0x7f9cec001e00] nal_unit_type: 7, nal_ref_idc: 3 0B f=0/0
[h264 @ 0x7f9cec001e00] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7f9cec001e00] nal_unit_type: 1, nal_ref_idc: 2
Last message repeated 2 times
[h264 @ 0x7f9cec001e00] nal_unit_type: 1, nal_ref_idc: 2 0B f=0/0
Last message repeated 1 times
[h264 @ 0x7f9cec000b80] max_analyze_duration 5000000 reached at 5000000
microseconds st:0
[h264 @ 0x7f9cec000b80] 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 @ 0x7f9cec007000] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7f9cec007000] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7f9cec007000] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7f9cec007000] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7f9cec007000] time_scale/num_units_in_tick invalid or unsupported
(0/5625)
[h264 @ 0x7f9cec007000] Overread VUI by 8 bits
Failed to open file './video-H264-1' or configure filtergraph
[AVIOContext @ 0x7f9cec0099e0] Statistics: 360448 bytes read, 0 seeks


Thanks!
--
HG

<***@intraway.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org w
Carl Eugen Hoyos
2018-11-21 16:57:41 UTC
Permalink
Post by Hernan Gips
I'm having problems decoding and playing a RAW h264
video file, on older versions of ffmpeg (2.5.1) I'm able to
decode the video correctly,
but with newer versions like 3.4.4 it can't decode.
Only current FFmpeg git head is supported here.

Feel free to provide a sample, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpe
Hernan Gips
2018-11-21 18:13:16 UTC
Permalink
Post by Carl Eugen Hoyos
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
Post by Carl Eugen Hoyos
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
--
Hernan Gips
Nubicam

AR Office: +54 (11) 5217 4775
Mobile: +54 (911) 5511 1351
Email: ***@nubicam.com <***@intraway.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmp
Carl Eugen Hoyos
2018-11-21 23:10:19 UTC
Permalink
Post by Hernan Gips
Post by Carl Eugen Hoyos
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.
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-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
f
Hernan Gips
2018-11-22 14:10:19 UTC
Permalink
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:***@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:***@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
Post by Hernan Gips
Post by Hernan Gips
Post by Carl Eugen Hoyos
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.
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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
--
Hernan Gips
Nubicam

AR Office: +54 (11) 5217 4775
Mobile: +54 (911) 5511 1351
Email: ***@nubicam.com <***@intraway.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org
Carl Eugen Hoyos
2018-11-22 14:26:38 UTC
Permalink
Post by Hernan Gips
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?
I suggest you run git bisect to find the change introducing the
rtsp regression.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffm

Loading...