1

Topic: Can't select "analysis refinement" or "QP refinement" with "save RPS"

As the title says, in x265, I cannot select "Analysis refinement" or "QP refinement", if "save RPS" is selected. I don't know if it's intentional, but it seems to me that all three should be selectable at the same time. I'm using version 2017.03.26.1.

2

Re: Can't select "analysis refinement" or "QP refinement" with "save RPS"

I don't know if it's intentional,

it is

but it seems to me that all three should be selectable at the same time.

What makes you think that?

From what I know:

  • analysis refinement (--multi-pass-opt-analysis) requires 2pass encoding and cu-tree to be disable

  • qp refinement (--multi-pass-opt-distortion) requires 2pass encoding and cu-tree to be disable

  • save RPS (--multi-pass-opt-rps) requires 2pass encoding and both analysis&qt refinement to be disabled

but let's check. smile
Taking a simple call like:

ffmpeg -y -loglevel fatal -threads 8 -i "F:\TestClips&Co\Test-AC3-5.1.avi" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f yuv4mpegpipe - | x265 --input - --y4m --pass 2 --bitrate 128 --no-cutree --stats "H:\Temp\Test-AC3-5.1_17_54_40_8210_02.stats" --output "H:\Temp\17_54_40_8210_04.265"

as basis, I add all three to the call:

ffmpeg -y -loglevel fatal -threads 8 -i "F:\TestClips&Co\Test-AC3-5.1.avi" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f yuv4mpegpipe - | x265 --input - --y4m --pass 2 --bitrate 128 --no-cutree --multi-pass-opt-analysis --multi-pass-opt-distortion --multi-pass-opt-rp --analysis-file "h:\Temp\Analysisfile.analysis" --analysis-mode 1 --stats "H:\Temp\Test-AC3-5.1_17_54_40_8210_02.stats" --output "H:\Temp\17_54_40_8210_04.265"

gives me:

y4m  [info]: 640x480 fps 25/1 i420p8 sar 1:1 unknown frame count
raw  [info]: output file: H:\Temp\17_54_40_8210_04.265
x265 [info]: HEVC encoder version 2.3+18-88fd9082764c
x265 [info]: build info [Windows][GCC 6.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x265 [warning]: Cannot use Analysis load/save option and multi-pass-opt-analysis/multi-pass-opt-distortion together,Disabling Analysis load/save and multi-pass-opt-analysis/multi-pass-opt-distortion
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 5 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [error]: unable to open file H:\Temp\Test-AC3-5.1_17_54_40_8210_02.stats
x265 [error]: failed to open encoder

=> any questions? At least to me it does seem like you came up with some wrong conclusions. smile

Cu Selur