Hendrik Langer 4 years ago
parent
commit
bcc3a88501
  1. 6
      raspberry/roberto/camera/camera_gstreamer_webrtc.py
  2. 4
      raspberry/roberto/views/frontend/templates/index.html

6
raspberry/roberto/camera/camera_gstreamer_webrtc.py

@ -89,7 +89,7 @@ PIPELINE_DESC = '''
''' '''
PIPELINE_DESC_RASPBERRY = ''' PIPELINE_DESC_RASPBERRY = '''
rpicamsrc bitrate=1000000 keyframe-interval=25 rotation=180 exposure-mode=sports annotation-mode=12 annotation-text-size=10 preview=false name=rpicamsrc ! video/x-h264,profile=constrained-baseline,width=1280,height=720,framerate=49/1,level=3.0 ! queue max-size-time=100000000 ! h264parse ! rpicamsrc bitrate=4000000 keyframe-interval=16 rotation=180 exposure-mode=sports annotation-mode=12 annotation-text-size=10 preview=false name=rpicamsrc ! video/x-h264,profile=constrained-baseline,width=1280,height=720,framerate=49/1,level=3.0 ! queue max-size-time=100000000 ! h264parse !
rtph264pay config-interval=-1 name=payloader ! rtph264pay config-interval=-1 name=payloader !
application/x-rtp,media=video,encoding-name=H264,payload=96 ! tee name=video-tee ! application/x-rtp,media=video,encoding-name=H264,payload=96 ! tee name=video-tee !
queue ! fakesink sync=true queue ! fakesink sync=true
@ -205,8 +205,8 @@ class WebRTCCamera(Thread):
webrtcbin.set_property("bundle-policy", "max-bundle") webrtcbin.set_property("bundle-policy", "max-bundle")
#webrtcbin.set_property("latency", 40) #webrtcbin.set_property("latency", 40)
#rtpbin = webrtcbin.get_by_name('rtpbin') rtpbin = webrtcbin.get_by_name('rtpbin')
#rtpbin.set_property("latency", 40) rtpbin.set_property("latency", 40)
audio_queue = peer_bin.get_by_name("audio-queue") audio_queue = peer_bin.get_by_name("audio-queue")
audio_sink_pad = Gst.GhostPad.new("audio_sink", audio_queue.get_static_pad("sink")) audio_sink_pad = Gst.GhostPad.new("audio_sink", audio_queue.get_static_pad("sink"))

4
raspberry/roberto/views/frontend/templates/index.html

@ -21,7 +21,7 @@
} }
#controls_l { #controls_l {
position: absolute; position: absolute;
bottom: 40px; bottom: 75px;
left: 0; left: 0;
width: 40%; width: 40%;
height: 33%; height: 33%;
@ -29,7 +29,7 @@
} }
#controls_r { #controls_r {
position: absolute; position: absolute;
bottom: 40px; bottom: 75px;
right: 0; right: 0;
width: 40%; width: 40%;
height: 33%; height: 33%;

Loading…
Cancel
Save