[FFmpeg-user] How to inject video into a live stream?

Michael Koch astroelectronic at t-online.de
Sat Nov 11 12:52:02 EET 2023


Am 11.11.2023 um 00:35 schrieb James Thornton:
> When you have two or more live streams, and you want the ability to toggle
> between the two, such as switching to camera 2's feed on the main screen,
> how do you do that and what do you need to consider when constructing such
> a system?
>
> I prefer to do this programmatically via the command line or python, etc.
> and have been experimenting with combinations of VLC, nginx rtmp, and
> ffmpeg but I'm missing a key concept. Is the correct term for this video
> stream injecting?

It's possible to do that with FFmpeg. Have a look at the chapters 2.63, 
2.146 and 2.147 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael



More information about the ffmpeg-user mailing list