Browse Source

raspberry pipeline

main
Hendrik Langer 4 years ago
parent
commit
f1a67c49d8
  1. 4
      README.md
  2. 1
      raspberry/requirements.py
  3. 5
      raspberry/roberto/camera/camera_gstreamer_webrtc.py

4
README.md

@ -41,6 +41,7 @@ Receiver: gst-launch-1.0 -v udpsrc port=5000 ! gdpdepay ! rtph264depay ! avdec_h
## debugging ## debugging
export GST_DEBUG=*webrtc*:7 export GST_DEBUG=*webrtc*:7
export G_MESSAGES_DEBUG=all
## documentation ## documentation
@ -55,6 +56,9 @@ https://gitlab.freedesktop.org/gstreamer/gst-examples/-/tree/master/webrtc/sendr
https://github.com/thaytan/gst-rpicamsrc/blob/master/examples/webrtc-unidirectional-h264.c https://github.com/thaytan/gst-rpicamsrc/blob/master/examples/webrtc-unidirectional-h264.c
https://github.com/centricular/gstwebrtc-demos/blob/master/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c
https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/webrtc/multiparty-sendrecv/gst-rust/src/main.rs
## nginx.conf ## nginx.conf
``` ```

1
raspberry/requirements.py

@ -12,3 +12,4 @@ python3-eventlet
gir1.2-gst-plugins-bad-1.0 gir1.2-gst-plugins-bad-1.0
python3-gst-1.0 python3-gst-1.0
gstreamer1.0-nice

5
raspberry/roberto/camera/camera_gstreamer_webrtc.py

@ -59,8 +59,9 @@ webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.googl
if platform == 'raspberry': if platform == 'raspberry':
PIPELINE_DESC = ''' PIPELINE_DESC = '''
webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302 webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302
v4l2src device=/dev/video0 ! videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay ! rpicamsrc bitrate=600000 annotation-mode=12 preview=false ! video/x-h264,profile=constrained-baseline,width=640,height=360,level=3.0 ! queue max-size-time=100000000 ! h264parse !
queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97 ! sendrecv. rtph264pay config-interval=-1 name=payloader !
application/x-rtp,media=video,encoding-name=H264,payload=96 ! sendrecv.
audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay ! audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !
queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv. queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv.
''' '''

Loading…
Cancel
Save