Skip to content

How to configure rpicamera to runOnDemand? #3562

Closed Answered by aler9
suomi35 asked this question in Questions
Discussion options

You must be logged in to vote

the second runOnDemand must be runOnDemandRestart:

paths:
  cam:
    source: rpiCamera
    sourceOnDemand: true

  cam_with_audio:
    runOnDemand: >
      gst-launch-1.0
      rtspclientsink name=s location=rtsp://localhost:$RTSP_PORT/cam_with_audio
      rtspsrc location=rtsp://127.0.0.1:$RTSP_PORT/cam latency=0 ! rtph264depay ! s.
      alsasrc device=hw:0 ! opusenc bitrate=16000 ! s.
    runOnDemandRestart: yes

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@zinahe
Comment options

@aler9
Comment options

Comment options

You must be logged in to vote
5 replies
@suomi35
Comment options

@aler9
Comment options

@suomi35
Comment options

@aler9
Comment options

Answer selected by suomi35
@suomi35
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants