Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VLC VOD configuration
#!/bin/bash
# start a vlc stream from command line
cvlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0 --rtsp-port 554 >/dev/null 2>&1 &
echo "Ready to telnet localhost 4212"
echo "and create the vod object."
echo
echo "new Test vod enabled"
echo "setup Test input my_video.mpg"
echo
echo "Stream at rtsp://server:554/Test"
echo
echo "Note: make sure to enter the corresponding commands before the VoD media is enabled, or before you setup the input."
echo
echo "new Test2 vod"
echo "setup Test2 output #transcoding{vcodec=h264,vb=512,acodec=mp4a,ab=96}"
echo "setup Test2 mux mp2t"
echo "setup Test2 input my_video.mpg"
echo "setup Test2 enabled"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.