Use VLC to stream RTSP feed as HTTP Live Stream

做~自己de王妃 提交于 2019-12-06 03:37:24

问题


I have a really high quality RTSP feed coming into a windows server. I'm attempting to use VLC to restream it as Http Live Streaming.

Does anyone know whether it is possible to establish this stream through VLC's graphic user interface as opposed to the command line? If so, how?

The examples I've found so far (on here and elsewhere) have all been command line examples and none of them have worked at all.

I would love to hear from anyone who has actually accomplished a successful restream of RTSP to an http live stream using a windows server. Incidentally, I already have the website set up to serve the result, but I can't get the stream to write the .ts files regardless of what I've tried.

I'm stumped. Thanks.


回答1:


just look this command for example:

vlc -I dummy rtsp://ip:port/blablabla--sout '#transcode{vcodec=h264,fps=20,vb=512,scale=1,acodec=none,venc=x264{aud,profile=high,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/live/mystream.m3u8,index-url=http://ip/live/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/live/mystream-########.ts},dst=std{access=http,mux=ts,dst=:8082/video.mp4}}'


来源:https://stackoverflow.com/questions/21148316/use-vlc-to-stream-rtsp-feed-as-http-live-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!