Multiple input streams, one continuous output stream?
Hi! I currently stream my IP cameras to YouTube with a command of the form: ffmpeg -i "rtsp://anonymous:password@192.168.1.11:554" -vcodec copy -acodec copy -t 01:00:00 -f flv "rtmp://a.rtmp.youtube.com/live2/my-youtube-streaming-key” 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? Thanks! -- Steven "Rocket Man" Kan #``````` mailto:steven@kan.org # ``````` http://www.kan.org # ``````` aim://stevenkan@me.com # ``````` # ``````` ~ ~ . \_@_/ ``````` ^_@ o . V ``````` `-' - \_@_ ~ . ###### V \ ~ . ###### ~ . #H2O## ~ . #POLO# Blood, sweat, and chlorine ~ ~ ######
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? ffserver was removed 3-4 years ago. You _might_ be able to write an ffmpeg command to take the multiple streams and switch them, but it will probably be easier with something like OBS (which uses ffmpeg libraries); downside is
On 10/27/2021 1:56 PM, Steven Kan wrote: that AFAIK it won't run "headless". z!
Steven Kan <steven@kan.org> writes:
Hi! I currently stream my IP cameras to YouTube with a command of the form:
ffmpeg -i "rtsp://anonymous:password@192.168.1.11:554" -vcodec copy -acodec copy -t 01:00:00 -f flv "rtmp://a.rtmp.youtube.com/live2/my-youtube-streaming-key”
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 unsatisfactory. 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). Leo
participants (3)
-
Carl Zwanzig -
Leo Butler -
Steven Kan