[FFmpeg-user] ffmpeg loop option to re-read source feed

James Carter matrixebiz at gmail.com
Mon Jun 19 18:29:21 EEST 2017


Hello, I'm trying to ffmpeg convert an http source and the URL is not the
real/final url which must be specifying a special security token that needs
to be specified (as cookies) to access it which is only valid for 30
seconds. So, ffmepg does redirect the first time and converts 30 seconds of
the video but then finishes with an error about end of stream, blah, blah.
Is there a way to have ffmpeg loop so that when there is this end of stream
error, it will force ffmpeg to start over and re-initiate the url again? I
tried the -stream_loop -1 option in the command line but that didn't fix
the issue. the source works fine in VLC of course when the loop option is
enabled but this is not working in ffmpeg loop option.

Thank you


More information about the ffmpeg-user mailing list