我正在尝试从ubuntu启动实时(不是按需) RTMP流,但是我只通过VLC成功地使用了RTSP
流。
vlc -vvv ./videos/test.mp4 --sout '#rtp{dst=192.168.8.106,port=1234,sdp=rtsp://192.168.8.106:1234/test.sdp}'
(来源:https://www.videolan.org/doc/streaming-howto/en/ch04.html)
不幸的是,它不支持任何闪存或html5播放器。对于RTMP流,我发现“如何”仅用于网络摄像头案例- http://www.jpsaman.org/vlc/rtmp。
有人能帮我从这两个例子中为RTMP流创建精确的命令吗?或者还有其他免费的linux软件可以启动流RTMP流?
发布于 2015-11-20 07:44:15
经过长期的研究和测试,我终于找到了vls+hls流的解决方案。
vlc -vvv path/to/video/test.mp4 :sout="#transcode{vcodec=h264,vb=100, venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1}, aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=32,channels=1,samplerate=8000} :std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/video-stream/stream.m3u8, index-url=http://192.168.8.106/video-stream/stream-########.ts}, mux=ts{use-key-frames}, dst=/var/www/video-stream/stream-########.ts}"
这是我找到的唯一能支持上层hls流- https://github.com/clappr/clappr的播放器。
https://unix.stackexchange.com/questions/244032
复制相似问题