mpeg ts で audio/video とりあえずできた
これが完璧版 (filter 追加)
gst-launch-1.0 -e v4l2src norm=PAL ! omxh264enc target-bitrate=8000000 control-rate=variable ! video/x-h264, profile=high ! queue ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! volume volume=3 ! audioconvert ! audio/x-raw ! audioconvert ! audiochebband mode=band-pass lower-frequency=1000 upper-frequency=4000 type=2 ! audioconvert ! voaacenc bitrate=64000 ! queue ! muxy. 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/
gst-launch-1.0 -e v4l2src norm=PAL ! omxh264enc target-bitrate=8000000 control-rate=variable ! video/x-h264, profile=high ! queue ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! audioconvert ! audio/x-raw ! voaacenc ! queue ! muxy. 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/
filter無し版
(とりあえず最初の板)
gst-launch-1.0 -e v4l2src norm=PAL ! videoconvert ! clockoverlay ! omxh264enc target-bitrate=8000000 control-rate=variable ! video/x-h264, profile=baseline ! h264parse ! queue ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! voaacenc ! queue ! muxy. 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/
muxy. muxy. が聞いているようだ
gst-launch-1.0 -e v4l2src norm=PAL ! videoconvert ! clockoverlay ! omxh264enc target-bitrate=4000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! queue ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! audioconvert ! audio/x-raw, channels=1 ! voaacenc bitrate=64000 ! queue ! muxy. 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/
gst-launch-1.0 -e v4l2src norm=PAL ! videoconvert ! clockoverlay ! omxh264enc target-bitrate=2000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! audioconvert ! audio/x-raw, rate=16000, channels=1 ! voaacenc bitrate=64000 ! queue ! muxy. 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/
少しbitrateをおとす
mpegts ファイルの生成がおかしかったが、parseをおとすとok.
gst-launch-1.0 -e v4l2src norm=PAL ! omxh264enc target-bitrate=2000000 control-rate=variable ! video/x-h264, profile=high ! queue ! mpegtsmux name=muxy alsasrc device=plughw:0,0 ! audioconvert ! audio/x-raw, rate=16000, channels=1 ! voaacenc bitrate=64000 ! queue ! muxy. 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/