[FFmpeg-user] pipe ffplay to ffmpeg - or - loop input video in ffmpeg for rtmp broadcast stream ?

Ran User ranuser99 at gmail.com
Wed Apr 11 09:53:07 CEST 2012


The goal is to loop input video in ffmpeg, for a on-going rtmp broadcast.
 Unfortunately the -loop tag apparently only works for images (unless I've
missed something):

ffmpeg -re -i test.mp4 -loop 10 -acodec copy -vcodec copy -f flv
rtmp://server/app/streamname

Another approach would be to pipe ffplay into ffmpeg, any ideas on what the
command line would look like?  I tried:

ffplay -i extremists-short.mp4 -loop 0 | ffmpeg -re -i pipe:0 -acodec copy
-vcodec copy -f flv rtmp://server/app/streamname

and

cat ffplay -i extremists-short.mp4 -loop 0 | ffmpeg -re -i pipe:0 -acodec
copy
-vcodec copy -f flv rtmp://server/app/streamname

to no avail..

thanks for any guidance!


More information about the ffmpeg-user mailing list