Raspberry Pi: Timestamped Live-Stream

Matthew Waters ystreet00 at gmail.com
Fri May 18 07:57:24 UTC 2018


qtmux and your video sink probably don't agree on a common video
format.  There are also a couple of other problems in your pipeline.

1. add a queue after each branch of the tee.
2. add a videoconvert after each branch of the tee as well so that you
can get something displayed and muxed.
3. you probably want to encode your file before muxing it into qtmux
with e.g. x264enc. You may need larger queue's to account for the large
encoding delay by default or use x264enc tune=zerolatency for a minimal
latency.
4. gst-launch-1.0 has the -v option which will display the caps chosen
by various pads on elements (among other things).  If you need
information about the actual negotiation, then GStreamer debug logs are
your friend.
5. Also, gdp in rtp is probably not going to work very well at all.  You
can forgo the gdp encapsulation.

Cheers
-Matt

On 18/05/18 12:29, waymond91 wrote:
> Ok! I am very close! Sorry if I am spamming the thread!
>
> So I can save the file with the timeoverlay like this:
>
> gst-launch-1.0 -e udpsrc port=5000 \
>    ! gdpdepay \
>    ! rtph264depay \
>    ! queue ! avdec_h264 ! videoconvert ! timeoverlay ! qtmux ! filesink
> location=tee.mp4 \
>
> And I can I display the livestream like this:
>
> gst-launch-1.0 -e udpsrc port=5000 \
>    ! gdpdepay \
>    ! rtph264depay \
>    ! queue ! avdec_h264 ! videoconvert ! timeoverlay ! autovideosink
> sync=false \
>
> BUT, when I try to do both at the same time:
>
> gst-launch-1.0 -e udpsrc port=5000 \
>    ! gdpdepay \
>    ! rtph264depay \
>    ! queue ! avdec_h264 ! videoconvert ! timeoverlay \
>    ! tee name=t \
>    t. ! autovideosink sync=false \
>    t. ! qtmux ! filesink location=tee.mp4 \
>
> I get the following error:
> WARNING: erroneous pipeline: could not link t to qtmux0
>
> Randomly, I tried adding a queue between the tee and qtmux. This doesn't
> throw errors, but crashes after running for a couple milliseconds. The first
> frame is displayed and no data is saved. I don't know why this would or
> would not work, but I've included the error message to be thorough.
>
> ERROR: from element
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
> Output window was closed
> Additional debug info:
> xvimagesink.c(555): gst_xv_image_sink_handle_xevents ():
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
> An error happened while waiting for EOS
> Execution ended after 0:00:41.633882529
>
> Any ideas gang? Thanks in advance!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180518/b2a0de5a/attachment.sig>


More information about the gstreamer-devel mailing list