[FFmpeg-trac] #5018(undetermined:new): incorrect PTS/DTS on first frame of RTSP stream
FFmpeg
trac at avcodec.org
Fri Nov 20 07:28:28 CET 2015
#5018: incorrect PTS/DTS on first frame of RTSP stream
-------------------------------------+-------------------------------------
Reporter: slamb | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
in one screen session:
$ sudo tcpdump -s 0 -w rtsp.pcap 'port 554'
(wait for the following command, then ctrl-C out)
in another screen session:
$ ./ffmpeg -report -rtsp_transport tcp -i
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -map 0:v
-filter:v showinfo -frames:v 10 -f null /dev/null
ffmpeg started on 2015-11-19 at 22:18:19
Report written to "ffmpeg-20151119-221819.log"
ffmpeg version N-76741-g8eadabf Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
configuration:
libavutil 55. 7.100 / 55. 7.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 16.100 / 57. 16.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
Input #0, rtsp, from
'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov':
Metadata:
title : BigBuckBunny_115k.mov
Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 12000 Hz, stereo, fltp
Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 240x160, 24
fps, 24 tbr, 90k tbn, 48 tbc
[Parsed_showinfo_0 @ 0x32e3220] config in time_base: 1/90000, frame_rate:
24/1
[Parsed_showinfo_0 @ 0x32e3220] config out time_base: 0/0, frame_rate: 0/0
Output #0, null, to '/dev/null':
Metadata:
title : BigBuckBunny_115k.mov
encoder : Lavf57.16.100
Stream #0:0: Video: wrapped_avframe, yuv420p, 240x160, q=2-31, 200
kb/s, 24 fps, 24 tbn, 24 tbc
Metadata:
encoder : Lavc57.15.100 wrapped_avframe
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[Parsed_showinfo_0 @ 0x32e3220] n: 0 pts: 22530 pts_time:0.250333 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:1 type:I checksum:4684E2B2
plane_checksum:[E5836087 FB23C10E FB23C10E] mean:[16 128 128] stdev:[0.0
0.0 0.0]
[Parsed_showinfo_0 @ 0x32e3220] n: 1 pts: 3780 pts_time:0.042 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:P checksum:4684E2B2
plane_checksum:[E5836087 FB23C10E FB23C10E] mean:[16 128 128] stdev:[0.0
0.0 0.0]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 1
[Parsed_showinfo_0 @ 0x32e3220] n: 2 pts: 7470 pts_time:0.083 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:P checksum:4684E2B2
plane_checksum:[E5836087 FB23C10E FB23C10E] mean:[16 128 128] stdev:[0.0
0.0 0.0]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 2
[Parsed_showinfo_0 @ 0x32e3220] n: 3 pts: 11250 pts_time:0.125 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:P checksum:4684E2B2
plane_checksum:[E5836087 FB23C10E FB23C10E] mean:[16 128 128] stdev:[0.0
0.0 0.0]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 3
[Parsed_showinfo_0 @ 0x32e3220] n: 4 pts: 15030 pts_time:0.167 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:I checksum:6A1C6A0E
plane_checksum:[C3DEF687 2870B415 15DFBF54] mean:[17 128 128] stdev:[0.0
0.5 0.3]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 4
[Parsed_showinfo_0 @ 0x32e3220] n: 5 pts: 18720 pts_time:0.208 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:I checksum:3AB1F61E
plane_checksum:[7A098596 B53EB11C AEE4BF5D] mean:[18 128 128] stdev:[0.2
0.5 0.2]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 5
[Parsed_showinfo_0 @ 0x32e3220] n: 6 pts: 22500 pts_time:0.25 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:I checksum:15F370C5
plane_checksum:[8426FB96 9660BA1D DEEDBAF4] mean:[19 128 128] stdev:[0.5
0.4 0.6]
[null @ 0x32e1c00] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 6 >= 6
[Parsed_showinfo_0 @ 0x32e3220] n: 7 pts: 26280 pts_time:0.292 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:I checksum:1782831B
plane_checksum:[B83E17E1 A224B27D 9148B8AE] mean:[19 128 128] stdev:[0.3
0.5 0.5]
[Parsed_showinfo_0 @ 0x32e3220] n: 8 pts: 29970 pts_time:0.333 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:I checksum:DAB58319
plane_checksum:[BA7B231F 20B2A7DD FFACB80E] mean:[21 127 128] stdev:[0.5
0.5 0.5]
[Parsed_showinfo_0 @ 0x32e3220] n: 9 pts: 33750 pts_time:0.375 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:P checksum:C6859199
plane_checksum:[5F54308B 20B2A7DD 67B1B922] mean:[21 127 128] stdev:[0.6
0.5 0.5]
[Parsed_showinfo_0 @ 0x32e3220] n: 10 pts: 37530 pts_time:0.417 pos:
-1 fmt:yuv420p sar:0/1 s:240x160 i:P iskey:0 type:P checksum:23721349
plane_checksum:[8391B2B7 3E1AA77E 4E11B8F6] mean:[22 127 128] stdev:[1.4
0.5 0.5]
frame= 10 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.41 bitrate=N/A
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
I'm attaching `ffmpeg-20151119-221819.log` and `rtsp.pcap`.
I don't think this is anything particular to this RTSP server. I
encountered the problem originally with my Hikvision DS-2CD2032 security
camera. That's not reproducible for anyone but me, so I looked for a
public rtsp stream and found this one.
This occurs in git HEAD as you can see above. Also with the ffmpeg version
bundled with Ubuntu 15.10 and libav bundled with Raspbian Jessie, so it's
apparently quite an old bug. Looks like something similar was reported as
defect 2660.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5018>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list