NVENC Guide / Setup

Questions and answers on how to get the most out of FFAStrans
Post Reply
authorleon
Posts: 21
Joined: Fri May 08, 2020 5:18 pm

NVENC Guide / Setup

Post by authorleon » Thu May 21, 2020 4:58 am

Hello all, With the latest release of media encoder which supports NVENC (Hardware) transcoding, the results are quite impressive.

I was just wondering if it is possible to integrate, special commands or whatever is necessary to make use of NVENC Work with ffastrans.

II would love to put together a guide on how to set it up or if it could be a future encoder.

Thank you all very much :geek:

emcodem
Posts: 586
Joined: Wed Sep 19, 2018 8:11 am

Re: NVENC Guide / Setup

Post by emcodem » Thu May 21, 2020 7:30 am

Hey @authorleon

what is "media encoder"?
To be honest, personally i would prefer to work on quicksync support first because not everyone has an nvidia card built in but a lot of users have quicksync onboard with their Core I CPU.

Anyway, the topic was discussed deeply here:
viewtopic.php?f=5&t=1059

The final conclusion is that the ffastrans team has the problem that we mostly work in the production sector where the hardware acceleration does not help, it is for delivery/archiving/live.
I have 2 ffastrans setups running that drive quicksync workflows using a commandline processor which starts ffmpeg but those setups are limited to "always the same source format". I recognized that the nvenc encoder in ffmpeg in difference to other encoders like libx264 is not able to tell ffmpeg to insert automatic filters like colorspace filters, so depending on the source format, the encoder causes different errors about wrong colorspace and such.


Here some example that i use productive in a commandline processor to capture from decklink card (note that i have a custom built ffmpeg.exe for decklink support copied to c:\windows\system32:

Code: Select all

%comspec% /C "ffmpeg.exe -y -f decklink -i "%s_decklink_card%" -c:v h264_qsv -b:v 4M -r 25 -s 1920x1080 -vf "yadif" -preset veryslow -segment_time %s_segment_duration_ch3% -f segment -strftime 1 -t %s_duration_ch3% "%s_directory_ch3%\chunk_%Y-%m-%d_%H-%M-%S.mp4" "
In above command all i needed to do is to force a resolution that the encoder supports plus deinterlace "yadif" because the h264_qsv failed on interlaced sources.
If you start working with this, i recommend to first try to encode your source files of interest using the ffmpeg.exe that comes with ffastrans on commandline BEFORE you start using it in custom ffmpeg or commandline processor.

authorleon
Posts: 21
Joined: Fri May 08, 2020 5:18 pm

Re: NVENC Guide / Setup

Post by authorleon » Thu May 21, 2020 1:20 pm

emcodem wrote:
Thu May 21, 2020 7:30 am
Hey @authorleon

what is "media encoder"?
To be honest, personally i would prefer to work on quicksync support first because not everyone has an nvidia card built in but a lot of users have quicksync onboard with their Core I CPU.

Anyway, the topic was discussed deeply here:
viewtopic.php?f=5&t=1059

The final conclusion is that the ffastrans team has the problem that we mostly work in the production sector where the hardware acceleration does not help, it is for delivery/archiving/live.
I have 2 ffastrans setups running that drive quicksync workflows using a commandline processor which starts ffmpeg but those setups are limited to "always the same source format". I recognized that the nvenc encoder in ffmpeg in difference to other encoders like libx264 is not able to tell ffmpeg to insert automatic filters like colorspace filters, so depending on the source format, the encoder causes different errors about wrong colorspace and such.


Here some example that i use productive in a commandline processor to capture from decklink card (note that i have a custom built ffmpeg.exe for decklink support copied to c:\windows\system32:

Code: Select all

%comspec% /C "ffmpeg.exe -y -f decklink -i "%s_decklink_card%" -c:v h264_qsv -b:v 4M -r 25 -s 1920x1080 -vf "yadif" -preset veryslow -segment_time %s_segment_duration_ch3% -f segment -strftime 1 -t %s_duration_ch3% "%s_directory_ch3%\chunk_%Y-%m-%d_%H-%M-%S.mp4" "
In above command all i needed to do is to force a resolution that the encoder supports plus deinterlace "yadif" because the h264_qsv failed on interlaced sources.
If you start working with this, i recommend to first try to encode your source files of interest using the ffmpeg.exe that comes with ffastrans on commandline BEFORE you start using it in custom ffmpeg or commandline processor.
First of all thank you very much for the response, and a detailed one at that.

I was referring to Adobe media encoder. And I have been testing it out, and a have to admit that the results are quite good, that it processes the videos quite quickly.

I understand that your requirements are far more than mine as I am just exporting out from Adobe Premier into ffastrans To do some inserts and a few little other things.

Thank you for the link as well, I will go through it in detail. I can appreciate that there are those who do not have an Nvidia card, however, there are quite a few people who do have a card.

However just to summarise, it is possible to use NVENC With the current version of ffastrans Building some custom command lines?

Thank you very much!

authorleon
Posts: 21
Joined: Fri May 08, 2020 5:18 pm

Re: NVENC Guide / Setup

Post by authorleon » Thu May 21, 2020 1:24 pm

Hello,

Just to let you know I have been through the thread and it is worth noting that I am not using Intel at all. I am using AMD, 3800. Okay I will give it a go for sure keep you fully updated. Thank you very much.

Post Reply