VLC tips


- Streaming a mp4 video

Server side:
vlc -vvv -I rc "file:////tmp/simpson.mp4" --sout '#rtp{dst=192.168.0.76,port=1234,sdp=rtsp://192.168.0.76:8080/test.sdp}'

- Sending camera streaming

vlc -vvv v4l2:///dev/video0 --sout '#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga ,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=192.168.0.76:1234}'

or

cvlc -vvv v4l2:///dev/video0 width=320,height=240 --sout \
'#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga}:\
std{access=udp,mux=ts,dst=192.168.1.44:1234}'

Client

vlc udp://@192.168.1.44:1234 :udp-caching=0

- Using RTP

Server side:

cvlc -vvv v4l2:///dev/video0 --sout \
'#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{mux=ts,port=1234,sdp=rtsp://0.0.0.0:8080/camera1.sdp}'

Client side:

vlc rtsp://192.168.1.43:8080/camera1.sdp

  1. #1 by alancads on October 13, 2012 - 8:21 pm

    Installing VLC 2.0.3 in Slackware 14.0 x86_64 (without dependencies)
    # wget -c http://slackware.org.uk/people/alien/slackbuilds/vlc/pkg64/14.0/vlc-2.0.3-x86_64-1alien.txz
    # installpkg vlc-2.0.3-x86_64-1alien.txz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: