Streaming to RTMP fails after a while
realies opened this issue · 1 comments
realies commented
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 Streaming video to a local RTMP server fails after a while. Any suggestions?audiotestsrc
being part of the pipeline does not produce the same result.
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...
thaytan commented
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.