Hi,
Thanks for a great tool which I just stumbled upon.
I was wondering if there are any support in FFASTRANS/ffmpeg for HW accelleration when encoding? I plan on buying a few Nvidia 1070/1080 cards for rendering out large videofiles (various professional formats).
If so, are there any examples of how to use/enable this feature?
Thanks,
Andreas
CUDA HW accelerated encoding?
Re: CUDA HW accelerated encoding?
Hi Andreas, thank you for using FFAStrans and welcome to the forum!
First, FFAStrans is hardware independant and will stay that way for a while.
Second, there are several issues when it comes to using NVIDIA GPU for professional formats. And that is; you simply cannot do it. Most professional formats is in 4:2:2, the NVENC only supports 4:2:0 and 4:4:4. So you cannot create f.ex. "standard" 264 flavours like AVC-Intra and XAVC. You cannot create any MPEG2, DNxHD, ProRes, Cineform or anything like that. Sure, you can allways create high bitrate 264 in 4:4:4 files but they will not be withing the realm of any "Professional" formats. Add to that the limited number of simulatneous encodings on consumer cards like the 1070/1080, you might be able to create maximum two files at the same time. So you see, there are several "professional problems" with the NVENC approach.
BUT, because FFAStans lets you create your own custom ffmpeg encoding profiles you can always experiment with the NVENC encoder yourself
-steinar
First, FFAStrans is hardware independant and will stay that way for a while.
Second, there are several issues when it comes to using NVIDIA GPU for professional formats. And that is; you simply cannot do it. Most professional formats is in 4:2:2, the NVENC only supports 4:2:0 and 4:4:4. So you cannot create f.ex. "standard" 264 flavours like AVC-Intra and XAVC. You cannot create any MPEG2, DNxHD, ProRes, Cineform or anything like that. Sure, you can allways create high bitrate 264 in 4:4:4 files but they will not be withing the realm of any "Professional" formats. Add to that the limited number of simulatneous encodings on consumer cards like the 1070/1080, you might be able to create maximum two files at the same time. So you see, there are several "professional problems" with the NVENC approach.
BUT, because FFAStans lets you create your own custom ffmpeg encoding profiles you can always experiment with the NVENC encoder yourself
-steinar
Re: CUDA HW accelerated encoding?
Hey Steinar, thanks for all your hard work.
Currently there doesn't seem to be any way of placing custom decode options that need to be placed in front of the -i (input field) -hwaccel cuvid for example
Andreas - I just kinda got this working, so here's what i've got:
Create a custom ffmpeg processor
set video codec to: h264_nvec (you should prob note that currently you can only encode to h264 or h265 currently)
Additional options: pretty much whatever additional ffmpeg options you want to use, here's what im doing:
-preset llhq -profile:v high -rc ll_2pass_quality -an -b:v 2.4M -pass 1 -2pass -1
file ext: .mp4
Currently there doesn't seem to be any way of placing custom decode options that need to be placed in front of the -i (input field) -hwaccel cuvid for example
Andreas - I just kinda got this working, so here's what i've got:
Create a custom ffmpeg processor
set video codec to: h264_nvec (you should prob note that currently you can only encode to h264 or h265 currently)
Additional options: pretty much whatever additional ffmpeg options you want to use, here's what im doing:
-preset llhq -profile:v high -rc ll_2pass_quality -an -b:v 2.4M -pass 1 -2pass -1
file ext: .mp4
Re: CUDA HW accelerated encoding?
Hi chuckd, thank you for using FFAStrans and welcome to the forum!
You are right, there is now way to place any custom options before the input. You CAN use the "Command executor"-node and do whatever you want but it's slightly more cumbersome.
-steinar
You are right, there is now way to place any custom options before the input. You CAN use the "Command executor"-node and do whatever you want but it's slightly more cumbersome.
-steinar