Ubuntu Live RTMPビデオストリーミング

Ubuntu Live RTMPビデオストリーミング

Ubuntuでライブ(非注文)RTMPストリームを開始しようとしましたが、RTSPVLCを介してのみストリーミングに成功しました。

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)

残念ながら、FlashやHTML5プレーヤーではサポートされていません。 RTMPストリーミングの場合、「方法」はWebカメラのケースでのみ機能することがわかりました。http://www.jpsaman.org/vlc/rtmp

誰かがこの2つの例でRTMPストリームを生成する正確なコマンドを教えてもらえますか?それとも、RTMPストリーミングを開始できる他の無料のLinuxソフトウェアはありますか?

ベストアンサー1

長い研究とテストの最後に、ついに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

おすすめ記事