1

我有一个 .asf 视频流,需要通过 http 进行流式传输。我需要先转换它,因为 iOS 客户端不支持 asf。
我尝试了 ubuntu server + 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 客户端中也看不到。

4

0 回答 0