Thursday, April 8, 2010

Streaming an mpg video using vlc and saving it as an mpg at the receiver

vlc does not run as a root. So u need to login as a user

Streaming out the mpg file:
vlc supman17.mpg -I dummy --sout udp://

The other problem is this account does not have all the access, so it cannot create a file. So create one file by name of stream.mpg and grant permissions.
Receiving the incoming stream and saving as an mpg file:

touch stream.mpg
chmod 777 stream.mpg
vlc udp://@:9081 --sout file/muxer:stream.mpg


Post a Comment