what i'm trying to do is publishing a .flv
media file to RTMP
server to let subscribers watch it.
i'm testing to view the stream in several subscribers (the oflaDemo
) and with ffplay
.
the problem is that ffmpeg publish the 5 minutes .flv file to the server in nearly 20 seconds, in these 20 seconds the stream appear on subscribes, but after that it cuts. the command i use is:
ffmpeg -i file.flv -re -acodec copy -vcodec copy -f flv "rtmp://localhost/oflaDemo/aaa live=1"
how can i force ffmpeg
to stream the 5 minutes file in 5 minutes, or any other solution.
thanks.
-re
should be used as an input option, but I could be wrong. – Someplace