Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th May 2022, 21:59   #21  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
I agree with the frame dup, drop it, no need to make the video practically VFR for a very tiny gain only, and potentially cause issues with muxers and/or players.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 9th May 2022, 22:57   #22  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Ok, thanks for the info, just hope in the future they fix this preset bug, honestly....
__________________
My github.

Last edited by jpsdr; 14th May 2022 at 11:43.
jpsdr is offline   Reply With Quote
Old 25th May 2022, 18:50   #23  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Seriously........ this is bugland !!!!!!!!!!!!!!!!!

Some parts of the video is totaly screwed up, and i have no idea what setting caused it....

The command line was (tuned animation) :
Code:
@echo off

SET E_SRC=%8%1.avs
SET E_DST=%5%1.hevc
SET E_DOVI=%8%1
SET CHAPTERS=%8%7
SET STAT_FILE=%8%1.stats
SET LOG_FILE_1=%8%1_log_1.txt
SET LOG_FILE_2=%8%1_log_2.txt
SET LOG_FILE_3=%8%1_log_3.txt
SET BITRATE=%2
SET TUNING=%6
SET MCLL=%3
SET MDISPLAY=%4

if %6==film goto :NOTUNE
if %6==none goto :NOTUNE
if %6==aucun goto :NOTUNE

x265_x64 --preset slower --tune %TUNING% --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --qpfile %CHAPTERS% --input %E_SRC% --pass 1 -o NUL 2> %LOG_FILE_1%
x265_x64 --preset slower --tune %TUNING% --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --qpfile %CHAPTERS% --input %E_SRC% --pass 3 -o NUL 2> %LOG_FILE_2%
x265_x64 --preset slower --tune %TUNING% --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --dolby-vision-profile 81 --dolby-vision-rpu %E_DOVI%.bin --qpfile %CHAPTERS% --input %E_SRC% --pass 2 -o %E_DST% 2> %LOG_FILE_3%
goto :FIN

:NOTUNE
x265_x64 --preset slower --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --qpfile %CHAPTERS% --input %E_SRC% --pass 1 -o NUL 2> %LOG_FILE_1%
x265_x64 --preset slower --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --qpfile %CHAPTERS% --input %E_SRC% --pass 3 -o NUL 2> %LOG_FILE_2%
x265_x64 --preset slower --vbv-maxrate 90000 --vbv-bufsize 70000 --bitrate %BITRATE% --stats %STAT_FILE% --level 5.1 --profile main10 --high-tier --level-idc 51 --fades --aq-mode 3 --hevc-aq --weightb --rc-lookahead 48 --rect --amp --b-intra --no-sao --scenecut-aware-qp 3 --analyze-src-pics --opt-ref-list-length-pps --opt-qp-pps --multi-pass-opt-distortion --multi-pass-opt-rps --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --chromaloc 2 -D 10 --max-cll %MCLL% --master-display %MDISPLAY% --hdr10-opt --dolby-vision-profile 81 --dolby-vision-rpu %E_DOVI%.bin --qpfile %CHAPTERS% --input %E_SRC% --pass 2 -o %E_DST% 2> %LOG_FILE_3%

:FIN
EDIT :
Noticed the video is screwed up at a place i put an I frame in the chapter file.
EDIT2 :
Can reproduce with a small 200 frames centered where the issue occurs.
__________________
My github.

Last edited by jpsdr; 25th May 2022 at 20:39.
jpsdr is offline   Reply With Quote
Old 26th May 2022, 16:46   #24  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Fortunately i was able to reproduce with a small video, allowing me to remove options one at a time until i found the guilty.

DO NOT, NEVER USE --multi-pass-opt-rps !!!!!!!!!
It's hell bugged, and it will screw up the result video ! I'm not talking result look bad, i'm talking unplayable blocked pixelised totaly screwed up result stream.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 26th May 2022, 18:08   #25  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 349
Quote:
Originally Posted by jpsdr View Post
Fortunately i was able to reproduce with a small video, allowing me to remove options one at a time until i found the guilty.

DO NOT, NEVER USE --multi-pass-opt-rps !!!!!!!!!
It's hell bugged, and it will screw up the result video ! I'm not talking result look bad, i'm talking unplayable blocked pixelised totaly screwed up result stream.
May I ask why you are also using "--analyze-src-pics" ?
rwill is offline   Reply With Quote
Old 27th May 2022, 12:07   #26  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 326
Quote:
Originally Posted by jpsdr View Post
--aq-mode 3 --hevc-aq
Why would you set both mode 3 and hevc-aq? hevc-aq will disable other aq modes, and is afaik still experimental.
excellentswordfight is offline   Reply With Quote
Old 27th May 2022, 16:38   #27  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
I've spend a lot of time reading the 3.5 doc of x265 and all the options, and activate everything which seems "good" for quality.

To answer the questions :

@rwill
The doc said :
Code:
Enable motion estimation with source frame pixels, in this mode, motion estimation can be computed independently.
From the description, it seems it's a good thing.
From your experience, it's not ?

@excellentswordfight
The doc said :
Code:
Enable adaptive quantization It scales the quantization step size according to the spatial activity of one coding unit relative to frame average spatial activity.
This AQ method utilizes the minimum variance of sub-unit in each coding unit to represent the spatial complexity of the coding unit.
There is nothing saying it's experimental, also nothing saying it disables the others AQ mode (even if i've noticed it later when seeing the log files).
According the description, it also seems a good option to activate.
From your experience, it's not ?
__________________
My github.
jpsdr is offline   Reply With Quote
Old 27th May 2022, 20:02   #28  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 349
Quote:
Originally Posted by jpsdr View Post
@rwill
The doc said :
Code:
Enable motion estimation with source frame pixels, in this mode, motion estimation can be computed independently.
From the description, it seems it's a good thing.
From your experience, it's not ?
Well I have no experience with that but in theory its better to use the reconstructed pixels because these are actually available on the decoder side and are the only thing a prediction can be formed from. I don't think doing ME on source pixels as reference is any good because inter prediction is formed from a reference picture anyway ..
rwill is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.