[FFmpeg-trac] #7178(avformat:new): RTSP framerate reported by camera is ignored

FFmpeg trac at avcodec.org
Wed May 2 15:43:05 EEST 2018


#7178: RTSP framerate reported by camera is ignored
------------------------------------+------------------------------------
             Reporter:  RomanVega   |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by RomanVega):

 I still see the same issue.

 I added in `-use_wallclock_as_timestamps 1` to eliminate the DTS errors
 seen below.

 {{{
 ./ffmpeg -rtsp_transport tcp -i 'rtsp://<user>:<pw>@<ip>/MediaInput/h264'
 -c:v copy /tmp/output.ts
 ffmpeg version N-90820-gd06b01f Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
   configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm'
 --enable-nonfree
   libavutil      56. 15.100 / 56. 15.100
   libavcodec     58. 19.100 / 58. 19.100
   libavformat    58. 13.100 / 58. 13.100
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 19.100 /  7. 19.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
 Input #0, rtsp, from 'rtsp://<user>:<pw>@<ip>/MediaInput/h264':
   Metadata:
     title           : Media Presentation
   Duration: N/A, start: 0.633333, bitrate: N/A
     Stream #0:0: Video: h264 (High), yuv420p(tv, progressive), 1280x960
 [SAR 1:1 DAR 4:3], 15 fps, 10 tbr, 90k tbn, 30 tbc
 Output #0, mpegts, to '/tmp/output.ts':
   Metadata:
     title           : Media Presentation
     encoder         : Lavf58.13.100
     Stream #0:0: Video: h264 (High), yuv420p(tv, progressive), 1280x960
 [SAR 1:1 DAR 4:3], q=2-31, 15 fps, 10 tbr, 90k tbn, 90k tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 0,
 current: -48000; changing to 1. This may result in incorrect timestamps in
 the output file.
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 1,
 current: -39000; changing to 2. This may result in incorrect timestamps in
 the output file.
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 2,
 current: -30000; changing to 3. This may result in incorrect timestamps in
 the output file.
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 3,
 current: -21000; changing to 4. This may result in incorrect timestamps in
 the output file.
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 4,
 current: -12000; changing to 5. This may result in incorrect timestamps in
 the output file.
 [mpegts @ 0x2f595c0] Non-monotonous DTS in output stream 0:0; previous: 5,
 current: -3000; changing to 6. This may result in incorrect timestamps in
 the output file.
 frame=  622 fps= 10 q=-1.0 Lsize=   31783kB time=00:01:01.46
 bitrate=4235.8kbits/s speed=1.03x
 video:29411kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 8.062655%
 }}}

 {{{
 ./ffmpeg -i /tmp/output.ts
 ffmpeg version N-90820-gd06b01f Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
   configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm'
 --enable-nonfree
   libavutil      56. 15.100 / 56. 15.100
   libavcodec     58. 19.100 / 58. 19.100
   libavformat    58. 13.100 / 58. 13.100
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 19.100 /  7. 19.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
 [mpegts @ 0x2a40280] DTS discontinuity in stream 0: packet 6 with DTS
 126006, packet 7 with DTS 132000
 Input #0, mpegts, from '/tmp/output.ts':
   Duration: 00:01:01.50, start: 1.400000, bitrate: 4233 kb/s
   Program 1
     Metadata:
       service_name    : Media Presentation
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, progressive), 1280x960 [SAR 1:1 DAR 4:3], 15 fps, 30 tbr, 90k
 tbn, 30 tbc
 At least one output file must be specified
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7178#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list