Ask Your Question
0

JPEG encode with Gstreamer in memory

asked 2019-01-25 01:57:13 -0600

Pashek gravatar image

Hi. I want to encode\decode jpeg in memory using one of the gstreamer plugins, i.e. use smth like "appsrc ! jpegenc ! appsink" configuration. Is it possible with VideoCapture, VideoWriter? Thanks.

edit retag flag offensive close merge delete

Comments

Why not use imencode? VideoCapture and VideoWriter do not support this configuration, you should use GStreamer directly.

mshabunin gravatar imagemshabunin ( 2019-01-25 04:57:51 -0600 )edit

I don't use imencode bcz I want to use NVIDIA Tegra hardware-accelerated JPEG encoding module nvjpegenc.

Pashek gravatar imagePashek ( 2019-01-25 06:45:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-03-11 06:56:59 -0600

Yuval gravatar image

This works like a charm:

"appsrc name=appsrc blocksize=921600 ! video/x-raw,format=RGB,width=640,height=480,framerate=1/1 ! jpegenc ! appsink name=appsink"

When changing jpegenc to nvjpegenc (Jetson AGX Xavier), there's something wrong with the buffering.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-01-25 01:57:13 -0600

Seen: 1,144 times

Last updated: Jan 25 '19