[FFmpeg-user] ADD REAL TIME STAMP TO RTSP STREAM SEGMENT

Roger Pack rogerdpack2 at gmail.com
Sat Apr 18 01:53:24 EEST 2020


On Tue, Sep 3, 2019 at 3:01 PM Alejandro Escudero
<escuderoserrano at hotmail.com> wrote:
>
> Hi,
>
> I am trying to get a RTSP stream from an IP Camera and save that stream as several  MP4 segments, but i need that each file segment name gets the real time stamp of the video stream. (If I use the -strftime 1, it gets the time of the local machine but i need the real rtsp time). How can I get the Real Time Stamp?
>
> I am suing this command:
>
>
> ffmpeg -rtsp_transport tcp -i "rtsp://admin:pass@myddns.dyndns.org:554/cam/realmonitor?channel=1&subtype=0" –f segment -segment_time 5 -c copy  OUT%d.mp4


Maybe if not mp4 it will use the capture ts?
Maybe -copyts https://ffmpeg-user.ffmpeg.narkive.com/fzTrnfHX/getting-precise-start-time-from-wall-clock-for-capture
?
Maybe -use_source_wallclock_as_timestamps
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2016-March/031250.html
Maybe https://stackoverflow.com/questions/51085133/does-pts-have-to-start-at-0
GL!


More information about the ffmpeg-user mailing list