VLC 1.2镶嵌流媒体

时间:2011-12-21 15:52:28

标签: vlc mosaic

此VLM配置适用于VLC 1.1,但在播放器运行马赛克超过一小时后,我遇到了内存泄漏的其他问题。 我已经安装了VLC 1.2但它无法在马赛克中显示任何流(请参阅下面的错误)。单个流工作正常,我使用MMSH流式传输WMV文件。 根据我的理解,假冒://访问方法已在VLC 1.2中弃用。是否有任何其他更改会阻止此马赛克在VLC 1.2中运行?

new bg broadcast enabled
setup bg output #bridge-in{offset=10}:display

#VLC 1.2
setup bg input "http://img696.imageshack.us/img696/4131/rainbowbackgroundq.png"

#OR- VLC 1.1
setup bg input 'fake://' option 'fake-file=http://img696.imageshack.us/img696/4131/rainbowbackgroundq.png' option 'fake-width=800' option 'fake-height=600'


setup bg option sub-filter=mosaic
setup bg option mosaic-alpha=255
setup bg option mosaic-height=600
setup bg option mosaic-width=800
setup bg option mosaic-align=5
setup bg option mosaic-xoffset=0
setup bg option mosaic-yoffset=0
setup bg option mosaic-vborder=5
setup bg option mosaic-hborder=5
setup bg option mosaic-position=1
setup bg option mosaic-rows=1
setup bg option mosaic-cols=2
setup bg option no-mouse-events
setup bg option no-keyboard-events
setup bg option no-audio
setup bg option mosaic-order=v1,v2
setup bg option no-mosaic-keep-picture
setup bg option no-mosaic-keep-aspect-ratio

new v1 broadcast enabled
setup v1 input "mmsh://mediaserver2.otn.ca/mediasite/b2974e0a-24c3-43e4-9833-e3c9937197e0.wmv"
setup v1 option input-repeat=-1
setup v1 output #mosaic-bridge{id=v1,width=395,height=600}
new v2 broadcast enabled
setup v2 input "mmsh://mediaserver2.otn.ca/mediasite/070871fa-5b30-4e17-b83b-57b149044532.wmv"
setup v2 option input-repeat=-1
setup v2 output #mosaic-bridge{id=v2,width=395,height=600}


control bg play
control v1 play
control v2 play

VLC1.2错误

[0xf80ec8] dummy interface: using the dummy interface module...
[0xf4bb68] [Media: v1] access_mms access error: cannot read data 2
[0xf7b578] [Media: v2] access_mms access error: cannot read data 2
[0xfd72f8] [Media: v2] main decoder error: cannot create packetizer output (WMA2)
[0xf72ed8] [Media: v1] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1000 ms)
[0xf72ed8] [Media: v1] main input error: ES_OUT_RESET_PCR called

1 个答案:

答案 0 :(得分:1)

您是否尝试过VLC 2.0?

应该更新VLC的维基,为您提供VLC 2的工作示例:http://wiki.videolan.org/Mosaic

关于马赛克设置的更改 - 使用VLC 2,这将包含以下内容

(1)您已经替换了假冒:// - 连续显示您的图片添加:

    setup bg option image-duration=-1

(2)马赛克选项需要使用命令行,如:

    vlc -I telnet --mosaic-alpha=255 --mosaic-height=600 --mosaic-align=5 --mosaic-xoffset=0 [...] --vlm-conf /path/to/your/mosaic/config/file

(3)对您的bg广播进行转码并在那里使用子过滤器:

   setup bg output #transcode{sfilter=mosaic,vcodec=h264,venc=x264{profile=baseline,level=30,aud},vb=768,width=800,height=600,scale=1}:standard{access=udp,mux=ts,dst=239.0.0.1:1234}

希望这有助于指出正确的方向。