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
A basic example.
vlc -vvv input_stream --sout '#duplicate{dst=display, dst=rtp{mux=ts,dst=192.168.1.12,port=50002}, dst=rtp{mux=ts,dst=192.168.1.42,port=50004}}'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