[FFmpeg-user] FFMPEG absolute time seeking

Philip Goh philip.wj.goh at gmail.com
Wed Sep 7 10:58:01 EEST 2016

Hello list,

I’d like to use FFMPEG to play an RTSP video stream from a camera. The camera supports “edge” storage, where video is recorded to an SD card. To seek to a specific time in the recording, I need to seek using absolute time. Absolute time is when I specify a date time like 20160906T192727.387643Z and the video starts streaming from that point. 

This is analogous to the -U option in openRTSP.

The raw RTSP command will look something like the following, where a “range” parameter is specified.

Setup "video/H264" subsession (client ports 53652-53653)
Outputting data from the "video/H264" subsession to "stdout"
Sending request: PLAY rtsp:// RTSP/1.0
CSeq: 6
Authorisation: XXX
uri="rtsp://", response="04229fb5fc50b2e4311a7ce3b6f5cf1e"
User-Agent: openRTSP (LIVE555 Streaming Media v2016.03.14)
Session: 4019348086111130942203367846224
Range: clock=20160906T192727.387643Z-

I’ve read the wiki on seeking at https://trac.ffmpeg.org/wiki/Seeking <https://trac.ffmpeg.org/wiki/Seeking> and it makes no mention of this. 

Is this possible in FFMPEG?

Kind regards,

More information about the ffmpeg-user mailing list