VLC:如何转换asf并通过http传输它

时间:2012-09-01 13:16:41

标签: ubuntu stream vlc asf

我有一个.asf视频流,我需要通过http流。我需要先转换它,因为iOS客户端不支持asf 我尝试了ubuntu服务器+ vlc,但我没有设法让它工作:

当我发出:

vlc 'http://my_asf_stream.asf' --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=asf,dst=localhost:8083}'

(不是100%这是正确的命令,但是......)

我有以下输出:

VLC media player 2.0.4 Twoflower (revision 2.0.3+git20120830+r358)
[0x11bbd28] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x11bbd28] main interface error: no suitable interface module
[0x7f65b4001108] main interface error: no suitable interface module
[0x118c108] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x118c108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x11ba7c8] qt4 interface error: Could not connect to X server
[0x11ba7c8] skins2 interface error: cannot initialize OSFactory
[0x11cff18] main stream output error: stream chain failed for `transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:
standard{access=http,mux=asf,dst=localhost:8083}'
[0x12647f8] main input error: cannot start stream output instance, aborting
[0x11ba7c8] [cli] lua interface: Listening on host "*console".
VLC media player 2.0.4 Twoflower
Command Line Interface initialized. Type `help' for help.
> 

我无法弄清楚问题出在哪里。我在ubuntu上没有X服务器,因为我使用服务器版本,但我想这不需要解码/流。

有什么想法吗?

更新

看来这个命令效果更好:

cvlc -vvv 'http://my_asf_stream.asf' --sout '#transcode{vcodec=h264,vb=100}:standard{access=http,mux=asf,dst=:8083}'

但我无法在服务器上看到我的网络浏览器上的流媒体:8083,在iOS客户端中都没有。

0 个答案:

没有答案