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

Monday, April 5, 2010

Replicating a KVM instance

virt-clone --connect qemu:///system --original vm4 --name vm5 --file

Where, vm4 is the name of the old KVM instance
and vm5 is the name of the desired duplicate instance.