Kamerabild weiter verbessert

This commit is contained in:
Florian Schlegel 2020-08-10 21:39:01 +02:00
parent 7810d4796c
commit 8180fb5374
1 changed files with 11 additions and 2 deletions

View File

@ -43,8 +43,17 @@ reboot && exit
Videostream bereitstellen
-------------------------
gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf uvch264src device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-raw,framerate=30/1,profile=high ! videoscale ! video/x-raw,width=1920,height=1080 ! videoconvert ! x264enc tune=zerolatency bitrate=5000 speed-preset=superfast key-int-max=15 ! rtph264pay ! rtpulpfecenc percentage=50 percentage-important=75 ! rtprtxqueue max-size-packets=1000 ! b.send_rtp_sink_0 b.send_rtp_src_0 ! udpsink host=terminal1 port=5001 udpsrc address=:: port=5001 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host=terminal1 port=5002 sync=false async=false
v4l2-ctl -d /dev/video0 --set-ctrl=power_line_frequency=1 --set-ctrl=backlight_compensation=1 --stream-lossless --set-fmt-video=width=1920,height=1080,pixelformat=YUYV
gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf uvch264src device=/dev/video0 name=src auto-start=true \
src.vidsrc ! video/x-raw,framerate=30/1,profile=high ! videoscale ! video/x-raw,width=1920,height=1080 ! videoconvert ! x264enc tune=zerolatency bitrate=5000 speed-preset=superfast key-int-max=15 ! rtph264pay ! rtpulpfecenc percentage=50 percentage-important=75 ! rtprtxqueue max-size-packets=1000 ! b.send_rtp_sink_0 \
b.send_rtp_src_0 ! udpsink host=terminal1 port=5001 \
udpsrc address=:: port=5001 ! b.recv_rtcp_sink_0 \
b.send_rtcp_src_0 ! udpsink host=terminal1 port=5002 sync=false async=false
Videostream empfangen
---------------------
gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf do-retransmission=true udpsrc address=:: port=5001 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! b.recv_rtp_sink_0 b. ! rtpulpfecdec ! rtph264depay ! decodebin ! videoconvert ! fbdevsink device=/dev/fb0 udpsrc address=:: port=5002 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host=cam1 port=5001 sync=false async=false
gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf do-retransmission=true \
udpsrc address=:: port=5001 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! b.recv_rtp_sink_0 b. ! rtpulpfecdec ! rtph264depay ! decodebin ! videoconvert ! fbdevsink device=/dev/fb0 \
udpsrc address=:: port=5002 ! b.recv_rtcp_sink_0 \
b.send_rtcp_src_0 ! udpsink host=cam1 port=5001 sync=false async=false