Seeking backward into live stream

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Seeking backward into live stream

Patrice
Hi everyone,

I am trying to clip a part of a live stream (HLS).
To do so, I set the position of the stream to a negative value, e.g. -10 sec and a duration of 10sec.
Unfortunately, ffmpeg never goes back to the requested position, it always start from the live time.
I also tried setting the position before the input but it fails as well.

Any one would know how to do that ?
Or may be is there any known issue regarding the negative seeking of a live stream ?

Here is the command:  ffmpeg -i input.m3u8 -c copy -ss -10 -t 10 -f mp4 output.mp4

Thank you in advance for your help.

Patrice.




_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Seeking backward into live stream

Patrice
After a couple of hours of researches, I did not managed to make it work with
this approach.
However, using -live_start_index did it.
So here is the answer, for those who would be struggling with this too:

ffmpeg -live_start_index 0 -i input.m3u8 -c copy -ss 10 -t 10 -f mp4
output.mp4



--
Sent from: http://www.ffmpeg-archive.org/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".