[FFmpeg-user] ERROR RTSP - TIMESTAMPS ARE UNSET

Alejandro Escudero escuderoserrano at hotmail.com
Fri Sep 27 02:03:19 EEST 2019


Hi

I am getting an RTSP stream from a DLink camera but I am getting this error: Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

This is the command: (I also tried adding -fflags +genpts but i still get the error)

ffmpeg -rtsp_transport tcp -i “rtsp://admin:password@ip:554/play1.sdp” -c copy dlink.mp4


This is the console output:



C:\Users\User\Desktop\ejemplosff>ffmpeg -rtsp_transport tcp -i "rtsp://admin:pass@ip:554/play1.sdp" -c copy dlink.mp4

ffmpeg version N-94423-ga0c1970781 Copyright (c) 2000-2019 the FFmpeg developers

  built with gcc 9.1.1 (GCC) 20190716

  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt

  libavutil      56. 32.100 / 56. 32.100

  libavcodec     58. 55.100 / 58. 55.100

  libavformat    58. 30.100 / 58. 30.100

  libavdevice    58.  9.100 / 58.  9.100

  libavfilter     7. 58.100 /  7. 58.100

  libswscale      5.  6.100 /  5.  6.100

  libswresample   3.  6.100 /  3.  6.100

  libpostproc    55.  6.100 / 55.  6.100

Input #0, rtsp, from 'rtsp://admin:pass@ip:554/play1.sdp':

  Metadata:

    title           : Session streamed by D-Link

    comment         : play1.sdp

  Duration: N/A, start: 0.000000, bitrate: N/A

    Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 320x176, 15.17 tbr, 90k tbn, 180k tbc

    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

File 'dlink.mp4' already exists. Overwrite ? [y/N] y

Output #0, mp4, to 'dlink.mp4':

  Metadata:

    title           : Session streamed by D-Link

    comment         : play1.sdp

    encoder         : Lavf58.30.100

    Stream #0:0: Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(progressive), 320x176, q=2-31, 15.17 tbr, 90k tbn, 90k tbc

    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp

Stream mapping:

  Stream #0:0 -> #0:0 (copy)

  Stream #0:1 -> #0:1 (copy)

Press [q] to stop, [?] for help

[mp4 @ 000001cd9711f0c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

frame=  168 fps= 22 q=-1.0 Lsize=     209kB time=00:00:11.17 bitrate= 153.5kbits/s speed=1.47x

video:161kB audio:42kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.117589%

Exiting normally, received signal 2.



Thanks for your help!


Alejandro



More information about the ffmpeg-user mailing list