gstreamer imx8mm rtsp server and client save to file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gstreamer imx8mm rtsp server and client save to file

1,420 Views
sofia_0571
Contributor II

Dear nxp,

 I have board imx8m mini processor.use it as rtsp server as follow cmd(could view by VLC):

gst-variable-rtsp-server -p 9001 -u "( v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, format=YUY2, width=1280,height=720, framerate=30/1 ! vpuenc_h264 ! rtph264pay name=pay0 pt=96 )"

client site save the incoming RTSP streaming videos and saved as the h264 file:

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.6:9001/stream ! rtph264depay ! video/x-h264, stream-format=byte-stream ! filesink location=test.h264

but test.h264 cannot be opened by VLC.have no sps、pps...how to modify the gstreamer command.

Regards

 

0 Kudos
Reply
1 Reply

1,386 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport
 
I hope you are doing well
 
Please find the information related to the command in the below documents.
 
Section. 10.1.4. Video RTSP Streaming from the i.MX 8 GStreamer User Guide
Section 7.3.12 Real Time Streaming Protocol (RTSP) playback from the i.MX Linux® User's Guide
 
For more information regarding the same, kindly look at the below threads:
0 Kudos
Reply