Sunday, October 26, 2008

Broadcast/Streaming usando VLC no Ubuntu

Ubuntu 8.04.1(gnome ou kde)
VLC 0.8.6


Configurando Webcam compatível com driver QuickCam:
  • apt-get update
  • apt-get install qc-usb-source qc-usb-utils usbutils


Instalando VLC 0.8.6:
  • apt-get install vlc vlc-plugin-* mozilla-plugin-vlc


Upgrade para VLC 0.9.4:
  • nano /etc/apt/sources.list
deb http://fr.archive.ubuntu.com/ubuntu jaunty main multiverse

  • apt-get update
  • apt-get install vlc vlc-nox


Testando (usando terminal, não root):

Transmitindo mmsh - arquivo gravado:
  • vlc /usr/local/movies/sample_300kbit.mp4 -I dummy --sout
    '#std{access=mmsh,dst=:8081}' --ttl 2 --loop
Cliente VLC:
  • mmsh://IP_SERVIDOR:8081

Transmitindo mmsh - webcam - (delay +-7s):
  • vlc -I dummy -v --noaudio --ttl=1 v4l:// :v4l-vdev="/dev/video0" --sout '#transcode{vcodec=mp4v,vb=1024}:std{access=mmsh,dst=:8081}'
Cliente VLC:
  • mmsh://IP_SERVIDOR:8081

Transmitindo rtp - webcam - (delay +-2s):
  • vlc -I dummy -v --noaudio --ttl=1 v4l:// :v4l-vdev="/dev/video0" --sout '#transcode{vcodec=mp4v,vb=1024}:rtp{dst=IP_DESTINO,port=1234}'
Cliente VLC (multicast/rtp)
  • udp IP_DESTINO 1234

Transmitindo rtsp - webcam - (delay +-2s):
  • vlc -I dummy -v --noaudio --ttl=1 v4l2:// :v4l-vdev="/dev/video0" --sout '#transcode{vcodec=mp4v,vb=1024}:rtp{sdp=rtsp://:1234/test.sdp}'
Cliente VLC:
  • rtsp://IP_SERVIDOR:1234/test.sdp


VLC Info: