[FFmpeg-user] Proper use of "-loop" option

Dan Mahoney dan at streemit.net
Mon Jun 2 20:43:14 CEST 2014


I've been looking at the available docs and googling old messages, 
trying to find documentation on how the "-loop" switch works. So far I 
haven't had any great success.

What I'm trying to do is read a video file from disk, stream it to a 
Wowza server, then when the file has been read/streamed completely, do 
it again.

The command I'm trying is:
/usr/local/bin/ffmpeg -loglevel error -re -i 
/root/big_buck_bunny_480p_surround-fix.avi -loop 0 -fpre 
/usr/share/ffmpeg/libx264-ipod320.ffpreset -vcodec h264 -acodec libfaac 
-b:a 64k -b:v 250k -ac 2 -ar 44100 -r 29.7 -profile baseline -level 3.0 
-f flv rtmp://wowza/live/channel6

It looks like it streams just fine - once. It completes with no errors, 
it just doesn't stream the file again. Am I misunderstanding the purpose 
of the switch?



More information about the ffmpeg-user mailing list