Difference between revisions of "VLC"

From ElphelWiki
Jump to: navigation, search
 
( restream)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page describe things what you can or cannot do with VLC.
+
= About VLC =
 +
This page describe uses of VLC with Elphel cameras.
  
VLC is easy to install on Windows (r), OS X or GNU/Linux. run the same way and do same things on all those platform.
+
[http://www.videolan.org/vlc/ VLC] is easy to install on Windows (r), OS X or GNU/Linux, run the same way and do same things on all those platform.
  
 
Another interesting thing in VLC is the plugins architecture and the AJAX web interface.
 
Another interesting thing in VLC is the plugins architecture and the AJAX web interface.
Line 7: Line 8:
 
Plugins can be used for example for digital zoom, transcoding, mosaic with 4,6,9,16,... cameras, realtime processing, ...
 
Plugins can be used for example for digital zoom, transcoding, mosaic with 4,6,9,16,... cameras, realtime processing, ...
  
The first thing you would know about is what without a special patch what has to be done VLC will _NOT_ be able to play the full resolution. 1290x960 work fine for me.
+
I have successfully transcoded and recorded to mpeg4 video and viewed the result in the same time. It work on my notebook. (thinkpad T60 Intel Core2 2GHz, 2 GB RAM)
  
 +
= play the stream =
 
so the first basic thing you can do with VLC is to play both unicast or multicast stream from the camera.  
 
so the first basic thing you can do with VLC is to play both unicast or multicast stream from the camera.  
  
just lunch: <nowiki>vlc rtsp://192.168.0.9:554</nowiki>
+
vlc rtsp://192.168.0.9:554
  
Replace 192.168.0.9 with the IP address of your camera if different.
+
Replace 192.168.0.9 with the IP address of your camera.
  
 +
= restream =
  
I will later add more tips on VLC here. Please fill free also to add interesting things.
+
VLC is much more than just a video player.
 +
 
 +
You can also use it to receive a live video stream, re-encode/transcode and broadcast/restream it again.
 +
 
 +
The following command does:
 +
*opens the camera stream (unicast or multicast) from *CAMERA-IP*
 +
*resizes resolution to 50%
 +
*limits FPS to 12,
 +
*re-encodes the stream in Theora
 +
*set Video Bitrate to 3600
 +
*streams it on all interfaces on port 8080
 +
 
 +
vlc rtsp://*CAMERA-IP*:554 --sout '#transcode{vcodec=theo,vb=3600,scale=0.5,fps=12}:duplicate{dst=std{access=http,mux=ogg,dst=0.0.0.0:8080}}'
 +
 
 +
 
 +
To open this encoded stream on a client PC (maybe over Internet) you just need to open http://vlc_server_ip:8080 in a video player.
 +
 
 +
 
 +
Alternateively you can also use the GStreamer framework to reencode & restream.

Latest revision as of 17:10, 24 June 2010

About VLC

This page describe uses of VLC with Elphel cameras.

VLC is easy to install on Windows (r), OS X or GNU/Linux, run the same way and do same things on all those platform.

Another interesting thing in VLC is the plugins architecture and the AJAX web interface.

Plugins can be used for example for digital zoom, transcoding, mosaic with 4,6,9,16,... cameras, realtime processing, ...

I have successfully transcoded and recorded to mpeg4 video and viewed the result in the same time. It work on my notebook. (thinkpad T60 Intel Core2 2GHz, 2 GB RAM)

play the stream 

so the first basic thing you can do with VLC is to play both unicast or multicast stream from the camera.

vlc rtsp://192.168.0.9:554

Replace 192.168.0.9 with the IP address of your camera.

 restream

VLC is much more than just a video player.

You can also use it to receive a live video stream, re-encode/transcode and broadcast/restream it again.

The following command does:

  • opens the camera stream (unicast or multicast) from *CAMERA-IP*
  • resizes resolution to 50%
  • limits FPS to 12,
  • re-encodes the stream in Theora
  • set Video Bitrate to 3600
  • streams it on all interfaces on port 8080
vlc rtsp://*CAMERA-IP*:554 --sout '#transcode{vcodec=theo,vb=3600,scale=0.5,fps=12}:duplicate{dst=std{access=http,mux=ogg,dst=0.0.0.0:8080}}'


To open this encoded stream on a client PC (maybe over Internet) you just need to open http://vlc_server_ip:8080 in a video player.


Alternateively you can also use the GStreamer framework to reencode & restream.