How can I get jpeg data from the output of nvjpegenc plug-in?

Hi,
You can use appsink. Please check the sample in

It is a video decoding pipeline. Please replace it with the pipeline :

filesrc location=video.yuv ! videoparse format=nv12 width=1920 height=1080 framerate=1/1 ! nvvideoconvert ! nvjpegenc ! appsink

And you should get compressed JPEG data in new_buffer().