[FFmpeg-user] Multiple input streams, one continuous output stream?
leo.butler81 at googlemail.com
Mon Nov 1 20:47:00 EET 2021
Steven Kan <steven at kan.org> writes:
> Hi! I currently stream my IP cameras to YouTube with a command of the form:
> ffmpeg -i "rtsp://anonymous:email@example.com:554" -vcodec copy
> -acodec copy -t 01:00:00 -f flv
> It works well, for a single camera.
> What options would I have if I want to cycle through N cameras, each
> with its own RTSP URI, switching cameras every M seconds? Can this be
> done from an ffmpeg command? Or is there where ffserve gets involved?
I'm not sure if a combination of sendcmd and selectstream can be made to
do what you want. But I suspect you will find your solution
I would recommend using pad and overlay to create a stream with all the
camera feeds in it (a wall of monitors, if you like).
More information about the ffmpeg-user