Using VLC to host a stream of an infinite video loop

前端 未结 2 987
天涯浪人
天涯浪人 2021-02-14 02:32

I want to offer a video stream from my pc with a VLC player trough a WIFI network to smartphones for regression testing. The video should automatically restart at the beginning

2条回答
  •  别那么骄傲
    2021-02-14 03:14

    Thank you freeforall tousez!

    The gather:std setting worked great for me. Below is my command line string for RTSP with a playlist.

    cvlc --random --loop /var/www/html/files/test.xspf :sout=#gather:rtp{sdp=rtsp://:8554/} :network-caching=1500 :sout-all :sout-keep
    

    This streams a playlist of videos randomly in a never ending loop. I hope this will help others.

提交回复
热议问题