From ca86a0eca49e3b532a5ea8b0de4d87875cb197cb Mon Sep 17 00:00:00 2001 From: Alex Garnett Date: Sun, 22 Nov 2020 10:50:43 -0800 Subject: [PATCH] fix hevc profile in separate example --- index.html | 3 ++- recipes.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a093b2f..f6800d5 100644 --- a/index.html +++ b/index.html @@ -357,10 +357,11 @@
output_file
path, name and extension of the output file

In order to encode to HEVC instead, and optionally transcode the audio, you can try changing the command like this:

-

ffmpeg -i input_file -c:v hevc_nvenc -preset llhq -rc:v vbr_hq -cq:v 19 -b:v 5000k -maxrate:v 8000k -profile:v high -c:a aac output_file

+

ffmpeg -i input_file -c:v hevc_nvenc -preset llhq -rc:v vbr_hq -cq:v 19 -b:v 5000k -maxrate:v 8000k -profile:v main10 -c:a aac output_file

-c:v hevc_nvenc
encodes to HEVC (also called H.265), a more efficient codec supported on GPUs from approximately 2015 and newer.
-b:v 5000k -maxrate:v 8000k
specifies a slightly lower bitrate than when using h264, per HEVC's greater efficiency.
+
-profile:v main10
declares the "main10" profile for working with HEVC; one of the primary advantages of this codec is better support for 10-bit video, enabling consumer HDR.
-c:a aac
reencodes the audio to AAC with default parameters, a very common and widely supported format for access copies.

Much of the information in this entry was taken from this superuser.com post provided by an Nvidia developer, one of the best sources of information on the ffmpeg Nvidia encoders.

diff --git a/recipes.txt b/recipes.txt index 1f15c78..be48802 100644 --- a/recipes.txt +++ b/recipes.txt @@ -19,7 +19,7 @@ ffmpeg -i input_file -c:v libx265 -pix_fmt yuv420p -c:a copy output_file # Transcode to H.264 using the GPU ffmpeg -i input_file -c:v h264_nvenc -preset llhq -rc:v vbr_hq -cq:v 19 -b:v 8000k -maxrate:v 12000k -profile:v high -c:a copy output_file # Transcode to H.265 using the GPU -ffmpeg -i input_file -c:v hevc_nvenc -preset llhq -rc:v vbr_hq -cq:v 19 -b:v 5000k -maxrate:v 8000k -profile:v high -c:a copy output_file +ffmpeg -i input_file -c:v hevc_nvenc -preset llhq -rc:v vbr_hq -cq:v 19 -b:v 5000k -maxrate:v 8000k -profile:v main10 -c:a copy output_file # Transcode to an Ogg Theora ffmpeg -i input_file -acodec libvorbis -b:v 690k output_file # Convert WAV to MP3