What Is The Best X.265 Settings To Get Maximum Quality Out Of SD Content?

DONAMAN:_male:Posted at 2019-05-22 07:53:19(287Wks ago) Report Permalink URL 
Reppoints: 0
Posts: 9
Uploads: 14

This is question I have been trying to answer myself for a very long time; searched forums and everywhere of relevance but to no avail. No one seems to have a clear cut answer. Many suggest a CRF of 18- 20 and slow preset along with disabling SAO and Strong intra smoothing via the string - no-sao:no-strong -intra-smoothing in hand brake or its derivative VIDCODER which I use mostly is a good setting. However, no matter what I try (including enabling grain in the tune) the result always seems to be a inferior to the source. I am now contemplating  using VP9 for encoding SD content or Even the new AV1 encoder (which is painfully slow to be of any use) . Can anyone advice me on this issue of how to " OPTIMISE HEVC FOR SD ENCODING" I am not a novice with encoding but with HEVC it seems to be a losing battle when it comes to SD content. Help required here !

 
Post liked by - miok:_super_admin:
Barishnikov:_trusted_user::_male::_junkie:Posted at 2019-08-15 09:30:30(275Wks ago) Report Permalink URL 
Reppoints: 80
Posts: 90
Uploads: 435

I simply stopped doing HEVC encodes of SD material...:|;)

 
Post liked by - Deep61:_moderator:, Ange1:_moderator::_female:, ROBBREDD:_moderator::_male::_sitelover::_junkie::_sun:, miok:_super_admin:, RedBaron58:_vip::_trusted_uploader::_sitefriend::_male::_sitelover:, Ksenia:_admin::_female::_junkie:
battlestar:_trusted_uploader::_sitefriend::_male::_sitelover::_junkie:Posted at 2019-08-16 01:34:35(274Wks ago) Report Permalink URL 
Reppoints: 852
Posts: 1705
Uploads: 6812

Barishnikov wrote:

I simply stopped doing HEVC encodes of SD material...:|;)
Ditto.

720p is the lowest I would bother with for HEVC.

 
Post liked by - Ange1:_moderator::_female:, ROBBREDD:_moderator::_male::_sitelover::_junkie::_sun:, iAmNot1337:_blocked:, Barishnikov:_trusted_user::_male::_junkie:, miok:_super_admin:
iAmNot1337:_blocked:Posted at 2021-08-11 13:39:46(171Wks ago) Report Permalink URL 
Reppoints: 6
Posts: 28
Uploads: 0

battlestar wrote:

Barishnikov wrote:

I simply stopped doing HEVC encodes of SD material...:|;)
Ditto.

720p is the lowest I would bother with for HEVC.
Lowest i go with HVEC is 1080p but on a rare occasion, i'll do 720p.

 
Post liked by - Ksenia:_admin::_female::_junkie:, Ange1:_moderator::_female:, ROBBREDD:_moderator::_male::_sitelover::_junkie::_sun:
MadMax0508Posted at 2021-11-01 08:44:10(159Wks ago) Report Permalink URL 
Reppoints: 6
Posts: 4
Uploads: 23

To get maximum quality out of SD content you must use this  :-

Set Colorspace = bt470bg; Colorprim = bt470bg; Colortransfer gamma28; Colorrange tv, this will give you BT.601 PAL output.
or  Colorspace = smpte170m; Colorprim = smpte170m; Colortransfer smpte170m; Colorrange tv, this will give you BT.601 NTSC output.

Since PAL is superior to NTSC you must use PAL . Your ideal FFMPEG command for SD content will be as follows:-

Quote:

ffmpeg -loglevel verbose -threads 8 -hwaccel cuda -init_hw_device cuda -c:v h264_cuvid -i "input.mkv" -map 0:? -c:v libx265  -crf 19 -x265-params "keyint=240:min-keyint=60:bframes=2:b_adapt=2:b-pyramid=1ref=5:aq-mode=3:limit-sao=1:deblock=-1,-1:psy-rdoq=1:psy-rd=1:qcomp=0.6:rc_lookahead=60:colorprim=bt470bg:aq-strength=0.8:aq-motion=1:spatial-aq=1:hevc-aq=1" -colorspace bt470bg -color_trc gamma28 -color_range tv -profile:v main10 -level:v 4 -pix_fmt yuv420p10le -f matroska -c:a:0 libfdk_aac -profile:a aac_he -afterburner 1 -cutoff 18000 -signaling explicit_sbr -q:a 0 -vbr:a 5 -c:s copy -b_ref_mode middle -max_muxing_queue_size 1024 -vsync 0 -async 0 "output.mkv"


Last edited by MadMax0508 on 2022-05-04 15:12:40


 
Post liked by - Ange1:_moderator::_female:
RAV1NE:_trusted_uploader::_male::_turtle:Posted at 2022-02-13 13:27:23(144Wks ago) Report Permalink URL 
Reppoints: 31
Posts: 6
Uploads: 283

