一 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 [url=ftp://example/stream.xyz]ftp://example/stream.xyz[/url] 
where [url=ftp://example/stream.xyz]ftp://example/stream.xyz[/url] 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: 
      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 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"}"}'
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jsphuang/archive/2005/01/02/237401.aspx

转载于:https://www.cnblogs.com/qq78292959/archive/2010/08/27/2077034.html

VLC 学习计划---文档阅读相关推荐

  1. Blockly学习之文档阅读笔记

    文档阅读来源--谷歌官网介绍: https://developers.google.com/blockly/guides/overview 概述 一个用于Web.Android.iOS的可视化代码编辑 ...

  2. 英语学习(Spring文档阅读生词 2)

    solely 唯一的,单独的 the ApplicationContext implementations ApplicationContext这个实现 autowire 自动装配 introspec ...

  3. FreeRTOS官方指导文档阅读笔记

    FreeRTOS官方指导文档阅读笔记 基于 161204_Mastering_the_FreeRTOS_Real_Time_Kernel-A_Hands-On_Tutorial_Guide.pdf,可 ...

  4. [RCTF2019]printer详解(python脚本、USB协议精解、TSLP2文档阅读)

    一个非常好的网站,可以学习USB协议: USB中文网 拿到文件发现是USB数据,第一反应用脚本提取: aaaaaaaaccccaahdgeeefefdgeegegeegcccbaabfefghifee ...

  5. 一款轻巧快速的跨平台文档阅读器

    程序员宝藏库:你想要的,应有尽有! DevWeekly收集整理每周优质开发者内容,包括开源项目.资源工具.技术文章等方面. 每周五定期发布,同步更新到知乎:Jackpop . 欢迎大家投稿,提交iss ...

  6. ExtJS4 API文档阅读(四)——Data

    2019独角兽企业重金招聘Python工程师标准>>> ExtJS4 API文档阅读(四)--Data 数据 Data包负责加载和保存你应用程序中的所有数据,由41个类构成,其中有三 ...

  7. Flink中GroupWindow和OverWindow各自的作用+window体系+文档阅读方式

    GroupWindow和OverWindow各自的作用 Flink Window 作用 完整实例 GroupWindow 对window中的数据按照字段进行分组 完整案例 OverWindow 在整个 ...

  8. TurboMail手机客户端—强大的附件文档阅读能力

    2019独角兽企业重金招聘Python工程师标准>>> 对于频繁使用邮件的用户而言,收发附件已是家常便饭,但对于手机查看附件,用户却遇到了很多问题.稍微低端的手机,除了txt格式的文 ...

  9. Qt文档阅读笔记-共享库的创建与调用

    使用共享库的符号 这个符号可以作用在变量.类.函数中,并且这些都可以被调用端使用. 在编译共享库中,需要使用export符号.在使用端调用的时候使用import符号. 这里是本人从文档中记录的笔记,大 ...

最新文章

  1. 大数据调度平台Airflow(三):Airflow单机搭建
  2. 一次搞懂所有排序算法(一)
  3. java字符串反转的方法,Java实现字符串反转的几种方法
  4. 复杂存储过程学习_对象存储在无人驾驶高精度地图的场景实践
  5. Python基础05 缩进和选择
  6. 微服务部署:蓝绿部署、滚动部署、灰度发布等部署方案对比与总结
  7. Centos 手工创建新用户
  8. drools 规则流_约束流–没有Drools规则语言的现代Java约束
  9. java 二分搜索获得大于目标数的第一位_程序员数据结构算法编程,二分查找搜索算法的原理与应用介绍!...
  10. phpMyAdmin无法导入大的数据库文件的解决方法
  11. canvas js 绘图插件_快速入门前端图表插件Echart
  12. 【docker】使用云服务器运行docker时无法访问宿主机的映射端口
  13. 「leetcode」763.划分字母区间【贪心算法】详细图解
  14. extjs4 store传参使用方法
  15. LineBasedFrameDecoder 行解码器,回车换行符解决 TCP 粘包
  16. 知了课堂 python_知了课堂 Python Flask零基础 笔记整理
  17. 雨过天晴电脑保护系统专业版
  18. 基于python和tesseract库的中英文识别(OCR)
  19. 阿里立秋:淘宝如何做智能化UI测试?
  20. 全民写作一夜成名 Web2.0:作家造富路线图

热门文章

  1. 哪些信用卡取现0手续费?
  2. 藉上帝之旨,行时代之命的文学长征
  3. BRAND-NEW OF DOUBLES工作组合的新作品
  4. MATLAB快速拟合二组数据
  5. [学习] FPGA之基本原理(可能理解不对)
  6. java程序里繁体字显示为方块_网页 俄罗斯方块
  7. GPU Gems1 - 17 环境遮挡
  8. matlab求距离判别函数,求MATLAB的逐步判别程序 - 仿真模拟 - 小木虫 - 学术 科研 互动社区...
  9. 【matlab函数】convn多维卷积
  10. Java生鲜电商平台-电商支付流程架构实战