Recording and displaying stream at the same time

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Recording and displaying stream at the same time

Martin Appo
Hello!

Gstreamer version: 1.16.1
OS: debian 11

My target is to stream and record video at the same time. Initially I had more complex pipeline containing compositor on one branch and different custom filters. The simplified version of my constructed pipeline is as follows:

gst-launch-1.0 videotestsrc ! "video/x-raw,width=500,height=300,framerate=50/1"  !  tee name=t \
 t. ! queue !  x264enc ! splitmuxsink name=mux_sink  max-files=10000 next-file=5 max-size-time=600000000 location=video%02d.mp4 \
 t. ! queue !  "video/x-raw,width=500,height=300,framerate=50/1"  !  glimagesink

How this pipeline acts on my system is that it goes from NULL state to READY state and hangs there. The displayed video is also stationary and no video file is saved.
I'm also attaching svg file generated from the dot dump.

I have already tried both branches separately without tee element - both working.

Thanks in advance!

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

null_ready.svg (106K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Recording and displaying stream at the same time

Ilya Aleshkov
Hi Martin,

Please try this:
x264enc tune=zerolatency

Thanks,
Ilya


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Recording and displaying stream at the same time

Martin Appo
Hi,

yes, that helped! I also asked the same question in stackoverflow and got an explanation also: https://stackoverflow.com/questions/59016854/gstreamer-display-and-record-video-using-tee-element-hangs

Thanks,
Martin

On Mon, Nov 25, 2019 at 6:22 PM Ilya Aleshkov <[hidden email]> wrote:
Hi Martin,

Please try this:
x264enc tune=zerolatency

Thanks,
Ilya

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel