I’m trying to send one frame from camera by network using next script:
To send:
gst-launch-1.0 nvcamerasrc num-buffers=1 ! "video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420" ! nvjpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000 -e
To receive:
gst-launch-1.0 -v udpsrc port=5000 num-buffers=1 ! application/x-rtp,payload=26,encoding-name=JPEG ! rtpjpegdepay ! filesink location=test_jpeg.jpg sync=false async=false -e
but i’m getting empty test_jpeg.jpg. What i’m doing wrong? Verbose on receiver side:
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "application/x-rtp\,\ payload\=\(int\)26\,\ encoding-name\=\(string\)JPEG\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000"
/GstPipeline:pipeline0/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:sink: caps = "application/x-rtp\,\ payload\=\(int\)26\,\ encoding-name\=\(string\)JPEG\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000"
/GstPipeline:pipeline0/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:src: caps = "image/jpeg\,\ framerate\=\(fraction\)0/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080"
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = "image/jpeg\,\ framerate\=\(fraction\)0/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080"