The video format of the USB camera on my jetson nano development board is YUY2. I need to encode the video stream into H.264 and transfer it to another computer (via host and port). Then decode the video stream and save the video. I probably know how to encode Transmission, but I do n’t know how to decode it correctly. As a result, I do n’t know if the transmitted video stream is normal. Can anyone help me solve this problem?
The instructions on the jetson nano development board are probably as follows (I don’t know if it is wrong, you can tell me the instruction you think is correct):
gst-launch-1.0 -v v4l2src device = / dev / video0! 'video / x-raw, format = (string) YUY2, width = (int) 640, height = (int) 480, framerate = (fraction) 30 / 1 '! Videoflip method = upper-right-diagonal! Videoconvert! X264enc bitrate = 2000 byte-stream = false key-int-max = 60 bframes = 0 aud = true tune = zerolatency! H264parse! Rtph264pay config-interval = 1! Udpsink host = 127.0.0.1 port = 5000 sync = false async = false
What instructions should be input on the receiving computer to decode the video stream and display or save it?