I am using the following command to capture multiple frames:

gst-launch-1.0 tcpclientsrc host= port=5000 num-buffers=100000000  ! gdpdepay ! jpegparse ! jpegdec ! multifilesink location="frame%05d.jpg"

I would like to capture a single frame and for the gstreamer to close gracefully afterwards.

any suggestions?

1 Answer 1


After a lot of research we have got to the following solution:

gst-launch-1.0 tcpclientsrc host= port=5000 num-buffers=100000 ! gdpdepay ! jpegparse ! jpegdec ! videoconvert ! pngenc snapshot=true ! filesink location=a.png

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.