recognize icon indicating copy to clipboard operation
recognize copied to clipboard

Would it be possible to enable nvenc in ffmpeg when classifying videos?

Open relink2013 opened this issue 2 years ago • 3 comments

Describe the feature you'd like to request

When classifying videos Recognize pegs all CPU cores to 100% with an ffmpeg process. I assume this is for the video tagging. If its possible to add the option to enable nvenc for the ffmpeg process it would help tremendously.

Describe the solution you'd like

Ultimately it would be great to see recognize ship with the nvenc enabled build of ffmpeg.

But for starters I'd be thrilled to just have a config.php setting I can add/change to enable nvenc, and point recognize to my static build I already have with nvenc enabled.

Describe alternatives you've considered

None so far, I only just realized this about five minutes ago.

relink2013 avatar Jan 27 '23 02:01 relink2013

Recognize pegs all CPU cores to 100% with an ffmpeg process

I'll try to see if I can make the ffmpeg process respect the cores limit set in the settings.

I'm not sure if nvenc would solve this issue. Possibly we'd need nvdec , but that only supports limited file types.

marcelklehr avatar Feb 02 '23 14:02 marcelklehr

Ah, that would make sense that you only really need to decode the video. But nvdec appears to support all the major file types.

Maybe just make it optional?

relink2013 avatar Feb 04 '23 00:02 relink2013

We could add an option in the admin settings to add additional command line arguments to ffmpeg

marcelklehr avatar Jun 05 '23 10:06 marcelklehr