Split and broadcast video with VLC
March 16, 2012 9:52 AM   Subscribe

VLC scripting help! I'd like to take the incoming video from a camera and split it into two feeds, where the first leg is broadcast over the LAN and the second leg is chroma keyed, then broadcast over the internet. I can't seem to figure out how to capture leg2, though.

Here's what I have so far: VLM Example. The chroma key works and the local broadcast works, but I can't for the life of me figure out where to dup the stream so I can get the chroma keyed output to broadcast. (Source files are here, by the way.)
posted by eamondaly to Computers & Internet (2 answers total) 1 user marked this as a favorite
I think you need to work with the multiple stream output -- use the duplicate module, which creates a second chain, send the first to the LAN, the second through the chroma key and out to the Internet.

A basic example.
 vlc -vvv input_stream
--sout '#duplicate{dst=display,

I'll admit I'm grasping at docs, here -- and it could be the easiest way is to use multiple instances of VLC, where one does just a very basic split, like above, and the other two do the actual transcoding/keying you need.
posted by eriko at 10:44 AM on March 16, 2012

Response by poster: I tried using multiple instances, but they're really, really sloooooooooooooooooooow.

I'm already duping the stream for the bluescreen: the question is how to get at that resulting stream for capture.
posted by eamondaly at 10:47 AM on March 16, 2012

« Older I want to write-up, but Academic Research has...   |   Online literature. Newer »
This thread is closed to new comments.