gst-rpicamsrc icon indicating copy to clipboard operation
gst-rpicamsrc copied to clipboard

Streaming to RTMP fails after a while

Open realies opened this issue 6 years ago • 1 comments

~~Attempting to mux the rpicamsrc video with audio and send over to a local RTMP server, although whenever audio is involved in the pipeline, it dies shortly after started (2-5m). Doing so without audiotestsrc being part of the pipeline does not produce the same result.~~ Streaming video to a local RTMP server fails after a while. Any suggestions?

gst-launch-1.0 -e -vvvv \
rpicamsrc preview=true ! \
video/x-h264,width=1920,height=1080,framerate=30/1,profile=high ! \
h264parse ! \
flvmux name=muxer streamable=true ! \
queue ! \
rtmpsink location='rtmp://127.0.0.1/live/pi live=1'

...

ERROR: from element /GstPipeline:pipeline0/GstRpiCamSrc:rpicamsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3064): gst_base_src_loop (): /GstPipeline:pipeline0/GstRpiCamSrc:rpicamsrc0:
streaming stopped, reason error (-5)
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...

realies avatar Jul 11 '18 16:07 realies

If you send to fakesink instead of rtmpsink, does it work forever? If you increase the size of the queue, does it work?

The default bitrate is 1.7MBit/s, which can be too high to sustain for some networks - you can try reducing that bitrate.

thaytan avatar Jul 16 '18 06:07 thaytan