<div dir="ltr"><div><div><div><div>Currently we are using the libav API to:<br><br>1) decode a 4K mp4 file<br></div>2) apply GLSL shader<br></div>3) encode to new 4K mp4 file<br><br></div>It works now using AVFrame but the copies to/from GPU is really slow. So how I make the frames stay in GPU memory and get a texture reference to them to apply a GLSL shader?<br><br></div><div>If not possible with ffmpeg, can it be done using nvidia VideoCodecSDK?<br></div><div><br></div>Regards, Morten<br><br></div>