VLC learning program --- document reading

xiaoxiao2021-03-06  43

A videolan-howto-en-html

This document describes the solution of Videolan "stream".

The Videolan project includes two software.

1) VLC: The client is previously received by the video stream, but it can now be operated as a server.

2) VLS: Video server, can send MPEG-1, MPEG-2 and MPEG-4 FILES, DVDS, DIGITAL Satellite Channels, Digital Terrestial Television Channels and Live Video on The Network in Unicast or Multicast.

1. VLC installation under redhat

Download the VLC package and the library you need from the link from the links, put them in the same directory. Http://www.videolan.org/vlc/download-redhat.html

Source code installation: The library required for the source code installation is as follows:

Libdvbpsi (Compulsory),

MPEG2DEC (Compulsory),

Libdvdcss if you want to beable to read encrypted DVDS,

Libdvdplay if you want to have have dvd menu navigation,

A52DEC if you want to beable to decode the ac3 (i.e. a52) Sound Format offen buy in DVDS,

Ffmpeg, Libmad, Faad2 if you want to read MPEG 4 / DivX Files,

Libogg & libvorbis if you want to read ogg vorbis files.

2.vlc receives flow in the command line

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 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 ms: //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

3.vlc Send a stream in the command line

% VLC -VVV video1.xyz --sout udp: 192.168.0.42 - TTL 12

Where: * video1.xyz is the file you want to stream, * 192.168.0.42 is each:

The ip address of the machine you want to unicast To;

Or the dns name the machine you want to unicast to;

OR A MultiCast IP Address.

* 12 Is The Value of the TTL (Time to Live) of Your IP Packets (Which Means That The Stream Will Be Aable To Cross 11 Routers). If You Want To Stream The File Continuously, Add the --LOOP Option.

4.VLC Advanced Application (VLC's Stream Output (Transcoding, Multiple Streaming, ETC ...)

grammar:

Please refer to the "Command Line Interface" Chapter of The "VLC User Guide" to Learn The Syntax of VLC's Stream Output.

Example: ---- Example of the encoding

TRANSCODE

The Input Stream and send it to a multicast ip address with the associated sap announce:

% VLC -VVV INPUT_STREAM --SOUT '#Transcode {vcodec = MP4V, Acodec = MPGA, VB = 800, AB = 128, Deinterlace}: standard {Access = UDP, MUX = TS, URL = 239.255.12.42, SAP, Name = "TestStream"} '

Display The Input Stream, Transcode It and send it to a multicast ip address with the associated sap announce:

% VLC -VVV INPUT_STREAM --SOUT '#duplicate {DST = Display, DST = "Transcode {vcodec = MP4V, Acodec = MPGA, VB = 800, AB = 128, Deinterlace}: standard {access = udp, mux = TS, URL = 239.255.12.42, sap, name = "TestStream"} "} '

TRANSCODE THE INPUT STREAM and Send It To A Multicast IP ADDRESS with The Associated SAP Announce:

% VLC -VVV INPUT_STREAM --SOUT '#Transcode {vcodec = MP4V, Acodec = MPGA, VB = 800, AB = 128, Deinterlace}: duplicate {DST = Display, Dst = Standard {Access = UDP, MUX = TS, URL = 239.255.12.42, SAP, Name = "TestStream"}} '

- An example of a variety of streams

Send a stream to a multicast IP address and a unicast IP address:% vlc -vvv input_stream --sout '#duplicate {dst = standard {access = udp, mux = ts, url = 239.255.12.42, sap, name = "TestStream "}, dst = standard {access = udp, mux = TS, URL = 192.168.1.2}} '

Display The Stream and Send It To Two Unicast IP Addresses:

% VLC -VVV INPUT_STREAM --SOUT '#duplicate {DST = Display, DST = Standard {Access = UDP, MUX = TS, URL = 192.168.1.12}, dst = standard {access = udp, MUX = TS, URL = 192.168 .1.42}} '

Send Parts of a Multiple Program Input Stream:

% Vlc -vvv multiple_program_input_stream --sout '#duplicate {dst = standard {access = udp, mux = ts, url = 239.255.12.42}, select = "program = 12345", dst = standard {access = udp, mux = ts , URL = 239.255.12.43}, select = "Video, Program = 1234-2345"} '

This command sends the program of the input stream which id is 12345 to 239.255.12.42 and all video programs with id between 1234 and 2345 to 239.255.12.43. Transcoding and multiple streaming Transcode the input stream,

Display the Transcoded Stream and send it to a multicast ip address with the associated SAP Announce and an Unicast IP Address:

% VLC -VVV INPUT_STREAM --SOUT '#Transcode {vcodec = MP4V, Acodec = MPGA, VB = 800, AB = 128, Deinterlace}: duplicate {DST = Display, Dst = Standard {Access = UDP, MUX = TS, URL = 239.255.12.42, SAP, Name = "TestStream"}, DST = Standard {Access = UDP, MUX = TS, URL = 192.168.1.2}} '

Display The Input Stream, Transcode It and send it to Two Unicast IP Addresses:

% VLC -VVV Input_Stream - Sout '#duplicate {DST = Display, DST = "Transcode {vcodec = MP4V, Acodec = MPGA, VB = 800, AB = 128}: Duplicate {DST = Standard {Access = UDP, MUX = ts, url = 192.168.1.2}, dst = standard {access = udp, mux = ts, url = 192.168.1.12} "} 'Send the input stream to a multicast IP address and the transcoded stream to another multicast IP address with the Associated SAP Announces:

% VLC -VVV INPUT_STREAM - Sout '#duplicate {DST = Standard {Access = UDP, MUX = TS, URL = 239.255.1.2, SAP, Name = "OriginalStream"}, DST = "TRANSCODE {vcodec = MP4V, ACODEC = MPGA, VB = 800, AB = 128}: Standard {Access = UDP, MUX = TS, URL = 239.255.1.3, SAP, Name = "TranscoStream"} "} '

转载请注明原文地址:https://www.9cbs.com/read-73955.html

New Post(0)