ts,ps,mpeg2 decoder and analysis

分析工具,免费下载.

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  40 随笔 :: 0 文章 :: 168 评论 :: 0 Trackbacks


一 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"}"}'
 
此文章为转载,原文出处为,http://www.wangchao.net.cn/bbsdetail_58052.html

 
.1.在RH9上的安装需要
   1).RH9的升级包.
   2).FC2的RPM包
   详细说明清参见:http://www.videolan.org/vlc/download-redhat.html
   以上VLC 版本为:0.7.2
  2.下载RH9的升级包
   http://download.videolan.org/pub/videolan/vlc/0.7.2/rpm/redhat/rh9/
  3.下载FC2的RPM包
   http://download.videolan.org/pub/videolan/vlc/0.7.2/rpm/fedora/fc2/
   二进制包为: vlc-binary.tar.gz
  4.将RH9的升级包和 vlc-binary.tar.gz放在同一个目录.
   ~#tar -zxvf vlc-binary.tar.gz
   ~#tar -zxvf redhat9-updates.tar.gz
  5.安装
   ~#rpm -Uv vlc/* --force --nodeps
  6.使用
   1) 在REDHAT->AUDIO AND VIDEO->VLAN MEDIA PLAYER 可以打开
   2)或者在BASH 中打开vlc,使用命令行选项直接启动,参见videolan-how-to-en.
  7.未测试出的功能
   在局域网内的同一网段内的两台PC上不能用MULTICAST 进行VIDEO
   传输.


一.rm格式的播放器:
  下载地址:http://www.real.com/linux/?src=020923home_cn_cn
  安装方式:~#./realplayer.bin
   打开方式:
  命令行:~#realplay
   GUI:redhat->audio and video->other app->realplayer
  二.mp3 播放器:xmms-1.2.8.tar.gz
   安装方式:./configure & make &make install
  三. 经验:从源码编译安装Mplayer 1.0pre5
  来自:http://yangchengkai.blogchina.com/blog/refer.177855.html
  Mplayer/gmplayer是目前Linux下广范使用的媒体播放器,一个字--强!但由于它一般以Tarball的格式

发布,安装比较BT,许多朋友都在找rpm的版本,但来源不同的rpm版本往往无法自己定制许多特性,比如中文

支持等,而且容易造成rpm包的依赖问题,所以有不少朋友最终对 Mplayer又爱又恨...-_-!!
  其实自己编译mplayer并不是什么太难的事,只是过程比较麻烦,但基本还是遵循tarball的安装步骤,有

关这个的文章Sir里已经有了不少,自己这篇就不打算往Sir里贴了,且留在这里和大家分享...:)
  首先是下载最新的mplayer的tarball,即1.0pre5:
  http://www4.mplayerhq.hu/homepage/design7/dload.html
  接下来是下载解码器包,一般只要下载Essential Codes就足够了,要放rmvb需要reallib的解码器,我一

般用xine放rmvb:
  http://www4.mplayerhq.hu/homepage/design7/codecs.html
  还有mplayer的字体文件:
  http://www4.mplayerhq.hu/homepage/design7/dload.html
  这里大家不用到"其他字体"里下载中文字体,待会可以用simsun.ttf替代.
  当然,还要下载Skin文件给gmplayer用:
  http://ftp5.mplayerhq.hu/mplayer/Skin/
  建议用default blue或者neutron,当然,你也可以下载其他的Skin.
  我们先把下载的所有文件cp到/opt/目录下,然后开始具体安装步骤.
  1.首先安装解码器:
  tar -jxvf essential-20040916.tar.bz2
  tar -jxvf rp9codecs-20040626.tar.bz2
  cp -rf rp9codecs-20040626/* essential-20040916/
  mv essential-20040916 /usr/lib/codes
  以上命令把解码器包安装到了/usr/lib/codes,其实就是把解压后的目录ren&mv了过去.
  2.编译安装mplayer:
  tar -jxvf MPlayer-1.0pre5.tar.bz2
  cd MPlayer-1.0pre5
  ./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-

win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --language=zh_CN
  以上几个参数解释一下:
  --enable-gui:打开图形界面支持,就是gmplayer
  --with-codecsdir=/usr/lib/codecs:指明解码器的目录
  --with-win32libdir=/usr/lib/codecs:指明windows的媒体文件解码器目录位置
  --with-reallibdir=/usr/lib/codecs:指明real媒体文件的解码器目录位置,要用gmplayer放rmvb必须

指定这条.
  --language=zh_CN:设定系统界面语言为中文
  在configure之前可以运行./configure --help查看支持的特性设定,可以根据自己需求选择,以上只是

最基本的啦.
  make
  make install
  3.安装字体文件:
  tar -jxvf font-arial-iso-8859-1.tar.bz2
  mv font-arial-iso-8859-1/ /usr/local/share/mplayer/font/
  cd /usr/local/share/mplayer/font/
  如果你的系统用simsun美化过,则直接
  ln -s ***/simsun.ttf subfont.ttf
  注意,这里的***是指simsun的具体位置,为了保险起见,建议在~/.mplayer/里也做同样的链接.
  要是系统没有美化过,试试
  ln -s /usr/share/fonts/zh_CN/TrueType/gbsn001p.ttf subfont.ttf
  这样中文字幕就搞定了.
  4.安装Skin:
  超级简单,把skin包解压后mv到/usr/local/share/mplayer/Skin就可以了,注意一定要有一个skin叫做

default,不然gmplayer无法运行.
  OK,目前为止所有工作结束,运行gmplayer/mplayer看看,Enjoy it!:)
  PS:要是你用xine,在setup里可以把codes的目录指定同mplayer一样,这样可以节省点空间^_^
  5.nvidia driver 驱动安装:


 

posted on 2009-10-12 09:07 TS,MPEG2,dvbc专家 阅读(5295) 评论(9)  编辑 收藏 引用

评论

# re: vlc学习计划(1~~5) 2009-10-14 17:45 凡客诚品网
--language=zh_CN:设定系统界面语言为中文  回复  更多评论
  

# re: vlc学习计划(1~~5) 2010-07-06 10:35 DorothyWATTS28
People in every country receive the <a href="http://lowest-rate-loans.com/topics/credit-loans">credit loans</a> from different banks, because it's simple.   回复  更多评论
  

# re: vlc学习计划(1~~5) 2010-08-05 19:04 Freelance writing job
All people shouldn’t miss to read close to this good topic. Everybody can see the writing jobs service online.   回复  更多评论
  

只有注册用户登录后才能发表评论。