Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for NVENC #4

Closed
zakx opened this issue Mar 12, 2018 · 3 comments
Closed

Support for NVENC #4

zakx opened this issue Mar 12, 2018 · 3 comments

Comments

@zakx
Copy link

zakx commented Mar 12, 2018

Hi,

I've been using Axiom a few times now and I really like it.

Now that I'm encoding larger videos, I'm starting to miss support for hardware encoding (or more specifically, NVENC), see https://trac.ffmpeg.org/wiki/HWAccelIntro#NVENC.

Could you add the option to use h264_cuvid and h264_nvenc?

Thanks!
zakx

@MattMcManis
Copy link
Owner

Sure thing. I'm planning to update the interface and add more options so you can choose profile, pixel format, and filters.

@MattMcManis
Copy link
Owner

MattMcManis commented Apr 6, 2018

@zakx I've upgraded the interface, now there will be more room for additional options. I will plan on adding a hardware encoding toggle under Settings that will enable h264_cuvid and h264_nvenc.

@MattMcManis
Copy link
Owner

MattMcManis commented Apr 7, 2018

@zakx

I added a HW Accel dropdown menu under the Format Tab.
To enable it, select a format like MP4 or MKV, set Video Codec to x264 or x265.

HW Accel

https://github.com/MattMcManis/Axiom/releases

Let me know if it works correctly. I'm not able to test it, I don't have a compiled FFmpeg that supports it.


x264 uses h264_cuvid and h264_nvenc
x265 uses hevc_cuvid and hevc_nvenc

DXVA2
ffmpeg -hwaccel dxva2 -y -i input.mp4 -c:v h264_cuvid -crf 23 output.mp4

CUVID
ffmpeg -y -i input.mp4 -c:v h264_cuvid -crf 23 output.mp4

NVENC
ffmpeg -y -i input.mp4 -c:v h264_nvenc -crf 23 output.mp4

CUVID + NVENC
ffmpeg -hwaccel cuvid -c:v h264_cuvid -y -i input.mp4 -c:v h264_nvenc -crf 23 output.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants