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

一 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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/263809.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php 重定向到https,php - 如何从HTTPS重定向到HTTP? - SO中文参考 - www.soinside.com

如果我了解您,以下代码将解决此问题:RewriteEngine OnRewriteCond %{HTTPS} offRewriteCond %{SCRIPT_FILENAME} !\/index\.php [NC]#the above line will exclude https://www.hellomysite.com/index.php# from the following rulesRewriteCond %{SCRIP…

JAVA 面试知识点

主要包括以下几个部分: Java 基础知识点Java 常见集合高并发编程(JUC 包)JVM 内存管理Java 8 知识点网络协议相关数据库相关MVC 框架相关大数据相关Linux 命令相关面试,是大家从学校走向社会的第一步。 互联网公司的校园招聘&…

rails中weill_paginate的paginate方法中不能使用额外参数的解决办法

我们知道高版本中的rails中的分页功能已经放在will_paginate这个gem中,我们在控制器方法中往往需要调用其paginate方法来实现分页数据集控制,举个例子:正常的情况我们想要每页显示10条记录可以这么写: Item.paginate(page:params[…

企业管理软件开发不能割裂各系统的功能

现今企业管理软件分类比较多,但在一个企业中可能随着自己的发展以及管理的需要,在不同时期会购买不同阶段的管理软件,出于各种考虑可能会买入不同厂商的软件系统,这样就带来各软件间的无缝接口问题,这个问题如不能及时…

sqlserver 导出mysql,sqlserver数据(表)导出到mysql

这里说明我的工具: Navicat Premium1 首先 navicat 连接到 sqlserver 数据库,也就是我要从这里导出那个 170 万条数据的表,然后选中表右键单击,选择导出向导2 然后选择文本文件,下一步3 核对下我们要导出的表&#xff…

Android ListView避免多线程加载一个同一资源

当我们的ListView中的Item包含图片,而且这些图片是同一资源,我们用多线程去加载图片,这时候可能就发生了这种情况。 比如线程是人,第一个人去做加载图片到缓存的工作,还没做好时第二个人要这同一张张图,结果…

windows笔记-内核对象

有哪些内核对象? 如下:存取符号对象、事件对象、文件对象、文件映射对象、I / O 完成端口对象、作业对象、信箱对象、互斥对象、管道对象、进程对象、信标对象、线程对象和等待计时器对象等。这些对象都是通过调用函数来创建的。 什么是内核对象&#xf…

Django-你想知道的都在这里

1.Django初识 路由层 模板层 ORM层 其他小细节 2.Django进阶 form组件|form细节 Cookie 与 Session 中间件与auth RESTFUL Redis Celery框架 全文检索 反向代理和正向代理 虚拟环境 第三方依赖包 偏函数 长轮询与轮询 转载于:https://www.cnblo…

oracle ora06576,创建oracle发邮件job导致的故障

前几天创建了个发邮件的存储过程,想把数据库每天的运行情况自动发到邮箱,没想到第二天就出了问题,在dbms/trace目录下产生了大量的xxx_j000_xxx.trc文件,一分钟产生2个。alter日志报ora-12012、ora-06576错误,出现sys.…

MediatR 知多少 - 简书

MediatR 知多少 - 简书 原文:MediatR 知多少 - 简书引言 首先不用查字典了,词典查无此词。猜测是作者笔误将Mediator写成MediatR了。废话少说,转入正题。 先来简单了解下这个开源项目MediatR(作者Jimmy Bogard,也是开源项目AutoMa…

oracle数据库扩展目录,Oracle 扩充磁盘空间

Oracle 扩充磁盘空间环境:OS:Oracle Linux Server release 6.3DB:Oracle 11.2.0.4.0问题:根目录磁盘空间不足,还剩6.5G解决办法:扩容磁盘空间;由于安装操作系统时没有使用LVM,不能直接扩容根目录&#xff0…

Java开发中的23种设计模式详解

http://www.cnblogs.com/maowang1991/archive/2013/04/15/3023236.html转载于:https://blog.51cto.com/6103630/1612463

Hibernate中对增删改查的小结

Hibernate中对增删改查的小结mysql中库表News,字段如下id | int | auto_increment | primary keytitle | varcharcontent | varchardate | varchar 1:Hibernate的insert操作 Session session HibernateSessionFactory.getSession(); …

C++ replace replace_if replace_copy replace_copy_if

#include <iostream>#include <list>#include <algorithm>#include <iterator>#include <functional> using namespace std; int main(){  list<int> list1;  list<int> list2; for (int k0;k<10;k)  {    list1.push_…

oracle追加index,oracle add index

1.索引分类a) 唯一索引, 作用是数据约束&#xff0c;保证数据唯一&#xff0c;还有就是数据索引&#xff0c;提高查询效率b)一般索引&#xff0c;只有数据索引的作用&#xff0c;2.唯一索引的建立create unique index 索引名on 表名(字段名)ok,假设有一个Emploeyy表&#xff0c…

centons7网卡配置文件使用openvswitch bridge

今天发现还有另外的方法给ovs添加bridge、绑定网卡等操作&#xff0c;此前我都是这般操作ovs-vsctl add-br br-ex; ovs-vsctl add-port br-ex eth0&#xff0c;这样操作的结果会保存在openvswitch的conf.db里面。现在只需要在网卡配置文件中指定即可&#xff0c;适用于网卡数量…

Linux进程线程学习笔记:运行新程序

Linux进程线程学习笔记&#xff1a;运行新程序 周银辉 在上一篇中我们说到&#xff0c;当启动一个新进程以后&#xff0c;新进程会复制父进程的大部份上下文并接着运行父进程中的代码&#xff0c;如果我们使新进程不运行原父进程的代码&#xff0c;转而运行另外一个程序集中的代…

什么是闭包?闭包的优缺点?

什么是闭包&#xff1f;闭包的优缺点&#xff1f; 闭包&#xff08;closure&#xff09;是javascript的一大难点&#xff0c;也是它的特色。很多高级应用都要依靠闭包来实现。 1、变量作用域 要理解闭包&#xff0c;首先要理解javascript的特殊的变量作用域。 变量的作用域无非…

oracle不同库之间传送文件,EXCEL与ORACLE间的数据互传法数据库 -电脑资料

众所周知&#xff0c;MicrosoftExcel能很直观而方便地进行数据输入&#xff0c;统计&#xff0c;生成图表&#xff0c;但它的数据管理能力有限&#xff0c;对大量的数据查询能力不足&#xff0c;如果利用它数据计算方面的优点和大型 数据库 ORACLE的数据查询优点&#xff0c;可…

使用ANT打包Android应用

大家好&#xff0c;今天来分享一下如何使用ANT打包Android应用。 通常我们习惯用eclipse来开发Android程序&#xff0c;它会自动帮我们打包当前的应用程序。如果在Navigator视图下&#xff0c;我们可以看到以下几个文件&#xff1a; 在上图中&#xff0c;com包放置的是我们的cl…