如何从 VLC 循环播放 MMS 视频流

如何从 VLC 循环播放 MMS 视频流

我有一个用于马赛克广播的 VLM 配置,但是一旦流播放完毕,无论选择什么选项,它都不会重新启动loop。该loop选项仅适用于某些流还是仅适用于播放列表?

# VLC media player VLM command batch
# http://www.videolan.org/vlc/

new bg broadcast enabled loop
setup bg input "fake://"
setup bg output #bridge-in{offset=10}:display
setup bg option fake-file=http://www.allbestwallpapers.com/wallpaper/nature/image/waterfall,_letchworth_state_park,_new_york.jpg
setup bg option fake-width=1024
setup bg option fake-height=768
setup bg option fake-aspect-ratio=16:9
setup bg option sub-filter=mosaic
setup bg option no-mouse-events
setup bg option no-keyboard-events
setup bg option no-audio
setup bg option vout=sdl
setup bg option mosaic-alpha=255
setup bg option mosaic-height=768
setup bg option mosaic-width=1024
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-bridge-chroma=I420
setup bg option mosaic-position=1
setup bg option mosaic-rows=2
setup bg option mosaic-cols=2
setup bg option mosaic-order=v1,v2,v3,v4
setup bg option no-mosaic-keep-picture
setup bg option no-mosaic-keep-aspect-ratio
new v1 broadcast enabled loop
setup v1 input "mmsh://mediaserver2.otn.ca/mediasite/02c708f2-edf4-4516-bd32-fd2820d22543.wmv"
setup v1 output #mosaic-bridge{id=v1,width=635,height=355}
setup v1 option mms-caching=5000
new v2 broadcast enabled loop
setup v2 input "mmsh://mediaserver2.otn.ca/mediasite/297fe7b7-4764-41e7-b27f-9359ba3a7676.wmv"
setup v2 output #mosaic-bridge{id=v2,width=635,height=355}
setup v2 option mms-caching=5000
new v3 broadcast enabled loop
setup v3 input "mmsh://mediaserver2.otn.ca/mediasite/498e1938-c1a8-405e-8578-57dcf924bec0.wmv"
setup v3 output #mosaic-bridge{id=v3,width=635,height=355}
setup v3 option mms-caching=5000
new v4 broadcast enabled loop
setup v4 input "mmsh://mediaserver2.otn.ca/mediasite/66da9337-9dd3-44ac-99bc-8c79dcb18eed.wmv"
setup v4 output #mosaic-bridge{id=v4,width=635,height=355}
setup v4 option mms-caching=5000


control bg play
control v1 play
control v2 play
control v3 play
control v4 play

答案1

不要loop尝试使用:

setup your_stream option input-repeat=-1

发现于VideoLan 论坛

相关内容