分享
 
 
 

VLC 学习计划---文档阅读

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

一 videolan-howto-en-html

该文档完全描述了VideoLAN "流"的解决方法.

VideoLAN 项目包括两个软件.

1) VLC:以前是视频流接收的客户端,但是现在也可以作为服务端工作.

2) VLS:视频服务端,能发送 MPEG-1, MPEG-2 and MPEG-4 files, DVDs, digital satellite channels, digital terrestial television channels and live videos on the network in unicast or multicast.

1.VLC 在REDHAT 下的安装

从下面的链接中下载 vlc的包和包所需要的库,把他们都放在同一个目录.

http://www.videolan.org/vlc/download-redhat.html

源代码安装:

源代码安装需要的库如下:

libdvbpsi (compulsory) ,

mpeg2dec (compulsory) ,

libdvdcss if you want to be able to read encrypted DVDs ,

libdvdplay if you want to have DVD menu navigation ,

a52dec if you want to be able to decode the AC3 (i.e. A52) sound format often used 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在命令行下接收流

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 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在命令行下发送流

% 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 either:

o the IP address of the machine you want to unicast to;

o or the DNS name the machine you want to unicast to;

o 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 able to cross 11 routers).

If you want to stream the file continuously, add the --loop option.

4.VLC 高级应用(VLC's stream output (transcoding, multiple streaming, etc...))

语法: Please refer to the" command line interface" chapter of the "VLC user guide "to learn the syntax of VLC's stream output.

例子:

----编码方面的例子

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, display the transcoded 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"}}'

--多种流的例子

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="TranscodedStream"}"}'

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有