How to make the gstreamer process end only when the conversion is finished?

I have the following gstreamer pipeline:

gst-launch-1.0 filesrc location=input.mkv ! matroskademux ! v4l2jpegdec ! v4l2h264enc extra-controls='controls, h264_profile=4, video_bitrate=2500000' ! 'video/x-h264, profile=high, level=(string)4' ! h264parse ! matroskamux ! filesink location=output.mkv

which I use to encode a video from the command line, but I can’t make it end the process when the conversion ends, but until I give it ctrl+c, but I want to know if the process ends once the conversion is finished conversion.

If you let me know something about it, it would be of great help, thanks in advance.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.