Update pi camera capture

This commit is contained in:
Vasily Evseenko 2022-11-22 03:26:50 +03:00
parent f8313f7996
commit 090cc820b0

View File

@ -5,12 +5,11 @@ After=network-online.target
[Service]
## Pipeline for PI camera
ExecStartPre=/bin/sh -c "v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=H264 --set-ctrl=video_bitrate=4000000 --set-ctrl=rotate=180 --set-ctrl=image_stabilization=1 --set-ctrl=h264_profile=4 --set-ctrl=h264_i_frame_period=60 --set-ctrl=h264_level=11 --set-ctrl=video_bitrate_mode=1 --set-ctrl=power_line_frequency=1 --set-ctrl=exposure_metering_mode=1 --set-ctrl=repeat_sequence_header=1 --set-ctrl=exposure_dynamic_framerate=0 --set-ctrl=scene_mode=0 -p 30"
ExecStart=/bin/sh -c "gst-launch-1.0 v4l2src do-timestamp=true io-mode=mmap device=/dev/video0 ! video/x-h264,profile=high,width=1280,height=720,framerate=30/1,stream-format=byte-stream ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=127.0.0.1 port=5602 sync=false"
ExecStart=/bin/sh -c "gst-launch-1.0 v4l2src do-timestamp=true io-mode=mmap device=/dev/video0 extra-controls="controls,rotate=180,image_stabilization=1,h264_profile=4,h264_i_frame_period=60,h264_level=11,power_line_frequency=1,exposure_metering_mong=1,exposure_dynamic_framerate=0,scene_mode=0,video_bitrate_mode=1,video_bitrate=4000000,repeat_sequence_header=1" ! video/x-h264,profile=high,width=1280,height=720,framerate=30/1,stream-format=byte-stream ! h264parse disable-passthrough=true ! rtph264pay config-interval=1 pt=96 ! udpsink host=127.0.0.1 port=5602 sync=false"
##
## Pipeline for Logitec C920 camera
# ExecStart=/bin/sh -c "gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=4000000 average-bitrate=4000000 iframe-period=1000 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5602"
# ExecStart=/bin/sh -c "gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=4000000 average-bitrate=4000000 iframe-period=1000 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5602 sync=false"
##
## Pipeline for IP Camera