cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
376 Views
Registered: ‎07-09-2020

ZCU106 video output to monitor and save to filesystem at the same time

Jump to solution

Hi all,

I want to receive video from udp stream via vlc player. I found pipeline related to this request. It works fine.

gst-launch-1.0 udpsrc port=1234 ! tsdemux name=tsdemux ! h264parse ! omxh264dec ! queue max-size-bytes=0 ! kmssink bus-id=fd4a0000.zynqmp-display fullscreen-overlay=1

And I want to save video to filesystem from udp stream. I found pipeline related to this request too. It works fine too.

gst-launch-1.0 udpsrc port=1234 buffer-size=90000000 ! filesink location=output.mp4

My goal is to do requests above simultaneously. I mean, I want to save my streaming video to filesystem while mirroring to monitor at the same time.

How can I do that?

Can you help me?

 

Additionally, how can I improve my pipelines in terms of performance? Any advices?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
317 Views
Registered: ‎04-16-2019

Hello @hakann ,

You should look into adding the 'tee' function for your video pipeline to combine the two commands. 

View solution in original post

4 Replies
Highlighted
Adventurer
Adventurer
318 Views
Registered: ‎04-16-2019

Hello @hakann ,

You should look into adding the 'tee' function for your video pipeline to combine the two commands. 

View solution in original post

Highlighted
Adventurer
Adventurer
305 Views
Registered: ‎05-08-2018

Thats what I was thinking too. I use it in scripts to write the output of something to the console and in a file at the sametime. Now, to make it work in this context im not sure :S

Highlighted
Adventurer
Adventurer
287 Views
Registered: ‎04-16-2019

@simon.beaudoin 

gst-launch-1.0 udpsrc port=1234 buffer-size=90000000 ! tee name=t t. ! queue !gst-launch-1.0 udpsrc port=1234 ! tsdemux name=tsdemux ! h264parse ! omxh264dec ! queue max-size-bytes=0 ! kmssink bus-id=fd4a0000.zynqmp-display fullscreen-overlay=1 t. ! queue ! filesink location=output.mp4

Highlighted
Visitor
Visitor
225 Views
Registered: ‎07-09-2020

By the way, we can be done by mirroring from HDMI TX output like this : gst-launch-1.0 udpsrc port=1234 ! tsdemux name=tsdemux ! h264parse ! tee name=t ! queue ! omxh264dec ! queue max-size-bytes=0 ! kmssink bus-id=a0070000.v_mix fullscreen-overlay=1 t. ! queue ! filesink location=out.mp4

 

Thanks a lot for your answers.

0 Kudos