I have found the best options for my needs, but need some help to combine them.
I can save video with the following code:
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=300 do-timestamp=true ! image/jpeg,width=1920,height=1080,framerate=30/1 ! queue ! avimux ! filesink location=test.avi
I stream video to rasberry with the following code:
Host (Jetson Nano):
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=YUY2’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), width=640, height=480’ ! tee name=t t. ! omxh264enc ! h264parse ! rtph264pay config-interval=1 ! udpsink host=10.0.0.9 port=5000
Client (Rasberry Pi4):
gst-launch-1.0 udpsrc port=5000 ! ‘application/x-rtp, encoding-name=H264, payload=96’ ! rtph264depay ! h264parse ! avdec_h264 ! xvimagesink
The setup is:
Camera: IMX 322 Sony
Host: Jetson Nano
Client: Rasberry Pi 4
Question: How can I combine these files to get displayed and saved video on Rasberry Pi4 (Client)?
I have done lots of research and tried to use countless “tee” links in different formats, but no one will work. Anyone can help me?