serverside で簡単に見られるよう設定

hammmm.hatenablog.com

 

Fileへの出力→OK 

gst-launch-1.0 -e \
mp4mux name=muxy ! filesink location=out.mp4 \
alsasrc device=plughw:0,0 ! audio/x-raw,rate=48000 ! audioconvert ! queue ! lamemp3enc ! muxy.audio_0 \
v4l2src ! videoconvert ! omxh264enc ! video/x-h264, target-bitrate=80000000, control-rate=variable ! h264parse ! queue ! muxy.video_0

 

audio/video の mp4へのmux サンプル

 

 

mattintosh.hatenablog.com

 


gst-launch-1.0 -e v4l2src norm=PAL ! videoconvert ! clockoverlay ! omxh264enc target-bitrate=8000000 control-rate=variable ! video/x-h264, profile=baseline ! h264parse ! queue ! muxy.video_0 alsasrc device=plughw:0,0 ! audio/x-raw,rate=48000,format=S16LE, channels=2 ! audioconvert ! voaacenc ! aacparse ! queue ! muxy.audio_0 matroskamux name=muxy ! hlssink max-files=8 target-duration=5 location=/var/www/html/stream/segment%05d.ts playlist-location=/var/www/html/stream/output.m3u8 playlist-root=http://rpi/stream/

 

VLCが途中で泊まる。

 

動画のみおk版

gst-launch-1.0 v4l2src device=/dev/video0 norm=PAL ! omxh264enc target-bitrate=6000000 control-rate=variable ! video/x-h264,profile=high ! mpegtsmux ! hlssink max-files=8 target-duration=5 location=/var/www/html/stream/segment%05d.ts playlist-location=/var/www/html/stream/output.m3u8 playlist-root=http://rpi/stream/

 

stackoverflow.com

 

audio video の mpegtsmux sanmple