The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Selur's Little Message Board
x265 encoding error. - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: x265 encoding error. (/thread-3815.html)

Pages: 1 2 3 4


x265 encoding error. - murriato - 16.08.2024

Hello Mr. Selur, good afternoon, I would like you to check why I get an error when encoding a movie.
Here is some information
Thank you very much  Wink


RE: x265 encoding error. - Selur - 16.08.2024

Okay, you are feeding an Avisynth script into Hybrid.
MKV="C:\Users\cebol\Desktop\ENCODES\HYBRID\Material Los juegos del hambre - Balada de pajaros cantores y serpientes\Los juegos del hambre DV.mkv"


BL=FFVideoSource(MKV).z_ConvertFormat(bit_depth=16).libplacebo_Tonemap(src_csp=3, dst_csp=1).z_ConvertFormat(pixel_type="YUV420P16", chromaloc_op="top_left=>top_left", resample_filter="spline36")
EL=FFVideoSource(MKV.ReplaceStr(".mkv", "_EL.mkv"))

MapNLQ(BL, EL)
z_ConvertFormat(pixel_type="YUV420P10", dither_type="error_diffusion")
Prefetch(2)


z_Spline36Resize(dither="error_diffusion", 1920, 804, 0, 276, -0, -276)


SelectRangeEvery(8000,400)



return last
Since Avisynth 32bit is selected, Hybrid assumes the Avisynth script belongs to 32bit Avisynth.
The decoder call:
"C:\Program Files\Hybrid\32bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\cebol\Desktop\ENCODES\MapNLQ.avs" -an -sn -vf format=yuv420p10le,scale=1920:804 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -sws_flags spline -f yuv4mpegpipe -
fails decoding the script, probably, since it assumes that the script loads everything it nees, which it does not.
Note that Hybrid comes with it's own Avisynth, but your script is only compatible with some external Avisynth.

Cu Selur


RE: x265 encoding error. - murriato - 16.08.2024

Thank you for your prompt response, but it did work before with the previous Hybrid that I had installed.


RE: x265 encoding error. - Selur - 16.08.2024

Okay, that does not hold any useful information to me.
Since the debug output does not contains the loading of the source, please create another debug output loading the source.


RE: x265 encoding error. - murriato - 19.08.2024

Hello again Mr. Selur. I'm doing some tests and I keep getting an error. Can the Hybrid program work with an external Avisynth, for example the one I have installed on my PC?


RE: x265 encoding error. - Selur - 20.08.2024

No.
Hybrid uses its own Avisynth version, to avoid problems with autoloading, not knowing what filters are installed, etc.
You can use external scripts if you write them to be compatible with the used Avisynth version. Alternatively, you can add custom content to the scripts Hybrid creates.

Cu Selur


RE: x265 encoding error. - murriato - 20.08.2024

MKV="C:\Users\cebol\Desktop\ENCODES\HYBRID\Material Los juegos del hambre - Balada de pajaros cantores y serpientes\Los juegos del hambre - Balada de pajaros.mkv"



BL=FFVideoSource(MKV).z_ConvertFormat(bit_depth=16).libplacebo_Tonemap(src_csp=3, dst_csp=1).z_ConvertFormat(pixel_type="YUV420P16", chromaloc_op="top_left=>top_left", resample_filter="spline36")
EL=FFVideoSource(MKV.ReplaceStr(".mkv", "_EL.mkv"))

MapNLQ(BL, EL)
z_ConvertFormat(pixel_type="YUV420P10", dither_type="error_diffusion")
Prefetch(2)


z_Spline36Resize(dither="error_diffusion", 1920, 804, 0, 276, -0, -276)




return last
Hello Mr. Selur, how could I use this script or change it so that it would work in Hybrid?
Thanks


RE: x265 encoding error. - Selur - 20.08.2024

You need to explicitly load all its dependencies.


RE: x265 encoding error. - murriato - 21.08.2024

Hello Mr. Selur, I wanted to tell you that I have installed the Hybrid_2024.04.06.1_SETUP.exe version and it works, then I installed the other subsequent ones, Hybrid_2024.05.05.1_SETUP.exe and it also works, but the following ones do not work, starting with Hybrid_2024.05.11.1_SETUP.exe onwards. What has changed so that the others do not work? I am just leaving you the information so that you can look at it if you want.

Thank you very much  Wink


RE: x265 encoding error. - Selur - 21.08.2024

See https://www.selur.de/changelog for the list of changes.

Encoding call used in 2024.04.06:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\cebol\Desktop\ENCODES\MapNLQ.avs" -an -sn -vf format=yuv420p10le,scale=1920:1038 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -sws_flags spline -f yuv4mpegpipe - | "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\cebol\Desktop\ENCODES\MapNLQ.avs" -an -sn -vf format=yuv420p10le,scale=1920:1038 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -sws_flags spline -f yuv4mpegpipe -

Encoding call used in 2024.05.11:

"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\cebol\Desktop\ENCODES\MapNLQ.avs" -an -sn -vf format=yuv420p10le,scale=1920:1038 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -sws_flags spline -f yuv4mpegpipe - | "C:\Program Files\Hybrid\64bit\x265.exe" --input - --fps 24000/1001 --output-depth 10 --y4m --profile main10 --level-idc 5.1 --qg-size 16 --tu-intra-depth 4 --tu-inter-depth 4 --limit-tu 4 --me star --subme 7 --limit-modes --max-merge 4 --no-early-skip --rskip 0 --no-open-gop --opt-ref-list-length-pps --min-keyint 23 --bframes 16 --weightb --ref 5 --rc-lookahead 60 --lookahead-slices 0 --crf 15.00 --opt-qp-pps --cbqpoffs -2 --crqpoffs -2 --ipratio 1.30 --pbratio 1.20 --rd 4 --psy-rd 2.01 --rdoq-level 2 --psy-rdoq 2.01 --aq-mode 3 --no-cutree --vbv-maxrate 160000 --vbv-bufsize 160000 --hrd --vui-hrd-info --deblock=-3:-3 --no-sao --selective-sao 0 --no-mcstf --range limited --colorprim unknown --transfer smpte2084 --colormatrix bt2020nc --chromaloc 2 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll 3421,178 --hdr10 --hdr10-opt --sar 1:1 --output "C:\Users\cebol\Desktop\ENCODES\HYBRID\2024-08-20@23_41_43_5610_01.265"
For decoding you used the same, for encoding you used x265 with HDR signaling.

I thought that scripts of yours would to hdr to sdr with Avisynth,... (then hdr signaling makes no sense)

Cu Selur