Chapter 3.  Receive and save a stream

Table of Contents

Receive a stream with VLC
Save a stream with VLC
Receive a stream with a set-top-box

Receive a stream with VLC

Receive an unicast stream

% vlc -vvv udp:

Receive a multicast stream

% vlc -vvv udp:@239.255.12.42

where 239.255.12.42 is the multicast IP address you want to join.

Receive an HTTP/FTP/MMS stream

Use one of the following command lines:

  • % vlc -vvv http://example/stream.xyz
    

    where http://example/stream.xyz is the HTTP address of the stream;

  • % vlc -vvv ftp://example/stream.xyz
    

    where ftp://example/stream.xyz is the FTP address of the stream;

  • % vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo
    

    where mms://viptvr.yacast.fr/encoderfranceinfo is the MMS address of the stream.

Receive a RTP stream available through RTSP

% vlc -vvv rtsp://www.hardradio.com/tonbeme.mov

where rtsp://www.hardradio.com/tonbeme.mov is the address of the stream.

Receive a stream described by an SDP file

% vlc -vvv http://server.example.org/stream.sdp

Save a stream with VLC

VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC : you can do it via the graphical interface, or you can add to the command line the following argument:

--sout file/muxer:stream.xyz

where:

  • muxer is one of the formats supported by VLC's stream output, i.e. :

    • avi for AVI format,

    • ogg for OGG format,

    • ps for MPEG2-PS format,

    • ts or ts_dvbpsi for MPEG2-PS format (the latter uses libdvbpsi for the task).

  • and stream.xyz is the name of the file you want to save the stream to, with the right extension.

Receive a stream with a set-top-box

Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast. This is the case of the Pace and Aminocom set top boxes. We have tested the AmiNET 100 set-top-box from Aminocom: it is nice and small, and it works very well with VideoLAN.