Quote:

To get maximum quality out of SD content you must use this  :-

Set Colorspace = bt470bg; Colorprim = bt470bg; Colortransfer gamma28; Colorrange tv, this will give you BT.601 PAL output.
or  Colorspace = smpte170m; Colorprim = smpte170m; Colortransfer smpte170m; Colorrange tv, this will give you BT.601 NTSC output.

Since PAL is superior to NTSC you must use PAL . Your ideal FFMPEG command for SD content will be as follows:-

   Quote:
   ffmpeg -loglevel verbose -threads 8 -hwaccel cuda -init_hw_device cuda -c:v h264_cuvid -i "input.mkv" -map 0:? -c:v libx265  -crf 19 -x265-params "keyint=240:min-keyint=60:bframes=2:b_adapt=2:b-pyramid=1ref=5:aq-mode=3:limit-sao:deblock=-1,-1:psy-rdoq=1:psy-rd=1:qcomp=0.6:rc_lookahead=60:colorprim=bt470bg:aq-strength=0.8:aq-motion=1:spatial-aq=1:hevc-aq" -colorspace bt470bg -color_trc gamma28 -color_range tv -profile:v main10 -level:v 4 -pix_fmt yuv420p10le -f matroska -c:a:0 libfdk_aac -profile:a aac_he -afterburner 1 -cutoff 18000 -signaling explicit_sbr -q:a 20 -vbr:a 5 -c:s copy -b_ref_mode middle -max_muxing_queue_size 1024 -vsync 0 -async 0 "output.mkv"
Bold of you to assume they have an ffmpeg binary with libfdk_aac compiled.

 
Post liked by - Ange1:_moderator::_female:, MadWatchdog:_moderator:
battlestar:_trusted_uploader::_sitefriend::_male::_sitelover::_junkie:Posted at 2022-02-13 14:49:46(144Wks ago) Report Permalink URL 
Reppoints: 852
Posts: 1705
Uploads: 6812

RAV1NE wrote:

Bold of you to assume they have an ffmpeg binary with libfdk_aac compiled.
If they dont have it, then they could always recompile with it included - or just use something else instead. :_:)

.

Last edited by battlestar on 2022-02-13 14:50:28


 
Post liked by - zuluDROOG:_trusted_user::_male::_sitelover::_junkie::_kitty::_sun:, Ange1:_moderator::_female:, MadMax0508, ROBBREDD:_moderator::_male::_sitelover::_junkie::_sun:, Thomaskhan:_trusted_uploader::_sitefriend::_sitelover::_junkie::_kitty::_sun::_turtle:
MadMax0508Posted at 2022-02-27 13:33:32(142Wks ago) Report Permalink URL 
Reppoints: 6
Posts: 4
Uploads: 23

RAV1NE wrote:

Quote:

To get maximum quality out of SD content you must use this  :-

Set Colorspace = bt470bg; Colorprim = bt470bg; Colortransfer gamma28; Colorrange tv, this will give you BT.601 PAL output.
or  Colorspace = smpte170m; Colorprim = smpte170m; Colortransfer smpte170m; Colorrange tv, this will give you BT.601 NTSC output.

Since PAL is superior to NTSC you must use PAL . Your ideal FFMPEG command for SD content will be as follows:-

   Quote:
   ffmpeg -loglevel verbose -threads 8 -hwaccel cuda -init_hw_device cuda -c:v h264_cuvid -i "input.mkv" -map 0:? -c:v libx265  -crf 19 -x265-params "keyint=240:min-keyint=60:bframes=2:b_adapt=2:b-pyramid=1ref=5:aq-mode=3:limit-sao:deblock=-1,-1:psy-rdoq=1:psy-rd=1:qcomp=0.6:rc_lookahead=60:colorprim=bt470bg:aq-strength=0.8:aq-motion=1:spatial-aq=1:hevc-aq" -colorspace bt470bg -color_trc gamma28 -color_range tv -profile:v main10 -level:v 4 -pix_fmt yuv420p10le -f matroska -c:a:0 libfdk_aac -profile:a aac_he -afterburner 1 -cutoff 18000 -signaling explicit_sbr -q:a 20 -vbr:a 5 -c:s copy -b_ref_mode middle -max_muxing_queue_size 1024 -vsync 0 -async 0 "output.mkv"
Bold of you to assume they have an ffmpeg binary with libfdk_aac compiled.
Just use replace libfdk_aac with aac and just omit -profile:a aac_he -afterburner 1 -cutoff 18000 -signaling explicit_sbr -q:a 20 -vbr:a 5 from the code.

 
Post liked by - zuluDROOG:_trusted_user::_male::_sitelover::_junkie::_kitty::_sun:, Ange1:_moderator::_female:, ROBBREDD:_moderator::_male::_sitelover::_junkie::_sun: