当前位置: 首页 >> Tag标签为 'VLC'

在CentOS上升级vlc至最新版本

一直使用VLC对一个高清视频流进行转码,以前使用的是以下:
cvlc http://xxx.xxx.xxx.xxx/live –sout “#transcode{vcodec=h264,vb=2048,scale=0.5,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=:9000}}”

当时VLC 的版本是: vlc-0.9.9a-5.el5.rf.i386,最近我使用yum update(RPMforge的源)升级到vlc-0.9.9a-7.el5.rf版本后(当然ffmpeg、x264也升级了)却出现以下错误:
Read the rest of this entry »

VLC流媒体转换的一个用法

VLC是挺强大的一个东西,但是VLC的帮助写得确实不怎么样,特别是对<string>的说明,到底string可以使用哪些关键字,很难对应上。

最近本人有一个挺奇怪的需求:

Read the rest of this entry »

通过VLC将媒体流保存成FLV文件

cvlc mms://you_server_IP_Address/cctv-news --run-time 60 --sout="#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=file,mux=ffmpeg{m
ux=flv},dst=/tmp/stream.flv}}"

不过保存的媒体丢失了时间轴,具体表现为,用播放器播放时播放器无法获知媒体的长度,所以用ffmpeg转换一下就OK了,不知道是否有别的更好的办法。

转成FLV流媒体供flash播放器播放:

cvlc mms://you_server_IP_Address/cctv-news --sout "#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:9090/stream.flv}"

Windows下循环启动VLC的脚本

为配合《Windows下VLC状态检查》工作,VLC需要循环启动,以下是启动脚本:

Read the rest of this entry »

Windows下VLC状态检查脚本

原理很简单,假设你的流媒体是20Mbps的,你通过下载程序下载10秒,平均速率如果低于10Mbps,那VLC肯定工作不正常了,把VLC进程杀掉,重新启动VLC即可。

Read the rest of this entry »

FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工

借鉴上海交大姜开达老师的经验:http://blog.cost.edu.cn/kaida/2009/12/17/高清数字电视走进校园网系列之二/,使用FlyTv PCIe X1 DMB-TH Hybrid+VLC收看CCTV高清节目,经过一段时间的试验,发现一个小现象。

Read the rest of this entry »

VLC disable error messages (error messages suppressed)

VLC from throws and not turn-off errors in a separate error window [1] [2] [3]. These errors particularly annoying when VLC is operated with a remote control or keyboard. Also setting the “verbose level” ( “Verbosity”) to “0″ or the quiet switch “be quiet” ( “Be”) under “Tools-> Settings” ( “Tools-> Preferences) does not prevent VLC still sporadic error messages. The problem can be solved but with AutoHotkey and a corresponding script. This script monitors the open window in Windows and includes an error occurs, the information window of VLC.

Read the rest of this entry »