x265 - "merge mode not ok"

Issue #133 resolved
Former user created an issue

Hello,

My setup is the following: OS X Yosemite 10.10.3 (14D136) No overclocking or anything special MacPro All updates on OS are recent.

Compiled using Homebrew (version ae882743) Downloaded latest version of x265 from here: https://bitbucket.org/multicoreware/x265/wiki/Home

cmake (version 3.2.2): Checked Build = ON High Bit Depth = ON

Output from cmake:

#!
user-Mac-Pro:linux user$ ./make-Makefiles.bash
-- cmake version 3.2.2
-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected x86 target processor
-- Could NOT find NUMA (missing:  NUMA_ROOT_DIR NUMA_INCLUDE_DIR NUMA_LIBRARY) 
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Success
-- Performing Test CC_HAS_NO_NARROWING
-- Performing Test CC_HAS_NO_NARROWING - Success
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success
-- Performing Test CC_HAS_FAST_MATH
-- Performing Test CC_HAS_FAST_MATH - Success
-- Performing Test CC_HAS_STACK_REALIGN
-- Performing Test CC_HAS_STACK_REALIGN - Success
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success
-- Found yasm: /usr/local/bin/yasm (found version "1.3.0") 
-- Found Yasm 1.3.0 to build assembly primitives
-- hg found at /usr/local/bin/hg
-- x265 version 1.7+37-dc4fcfc574ad
-- The ASM_YASM compiler identification is unknown
-- Found assembler: /usr/local/bin/yasm
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for include file getopt.h
-- Looking for include file getopt.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/x265/build/linux

user-Mac-Pro:linux user$ 

Once this is done, "make":

#!

user-Mac-Pro:linux user$ make
Scanning dependencies of target encoder
[  1%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
[  2%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o
[  3%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o
[  5%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o
[  6%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o
[  7%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o
[  9%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o
[ 10%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o
[ 11%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o
[ 12%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o
[ 14%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o
[ 15%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o
[ 16%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o
[ 18%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o
[ 19%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o
[ 20%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o
[ 22%] Building CXX object encoder/CMakeFiles/encoder.dir/api.cpp.o
[ 23%] Building CXX object encoder/CMakeFiles/encoder.dir/weightPrediction.cpp.o
[ 23%] Built target encoder
Scanning dependencies of target common
[ 24%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o
[ 25%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/const-a.asm.o
[ 27%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/cpu-a.asm.o
[ 28%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/ssd-a.asm.o
[ 29%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/mc-a.asm.o
[ 31%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/mc-a2.asm.o
[ 32%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixel-util8.asm.o
[ 33%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/blockcopy8.asm.o
[ 35%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixeladd8.asm.o
[ 36%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/dct8.asm.o
[ 37%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/sad-a.asm.o
[ 38%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.o
[ 40%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/intrapred8_allangs.asm.o
[ 41%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/ipfilter8.asm.o
[ 42%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/loopfilter.asm.o
[ 44%] Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o
[ 45%] Building CXX object common/CMakeFiles/common.dir/vec/vec-primitives.cpp.o
[ 46%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse3.cpp.o
[ 48%] Building CXX object common/CMakeFiles/common.dir/vec/dct-ssse3.cpp.o
[ 49%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse41.cpp.o
[ 50%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o
[ 51%] Building CXX object common/CMakeFiles/common.dir/pixel.cpp.o
[ 53%] Building CXX object common/CMakeFiles/common.dir/dct.cpp.o
[ 54%] Building CXX object common/CMakeFiles/common.dir/ipfilter.cpp.o
[ 55%] Building CXX object common/CMakeFiles/common.dir/intrapred.cpp.o
[ 57%] Building CXX object common/CMakeFiles/common.dir/loopfilter.cpp.o
[ 58%] Building CXX object common/CMakeFiles/common.dir/constants.cpp.o
[ 59%] Building CXX object common/CMakeFiles/common.dir/cpu.cpp.o
[ 61%] Building CXX object common/CMakeFiles/common.dir/version.cpp.o
[ 62%] Building CXX object common/CMakeFiles/common.dir/threading.cpp.o
[ 63%] Building CXX object common/CMakeFiles/common.dir/threadpool.cpp.o
[ 64%] Building CXX object common/CMakeFiles/common.dir/wavefront.cpp.o
[ 66%] Building CXX object common/CMakeFiles/common.dir/md5.cpp.o
[ 67%] Building CXX object common/CMakeFiles/common.dir/bitstream.cpp.o
[ 68%] Building CXX object common/CMakeFiles/common.dir/yuv.cpp.o
[ 70%] Building CXX object common/CMakeFiles/common.dir/shortyuv.cpp.o
[ 71%] Building CXX object common/CMakeFiles/common.dir/picyuv.cpp.o
[ 72%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o
[ 74%] Building CXX object common/CMakeFiles/common.dir/param.cpp.o
[ 75%] Building CXX object common/CMakeFiles/common.dir/frame.cpp.o
[ 76%] Building CXX object common/CMakeFiles/common.dir/framedata.cpp.o
[ 77%] Building CXX object common/CMakeFiles/common.dir/cudata.cpp.o
[ 79%] Building CXX object common/CMakeFiles/common.dir/slice.cpp.o
[ 80%] Building CXX object common/CMakeFiles/common.dir/lowres.cpp.o
[ 81%] Building CXX object common/CMakeFiles/common.dir/piclist.cpp.o
[ 83%] Building CXX object common/CMakeFiles/common.dir/predict.cpp.o
[ 84%] Building CXX object common/CMakeFiles/common.dir/scalinglist.cpp.o
[ 85%] Building CXX object common/CMakeFiles/common.dir/quant.cpp.o
[ 87%] Building CXX object common/CMakeFiles/common.dir/deblock.cpp.o
[ 87%] Built target common
Scanning dependencies of target x265-shared
Linking CXX shared library libx265.dylib
[ 87%] Built target x265-shared
Scanning dependencies of target cli
[ 88%] Building CXX object CMakeFiles/cli.dir/input/input.cpp.o
[ 89%] Building CXX object CMakeFiles/cli.dir/input/yuv.cpp.o
[ 90%] Building CXX object CMakeFiles/cli.dir/input/y4m.cpp.o
[ 92%] Building CXX object CMakeFiles/cli.dir/output/output.cpp.o
[ 93%] Building CXX object CMakeFiles/cli.dir/output/reconplay.cpp.o
[ 94%] Building CXX object CMakeFiles/cli.dir/output/yuv.cpp.o
[ 96%] Building CXX object CMakeFiles/cli.dir/output/y4m.cpp.o
[ 97%] Building CXX object CMakeFiles/cli.dir/output/raw.cpp.o
[ 98%] Building CXX object CMakeFiles/cli.dir/filters/filters.cpp.o
[100%] Building CXX object CMakeFiles/cli.dir/x265.cpp.o
Linking CXX executable x265
[100%] Built target cli
Scanning dependencies of target x265-static
Linking CXX static library libx265.a
[100%] Built target x265-static
user-Mac-Pro:linux user$ 

From here, I try to run the following:

#!

~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 4096x1714 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v3.hevc

This comes up in shell:

#!

user-Mac-Pro:linux user$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 4096x1714 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v3.hevc
yuv  [info]: 4096x1714 fps 24000/1001 i444p10 frames 0 - 2728 of 2729
raw  [info]: output file: /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v3.hevc
x265 [info]: HEVC encoder version 1.7+37-dc4fcfc574ad
x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main 4:4:4 10 profile, Level-5 (Main tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: frame threads / pool features       : 3 / wpp(27 rows)
x265 [info]: Internal bit depth                  : 10
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
x265 [full]: poc: 2 weights: [L0:R0 Y{15/16+9}U{60/64+8}V{60/64+8}]                          
x265 [error]: Merge mode not ok
Illegal instruction: 4
user-Mac-Pro:linux user$ 

Also, a file gets created in (and is called): ~/x265_check_failures.txt (attached)

Finally, I have included the crash log.

Let me know what else is needed.

Comments (15)

  1. Deepthi Nandakumar

    So, to build on a Mac machine, typically x256 users use the xcode cmake generators. Not sure if this could actually cause any problems, but it's probably safer.

    We did push in changes to merge mode behaviour yesterday, but so far our tests haven't thrown up anything bad.

  2. Mahesh Pittala

    encoded fine with 2k resolution and we are having Clang 5.0.0 version. can you share TOS_4096x1714_ProRes_4444_XQ.mov sequence. will check.

    /x265 --input /Volumes/testsequences/ParkScene_1920x1080_24_10bit_444.yuv --input-res 1920x1080 --fps 24 --input-depth 10 --input-csp i444 -o parkscene.hevc --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --fps 24000/1000 yuv [info]: 1920x1080 fps 24000/1000 i444p10 frames 0 - 239 of 240 raw [info]: output file: parkscene.hevc x265 [info]: HEVC encoder version 1.7+39-8c3bf404906e x265 [info]: build info [Mac OS X][clang 5.0.0][64 bit][CHECKED] 16bpp x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 4:4:4 10 profile, Level-4 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: frame threads / pool features : 3 / wpp(17 rows) x265 [info]: Internal bit depth : 10 x265 [info]: Coding QT: max CU size, min CU size : 64 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2 x265 [info]: Keyframe min / max / scenecut : 24 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 15 / 4 / 0 x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1 x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 64 / 0 x265 [info]: References / ref-limit cu / depth : 1 / 0 / 0 x265 [info]: Rate Control / qCompress : ABR-5000 kbps / 0.60 x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra x265 [info]: tools: strong-intra-smoothing deblock sao

  3. Former user Account Deleted

    Today, following @maheshpittala findings, I attempted using a HD SOURCE. That worked with no issues, with the exact build, compile and version of x265.

    Here are the particulars:

    Commands used:

    #!
    
    ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/tears_of_steel_1080p-PRHQ.mov --fps 24000/1001 --input-res 1920x1080 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v1.hevc
    

    Source was a Prores 422 HQ of Tears of Steel, created from the 4K source mentioned in my above post.

    Since I am working with x265 16bpp version, I said my source was i444 (which it is not) and used main10.

    With the mentioned settings, I am getting about 3 fps.

    Here is my console start:

    #!
    
    user-Mac-Pro:~ user$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/tears_of_steel_1080p-PRHQ.mov --fps 24000/1001 --input-res 1920x1080 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v1.hevc
    yuv  [info]: 1920x1080 fps 24000/1001 i444p10 frames 0 - 1080 of 1081
    raw  [info]: output file: /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v1.hevc
    x265 [info]: HEVC encoder version 1.7+37-dc4fcfc574ad
    x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 4:4:4 10 profile, Level-4 (Main tier)
    x265 [info]: Thread pool created using 12 threads
    x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
    x265 [info]: Internal bit depth                  : 10
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
    x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    x265 [full]: poc: 1 weights: [L0:R0 Y{13/16+26}U{106/128+30}V{112/128+20}]                   
    x265 [debug]: POC:0 I QP 39.00(35)   14661456 bits [SSIM: 16.625dB]
    x265 [full]: poc: 3 weights: [L0:R0 Y{15/16+9}]                                              
    x265 [debug]: POC:1 P QP 46.00(42)    5174536 bits [SSIM: 5.325dB] [L0 0 ]
    x265 [debug]: POC:2 P QP 50.00(46)    1207576 bits [SSIM: 1.385dB] [L0 1 ]
    x265 [full]: poc: 5 weights: [L0:R0 Y{15/16+7}U{60/64+7}V{60/64+7}]                          
    x265 [debug]: POC:3 P QP 50.00(50)       1704 bits [SSIM: 0.061dB] [L0 2 ]
    x265 [full]: poc: 6 weights: [L0:R0 Y{15/16+6}U{60/64+5}V{60/64+2}]                          
    x265 [debug]: POC:4 P QP 51.00(51)       1616 bits [SSIM: 0.054dB] [L0 3 ]
    x265 [full]: poc: 7 weights: [L0:R0 Y{15/16+4}U{60/64+4}V{60/64+12}]                         
    x265 [debug]: POC:5 P QP 51.00(51)       1680 bits [SSIM: 0.057dB] [L0 4 ]
    x265 [full]: poc: 8 weights: [L0:R0 Y{15/16+15}U{60/64+18}V{60/64+13}]                       
    x265 [debug]: POC:6 P QP 51.00(51)       1800 bits [SSIM: 0.057dB] [L0 5 ]
    x265 [debug]: POC:7 P QP 51.00(51)       2048 bits [SSIM: 0.061dB] [L0 6 ]
    x265 [full]: poc: 10 weights: [L0:R0 Y{15/16+7}U{60/64+7}V{60/64+7}]                         
    x265 [debug]: POC:8 P QP 51.00(51)       1552 bits [SSIM: 0.057dB] [L0 7 ]
    x265 [debug]: POC:9 P QP 51.00(51)       1504 bits [SSIM: 0.052dB] [L0 8 ]
    
    etc....
    

    Console end:

    #!
    
    etc....
    
    x265 [full]: poc: 1068 weights: [L0:R0 Y{15/16+8}U{60/64+9}V{60/64+9}]                       
    x265 [debug]: POC:1066 P QP 47.14(47)      14232 bits [SSIM: 0.058dB] [L0 1065 ]
    x265 [full]: poc: 1069 weights: [L0:R0 Y{15/16+9}]                                           
    x265 [debug]: POC:1067 P QP 47.15(47)      20648 bits [SSIM: 0.063dB] [L0 1066 ]
    x265 [full]: poc: 1070 weights: [L0:R0 Y{15/16+7}U{60/64+9}V{60/64+9}]                       
    x265 [debug]: POC:1068 P QP 47.16(47)       8472 bits [SSIM: 0.053dB] [L0 1067 ]
    x265 [debug]: POC:1069 P QP 47.00(47)       4480 bits [SSIM: 0.051dB] [L0 1068 ]
    x265 [debug]: POC:1070 P QP 46.00(46)       6592 bits [SSIM: 0.052dB] [L0 1069 ]
    x265 [full]: poc: 1073 weights: [L0:R0 Y{15/16+8}]                                           
    x265 [debug]: POC:1071 P QP 46.22(46)      16480 bits [SSIM: 0.054dB] [L0 1070 ]
    x265 [debug]: POC:1072 P QP 46.06(46)       8336 bits [SSIM: 0.051dB] [L0 1071 ]
    x265 [debug]: POC:1073 P QP 46.00(46)       7024 bits [SSIM: 0.050dB] [L0 1072 ]
    x265 [debug]: POC:1074 P QP 46.16(46)      13248 bits [SSIM: 0.064dB] [L0 1073 ]
    x265 [debug]: POC:1075 P QP 46.34(46)      13112 bits [SSIM: 0.051dB] [L0 1074 ]
    x265 [full]: poc: 1078 weights: [L0:R0 Y{15/16+8}]                                           
    x265 [debug]: POC:1076 P QP 46.36(46)      19368 bits [SSIM: 0.053dB] [L0 1075 ]
    x265 [full]: poc: 1079 weights: [L0:R0 Y{15/16+7}U{60/64+8}V{60/64+8}]                       
    x265 [debug]: POC:1077 P QP 46.10(46)       8304 bits [SSIM: 0.053dB] [L0 1076 ]
    x265 [debug]: scene cut at 1080 Icost:120786425 Pcost:120208958 ratio:0.0048 bias:0.1806 gop:84 (imb:6956 pmb:832)
    x265 [debug]: POC:1078 P QP 46.63(46)      54144 bits [SSIM: 0.107dB] [L0 1077 ]
    x265 [debug]: POC:1079 P QP 46.22(46)      10568 bits [SSIM: 0.054dB] [L0 1078 ]
    x265 [debug]: POC:1080 I QP 47.00(43)    6038176 bits [SSIM: 6.668dB]
    x265 [info]: frame I:      6, Avg QP:45.67  kb/s: 180038.84  SSIM Mean: 0.818560 (7.413dB)
    x265 [info]: frame P:   1075, Avg QP:47.47  kb/s: 4078.44   SSIM Mean: 0.041107 (0.182dB)
    x265 [info]: global :   1081, Avg QP:47.46  kb/s: 5055.09   SSIM Mean: 0.045422 (0.202dB)
    x265 [info]: Weighted P-Frames: Y:45.3% UV:34.8%
    x265 [info]: consecutive B-frames: 100.0% 0.0% 0.0% 0.0% 0.0% 
    
    encoded 1081 frames in 289.54s (3.73 fps), 5055.09 kb/s, SSIM Mean Y: 0.0454221 ( 0.202 dB)
    user-Mac-Pro:~ user$ 
    

    It SEEMS that it has something to do with my SOURCE. Resolution OR color space... will do further testing.

  4. Former user Account Deleted

    OK, it doesn't seem to be the resolution.

    Proof:

    Commands:

    #!
    
    ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/tears_of_steel_1080p-PRHQ.mov --fps 24000/1001 --input-res 4096x1714 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v3.hevc
    

    Console start:

    #!
    
    user-Mac-Pro:~ user$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/tears_of_steel_1080p-PRHQ.mov --fps 24000/1001 --input-res 4096x1714 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v3.hevc
    yuv  [info]: 4096x1714 fps 24000/1001 i444p10 frames 0 - 318 of 319
    raw  [info]: output file: /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes422_v3.hevc
    x265 [info]: HEVC encoder version 1.7+37-dc4fcfc574ad
    x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 4:4:4 10 profile, Level-5 (Main tier)
    x265 [info]: Thread pool created using 12 threads
    x265 [info]: frame threads / pool features       : 3 / wpp(27 rows)
    x265 [info]: Internal bit depth                  : 10
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
    x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    x265 [full]: poc: 1 weights: [L0:R0 Y{109/128+22}U{60/64+5}V{60/64+5}]                       
    x265 [full]: poc: 2 weights: [L0:R0 Y{15/16+1}U{60/64+10}V{60/64+12}]                        
    x265 [debug]: POC:0 I QP 48.00(44)   17623928 bits [SSIM: 6.418dB]
    x265 [full]: poc: 3 weights: [L0:R0 Y{15/16+14}U{60/64+6}V{60/64+6}]                         
    x265 [debug]: POC:1 P QP 51.00(51)      19752 bits [SSIM: 0.032dB] [L0 0 ]
    x265 [full]: poc: 4 weights: [L0:R0 Y{15/16+4}U{60/64+4}V{60/64+9}]                          
    x265 [debug]: POC:2 P QP 51.00(51)       1720 bits [SSIM: 0.036dB] [L0 1 ]
    x265 [full]: poc: 5 weights: [L0:R0 Y{15/16+11}U{60/64+11}V{60/64+11}]        
    
    etc...
    

    On to csp.

    One interesting thing to note, that the encoder will take non-mod resolutions. I did the math on 1714. Try it. Still ran though.

  5. Former user Account Deleted

    Dang, ok. Seems it IS the resolution.

    Here is my command:

    #!
    ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 1920x800 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v4.hevc
    

    Notice everything is the same except the resolution, which I "forced" to 1920x800.

    Start terminal:

    #!
    
    users-Mac-Pro:~ users$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 1920x800 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/users/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v4.hevc
    yuv  [info]: 1920x800 fps 24000/1001 i444p10 frames 0 - 12475 of 12476
    raw  [info]: output file: /Volumes/media/users/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v4.hevc
    x265 [info]: HEVC encoder version 1.7+37-dc4fcfc574ad
    x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 4:4:4 10 profile, Level-4 (Main tier)
    x265 [info]: Thread pool created using 12 threads
    x265 [info]: frame threads / pool features       : 3 / wpp(13 rows)
    x265 [info]: Internal bit depth                  : 10
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
    x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    x265 [debug]: POC:0 I QP 36.03(32)   12298592 bits [SSIM: 20.435dB]
    x265 [debug]: POC:3 P QP 43.00(39)    6162304 bits [SSIM: 9.108dB] [L0 0 ]
    x265 [full]: poc: 4 weights: [L0:R0 Y{53/64+39}U{103/128+36}V{107/128+10}]                   
    x265 [debug]: POC:2 B QP 44.00(40)    6290456 bits [SSIM: 8.223dB] [L0 0 ] [L1 3 ]
    x265 [full]: poc: 5 weights: [L0:R0 Y{15/16+8}U{59/64+12}V{60/64+7}]                         
    x265 [debug]: POC:1 b QP 45.59(41)    4500736 bits [SSIM: 6.782dB] [L0 0 ] [L1 2 3 ]
    x265 [debug]: POC:4 P QP 47.00(43)    2883912 bits [SSIM: 4.050dB] [L0 3 ]
    x265 [debug]: POC:5 P QP 47.30(47)       2720 bits [SSIM: 0.043dB] [L0 4 ]
    x265 [debug]: POC:6 P QP 51.00(51)        808 bits [SSIM: 0.040dB] [L0 5 ]
    x265 [debug]: POC:7 P QP 51.00(51)        792 bits [SSIM: 0.043dB] [L0 6 ]
    x265 [full]: poc: 10 weights: [L0:R0 Y{15/16+6}U{60/64+10}V{60/64+7}]                        
    x265 [debug]: POC:8 P QP 51.00(51)        816 bits [SSIM: 0.041dB] [L0 7 ]
    x265 [full]: poc: 11 weights: [L0:R0 Y{15/16+9}U{60/64+7}V{60/64+9}]                         
    x265 [debug]: POC:9 P QP 51.00(51)        808 bits [SSIM: 0.048dB] [L0 8 ]
    x265 [debug]: POC:10 P QP 51.00(51)        792 bits [SSIM: 0.043dB] [L0 9 ]
    x265 [full]: poc: 13 weights: [L0:R0 Y{15/16+7}U{60/64+11}V{60/64+6}]                        
    x265 [debug]: POC:11 P QP 51.00(51)        800 bits [SSIM: 0.044dB] [L0 10 ]
    
    etc...
    

    Seems that the CSP is irrelevant, since I output, from the same 4K file 422 and 444 (ProRes) and still had problems with 4096x1714.

    Then I switched the resolution to HD (1920x800) and both CSP's ran without issues.

    When I try 3840x1600, I also get the error.

    Only 1920xX seems to run fine.

  6. Mahesh Pittala

    I have tested with TOS 420 and 444 but couldn't able to reproduce.

    machine configuration: OSX10.8.5, Ivybridge IntelCorei7 3615QM@2.3GHz, RAM8GB

    MulticoreWares-Mac-mini:xcode mcw$ ./x265 --input /Volumes/testsequences/tos_10bit_215to815_4096x1714_24fps.yuv --fps 24 --input-res 4096x1714 --ssim --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output TOS.hevc --profile=main10 --input-depth 10

    yuv [info]: 4096x1714 fps 24000/1000 i420p10 frames 0 - 599 of 600 raw [info]: output file: TOS.hevc x265 [info]: HEVC encoder version 1.7+39-8c3bf404906e x265 [info]: build info [Mac OS X][clang 5.0.0][64 bit][CHECKED] 16bpp x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 10 profile, Level-5 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: frame threads / pool features : 3 / wpp(27 rows) x265 [info]: Internal bit depth : 10 x265 [info]: Coding QT: max CU size, min CU size : 64 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2 x265 [info]: Keyframe min / max / scenecut : 24 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 15 / 4 / 0 x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1 x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 64 / 0 x265 [info]: References / ref-limit cu / depth : 1 / 0 / 0 x265 [info]: Rate Control / qCompress : ABR-5000 kbps / 0.60 x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra x265 [info]: tools: strong-intra-smoothing deblock sao x265 [debug]: POC:0 I QP 35.81(39) 484616 bits [SSIM: 10.140dB] x265 [debug]: POC:5 P QP 37.77(40) 128872 bits [SSIM: 9.600dB] [L0 0 ] x265 [debug]: POC:3 B QP 39.37(41) 55328 bits [SSIM: 9.568dB] [L0 0 ] [L1 5 ] x265 [debug]: POC:1 b QP 40.46(42) 42200 bits [SSIM: 9.715dB] [L0 0 ] [L1 3 5 ] x265 [debug]: POC:2 b QP 40.59(42) 42104 bits [SSIM: 9.775dB] [L0 0 ] [L1 3 5 ] x265 [debug]: POC:4 b QP 40.48(42) 39560 bits [SSIM: 9.775dB] [L0 3 ] [L1 5 ] x265 [debug]: POC:10 P QP 33.35(36) 300352 bits [SSIM: 10.400dB] [L0 5 ] x265 [debug]: POC:8 B QP 36.99(39) 80712 bits [SSIM: 10.091dB] [L0 5 ] [L1 10 ] x265 [debug]: POC:6 b QP 39.49(41) 47952 bits [SSIM: 10.427dB] [L0 5 ] [L1 8 10 ] x265 [full]: poc: 15 weights: [L0:R0 Y{1/1+1}U{61/64+6}V{59/64+11}] x265 [debug]: POC:7 b QP 38.97(41) 50152 bits [SSIM: 10.040dB] [L0 5 ] [L1 8 10 ] x265 [debug]: POC:9 b QP 37.31(39) 68336 bits [SSIM: 10.167dB] [L0 8 ] [L1 10 ] x265 [debug]: POC:15 P QP 29.62(32) 606744 bits [SSIM: 12.207dB] [L0 10 ] x265 [debug]: POC:13 B QP 32.36(35) 174920 bits [SSIM: 11.343dB] [L0 10 ] [L1 15 ] x265 [debug]: POC:11 b QP 35.55(37) 78520 bits [SSIM: 10.399dB] [L0 10 ] [L1 13 15 ] x265 [debug]: POC:12 b QP 34.55(37) 91336 bits [SSIM: 10.464dB] [L0 10 ] [L1 13 15 ] x265 [debug]: POC:14 b QP 33.10(35) 112752 bits [SSIM: 11.532dB] [L0 13 ] [L1 15 ] x265 [debug]: POC:20 P QP 29.85(33) 482496 bits [SSIM: 11.690dB] [L0 15 ] x265 [debug]: POC:18 B QP 31.09(34) 270312 bits [SSIM: 11.595dB] [L0 15 ] [L1 20 ] x265 [debug]: POC:16 b QP 32.07(35) 164728 bits [SSIM: 11.305dB] [L0 15 ] [L1 18 20 ] x265 [debug]: POC:17 b QP 32.60(35) 109464 bits [SSIM: 11.848dB] [L0 15 ] [L1 18 20 ] x265 [debug]: POC:19 b QP 32.37(35) 155728 bits [SSIM: 11.752dB] [L0 18 ] [L1 20 ] x265 [debug]: POC:25 P QP 30.02(33) 442312 bits [SSIM: 12.072dB] [L0 20 ] x265 [debug]: POC:23 B QP 31.31(34) 167688 bits [SSIM: 11.860dB] [L0 20 ] [L1 25 ] x265 [debug]: POC:21 b QP 32.51(35) 228624 bits [SSIM: 10.544dB] [L0 20 ] [L1 23 25 ] x265 [debug]: POC:22 b QP 32.89(35) 100216 bits [SSIM: 11.404dB] [L0 20 ] [L1 23 25 ] x265 [debug]: POC:24 b QP 32.70(35) 133272 bits [SSIM: 11.662dB] [L0 23 ] [L1 25 ] x265 [debug]: POC:30 P QP 30.40(33) 524168 bits [SSIM: 11.517dB] [L0 25 ] x265 [debug]: POC:28 B QP 31.33(34) 298824 bits [SSIM: 11.899dB] [L0 25 ] [L1 30 ] x265 [debug]: POC:26 b QP 32.66(35) 202000 bits [SSIM: 10.760dB] [L0 25 ] [L1 28 30 ] x265 [debug]: POC:27 b QP 32.82(35) 164440 bits [SSIM: 11.238dB] [L0 25 ] [L1 28 30 ] x265 [debug]: POC:29 b QP 32.84(35) 188032 bits [SSIM: 11.540dB] [L0 28 ] [L1 30 ] x265 [debug]: POC:35 P QP 30.51(33) 485392 bits [SSIM: 12.290dB] [L0 30 ] x265 [debug]: POC:33 B QP 31.85(34) 303008 bits [SSIM: 11.565dB] [L0 30 ] [L1 35 ] x265 [debug]: POC:31 b QP 32.95(35) 201560 bits [SSIM: 10.843dB] [L0 30 ] [L1 33 35 ] x265 [debug]: POC:32 b QP 32.91(35) 177392 bits [SSIM: 11.294dB] [L0 30 ] [L1 33 35 ] x265 [full]: poc: 39 weights: [L0:R0 Y{1/1+1}U{59/64+10}V{61/64+6}] x265 [debug]: POC:34 b QP 32.98(36) 182376 bits [SSIM: 11.833dB] [L0 33 ] [L1 35 ] x265 [debug]: POC:36 P QP 30.47(33) 309952 bits [SSIM: 12.711dB] [L0 35 ] x265 [debug]: POC:39 P QP 30.36(33) 343696 bits [SSIM: 12.850dB] [L0 36 ] x265 [debug]: POC:38 B QP 31.55(34) 250000 bits [SSIM: 12.487dB] [L0 36 ] [L1 39 ] x265 [debug]: POC:37 b QP 32.54(36) 209392 bits [SSIM: 12.708dB] [L0 36 ] [L1 38 39 ] x265 [info]: frame I: 1, Avg QP:35.81 kb/s: 11630.78 SSIM Mean: 0.903181 (10.140dB) x265 [info]: frame P: 9, Avg QP:31.37 kb/s: 9663.96 SSIM Mean: 0.930465 (11.578dB) x265 [info]: frame B: 30, Avg QP:34.37 kb/s: 3512.74 SSIM Mean: 0.919942 (10.966dB) x265 [info]: global : 40, Avg QP:33.73 kb/s: 5099.72 SSIM Mean: 0.921890 (11.073dB) x265 [info]: Weighted P-Frames: Y:22.2% UV:22.2% x265 [info]: consecutive B-frames: 20.0% 0.0% 10.0% 0.0% 70.0%

    encoded 40 frames in 332.10s (0.12 fps), 5099.72 kb/s, SSIM Mean Y: 0.9218904 (11.073 dB) MulticoreWares-Mac-mini:xcode mcw$

    MulticoreWares-Mac-mini:xcode mcw$ ./x265 --input /Volumes/testsequences/tos_10bit_215to815_4096x1714_24fps_444.yuv --fps 24 --input-res 4096x1714 --ssim --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output TOS.hevc --profile=main10 --input-depth 10 --input-csp i444 yuv [info]: 4096x1714 fps 24000/1000 i444p10 frames 0 - 599 of 600 raw [info]: output file: TOS.hevc x265 [info]: HEVC encoder version 1.7+39-8c3bf404906e x265 [info]: build info [Mac OS X][clang 5.0.0][64 bit][CHECKED] 16bpp x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 4:4:4 10 profile, Level-5 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: frame threads / pool features : 3 / wpp(27 rows) x265 [info]: Internal bit depth : 10 x265 [info]: Coding QT: max CU size, min CU size : 64 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2 x265 [info]: Keyframe min / max / scenecut : 24 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 15 / 4 / 0 x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1 x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 64 / 0 x265 [info]: References / ref-limit cu / depth : 1 / 0 / 0 x265 [info]: Rate Control / qCompress : ABR-5000 kbps / 0.60 x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra x265 [info]: tools: strong-intra-smoothing deblock sao x265 [debug]: POC:0 I QP 35.86(38) 548200 bits [SSIM: 10.139dB] . . . etc..

  7. Mahesh Pittala

    If you are still getting error, pleases can you share the info. we are planning to download same tiff files, last time we download test sequence from http://media.xiph.org/tearsofsteel/tearsofsteel-4k.y4m.xz but we are unable to reproduce. 1) Machine configuration 2) The process\command to convert tiff files to .mov\yuv, you said 'in Compressor, created the 144 GB outputs to ProRes 4444 XQ' 3) At what frame x265 thrown error while encoding? I mean, if we change number of frames still crashing everytime or only when we encode full sequence?

  8. Mahesh Pittala

    btw, x265 doesn't support .mov files as input, supports only .yuv.y4m as input file. please can you convert to yuv\y4m and let me know if you face same issue.

  9. Former user Account Deleted

    @maheshpittala

    1) Machine configuration = Mac Pro (Late 2013) Processor 3.5 GHz 6-Core Intel Xeon E5 Memory 28 GB 1866 MHz DDR3 ECC Graphics AMD FirePro D300 2048 MB

    2) The process\command to convert tiff files to .mov\yuv, you said 'in Compressor, created the 144 GB outputs to ProRes 4444 XQ = Download the mentioned tiff files, drag folder into Compressor (4.2.x) OR "Add Image Sequence...", point to folder. Then choose the preset "Apple ProRes 4444 XQ" in the ProRes section.

    3) At what frame x265 thrown error while encoding? = Unknown. I am supplying the full "--log-level" output. It might be the first few frames, since I am not trimming duration.

    4) I mean, if we change number of frames still crashing everytime or only when we encode full sequence? = Crashing regardless of where I start in image sequence.

  10. Former user Account Deleted

    @maheshpittala

    I have no issues other than the above with x265 supporting Quicktime *.mov files. I doubt this is the issue.

    Have pretty thoroughly documented that I have only been using *.mov files with more success than failures.

  11. Former user Account Deleted

    Hello, after some trial and error, I have found that the horizontal resolution, if => to 3827, then I get the error.

    Proof:

    #!
    ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 3827x1600 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v5.hevc
    

    This gave error:

    #!
    user-Mac-Pro:linux user$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 3827x1600 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v7.hevc
    yuv  [info]: 3827x1600 fps 24000/1001 i444p10 frames 0 - 3128 of 3129
    raw  [info]: output file: /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v7.hevc
    x265 [info]: HEVC encoder version 1.7+58-8ddc790790a4
    x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 4:4:4 10 profile, Level-5 (Main tier)
    x265 [info]: Thread pool created using 12 threads
    x265 [info]: frame threads / pool features       : 3 / wpp(25 rows)
    x265 [info]: Internal bit depth                  : 10
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
    x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    x265 [full]: poc: 2 weights: [L0:R0 Y{15/16+10}U{60/64+9}V{60/64+8}]                         
    x265 [error]: Merge mode not ok
    Illegal instruction: 4
    user-Mac-Pro:linux user$ 
    

    Next, I change the horizontal resolution to 3826, nothing else changed, including vertical resolution:

    #!
    ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 3826x1600 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v7.hevc
    

    Here is the terminal:

    #!
    user-Mac-Pro:linux user$ ~/x265/build/linux/x265 --input /Volumes/media/TOS_Source_Assets/TOS_4096x1714_ProRes_4444_XQ.mov --fps 24000/1001 --input-res 3826x1600 --input-depth 10 --input-csp i444 --ssim --profile main10 --level-idc 51 --preset faster --tune ssim --bitrate 5000 --log-level full --output /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v7.hevc
    yuv  [info]: 3826x1600 fps 24000/1001 i444p10 frames 0 - 3129 of 3130
    raw  [info]: output file: /Volumes/media/user/ffmpeg/hevcRAW_16b_5mbps_ProRes444XQ_v7.hevc
    x265 [info]: HEVC encoder version 1.7+58-8ddc790790a4
    x265 [info]: build info [Mac OS X][clang 6.1.0][64 bit][CHECKED] 16bpp
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 4:4:4 10 profile, Level-5 (Main tier)
    x265 [info]: Thread pool created using 12 threads
    x265 [info]: frame threads / pool features       : 3 / wpp(25 rows)
    x265 [info]: Internal bit depth                  : 10
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 1
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 64 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : ABR-5000 kbps / 0.60
    x265 [info]: tools: rd=2 early-skip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    x265 [full]: poc: 2 weights: [L0:R0 Y{15/16+10}U{60/64+9}V{60/64+8}]                         
    x265 [debug]: POC:0 I QP 48.00(44)   15588152 bits [SSIM: 7.808dB]
    x265 [debug]: POC:1 P QP 51.00(51)     565008 bits [SSIM: 0.261dB] [L0 0 ]
    x265 [debug]: POC:2 P QP 51.00(51)       3456 bits [SSIM: 0.063dB] [L0 1 ]
    x265 [debug]: POC:3 P QP 51.00(51)       4048 bits [SSIM: 0.057dB] [L0 2 ]
    x265 [debug]: POC:4 P QP 51.00(51)       4488 bits [SSIM: 0.057dB] [L0 3 ]
    x265 [debug]: POC:5 P QP 51.00(51)       5128 bits [SSIM: 0.063dB] [L0 4 ]
    x265 [full]: poc: 8 weights: [L0:R0 Y{15/16+7}U{60/64+7}V{60/64+7}]                          
    x265 [debug]: POC:6 P QP 51.00(51)       5560 bits [SSIM: 0.057dB] [L0 5 ]
    x265 [debug]: POC:7 P QP 51.00(51)       5752 bits [SSIM: 0.055dB] [L0 6 ]
    x265 [full]: poc: 10 weights: [L0:R0 Y{15/16+8}]                                             
    x265 [debug]: POC:8 P QP 51.00(51)       5712 bits [SSIM: 0.055dB] [L0 7 ]
    x265 [debug]: POC:9 P QP 51.00(51)       4984 bits [SSIM: 0.062dB] [L0 8 ]
    x265 [full]: poc: 12 weights: [L0:R0 Y{15/16+7}U{60/64+7}V{60/64+7}]                         
    x265 [debug]: POC:10 P QP 51.00(51)       4488 bits [SSIM: 0.062dB] [L0 9 ]
    x265 [full]: poc: 13 weights: [L0:R0 Y{15/16+7}]                                             
    x265 [debug]: POC:11 P QP 51.00(51)       4232 bits [SSIM: 0.057dB] [L0 10 ]
    x265 [debug]: POC:12 P QP 51.00(51)       4336 bits [SSIM: 0.057dB] [L0 11 ]
    x265 [full]: poc: 15 weights: [L0:R0 Y{15/16+5}U{60/64+6}V{60/64+7}]                         
    x265 [debug]: POC:13 P QP 51.00(51)       4112 bits [SSIM: 0.055dB] [L0 12 ]
    ^C
    x265 [debug]: POC:14 P QP 51.00(51)       4504 bits [SSIM: 0.057dB] [L0 13 ]
    x265 [info]: frame I:      1, Avg QP:48.00  kb/s: 373741.91  SSIM Mean: 0.834340 (7.808dB)
    x265 [info]: frame P:     14, Avg QP:51.00  kb/s: 1071.74   SSIM Mean: 0.016521 (0.072dB)
    x265 [info]: global :     15, Avg QP:50.80  kb/s: 25916.42  SSIM Mean: 0.071042 (0.320dB)
    x265 [info]: Weighted P-Frames: Y:35.7% UV:21.4%
    x265 [info]: consecutive B-frames: 100.0% 0.0% 0.0% 0.0% 0.0% 
    aborted at input frame 39, output frame 15
    
    encoded 15 frames in 9.55s (1.57 fps), 25916.42 kb/s, SSIM Mean Y: 0.0710425 ( 0.320 dB)
    user-Mac-Pro:linux user$ 
    

    Any time I use a horizontal resolution of <= 3826, x265 runs with no issues, regardless of input depth, CSP, vertical resolution, source, etc.

  12. Sundar Govindarajan

    I am just looking at this issue...

    x265 doesn't support mov container or ProRes encoded content natively. It will treat the video input as a yuv file and encode it using the resolution and fps parameters passed as input. If you playback the encoded file, you will realize that the output is corrupted.

  13. Former user Account Deleted

    Hello All, thanks guys for the attention, that's what it was. I created a *.yuv file from the ProRes and it is processing now without issue with resolutions greater than 3826.

    Thanks!

  14. Log in to comment