This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] Hybrid 2025.03.09.1-Adaptive quantization (temporal)
#1
Hi Selur,

Erst mal sorry dafür, das ich deine PM nicht lesen konnte. War eine ganze Weile offline.

Es gibt ein Problem mit "Adaptive quantization (temporal)". Der Fehler liegt aber scheinbar bei ffmpeg.
Hybrid/ffmpeg crasht, wenn der "-tf_level" gesetzt wird. Ob "-1","0" oder "4" ist egal. Ebenfalls crasht es, wenn "Adaptive quantization (temporal)" deaktiviert wird. Es wird dabei "-temporal-aq 0" gesetzt, was zum Absturz führt.

So lang das nicht von den ffmpeg-Dev's gefixt ist, ist nur "-temporal-aq 1" erlaubt, oder nix "".

"-temporal-aq 0" ohne "-tf_level" ->CRASH
"-temporal-aq 1" und "-tf_level" ->CRASH
"-temporal-aq 1" ->OK

Kannst du das bitte bei Hybrid korrigieren.

Gruß ggrub
Reply
#2
Hab mal eine angepasste Version kompiliert und hochgeladen: https://www.mediafire.com/file/dsyn081ck...x.zip/file

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply
#3
Danke, wird sofort getestet. Hier noch das Debug-file.
Reply
#4
Dann hoffe ich mal, dass es so passt. Smile

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply
#5
Da ist leider noch der Wurm drin. Debug-File im Anhang

Wenn ich das mit ffmpeg (HW-Transcoding) im Terminal nachstelle, funktionieren doch "-temporal-aq" mit und ohne "-tf_level".

ffmpeg -hide_banner -loglevel warning -stats -hwaccel cuda -hwaccel_output_format cuda -i "./HDR10Plus_PB_EAC3JOC.mkv" -map 0:v -map 0:a:? -c:v hevc_nvenc -preset slow -tune hq -level 0 -tier 1 -strict_gop 1 -g:v 24 -refs:v 4 -bf:v 5 -b_ref_mode -1 -cq 25.00 -rc vbr -rc-lookahead 32 -no-scenecut 1 -surfaces 0 -weighted_pred 0 -multipass 2 -spatial-aq 1 -aq-strength 8 -temporal-aq 1 -tf_level -1 -c:a ac3 -b:a 192k -af volume=1.0 "./HDR10Plus_PB_EAC3JOC.mkv"


Da muss irgendwas in Hybrid klemmen.
Reply
#6
Irgenwas beim Upload muss schiefe gelaufen sein, im Code tauch tf_levels nur 1x auf und ist auskommentiert.
habs nochmal hochgeladen: https://www.mediafire.com/file/p72ik39kx...ev.7z/file

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply
#7
Es crasht leider immer noch.
Reply
#8
2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: SubJobHandler - Starting main call: "/usr/bin/ffmpeg" -y -noautorotate -nostdin -threads 8 -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020c -color_range tv -i "/media/L-RECORD/Testfiles/HDR10Plus_PA_DTSX.mkv" -map 0:0 -an -sn -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020c -color_range tv -pix_fmt yuv420p10le -strict -1 -fps_mode passthrough -vcodec hevc_nvenc -profile:v 1 -level 0 -tier high -cq 25.00 -b:v 0k -2pass 0 -qmin 0 -qmax 51 -spatial-aq 1 -aq-strength 8 -temporal-aq 1 -tune 1 -surfaces 64 -no-scenecut 1 -refs 4 -nonref_p 1 -strict_gop 1 -g 24 -bf 5 -b_ref_mode 2 -multipass 2 -bsf:v hevc_mp4toannexb -metadata encoding_tool="Hybrid 2025.03.20.1" "/media/L-TEMP/_hybrid/HDR10Plus_PA_DTSX_1_2025-03-20@16_18_04_2010_06.265" 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: Setting m_startingJobs(2) to FALSE 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: Main call started,.. 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.2.1 (GCC) 20250207 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.100 / 61. 19.100 libavformat 61. 7.100 / 61. 7.100 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 4.100 / 10. 4.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: Input #0, matroska,webm, from '/media/L-RECORD/Testfiles/HDR10Plus_PA_DTSX.mkv': Metadata: title : A Beautiful Planet (2016) encoder : libebml v1.4.2 + libmatroska v1.6.4 creation_time : 2022-01-17T21:58:31.000000Z Duration: 00:00:50.05, start: 0.125000 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: , bitrate: 64200 kb/s Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 55323204 DURATION : 00:00:49.925000000 NUMBER_OF_FRAMES: 1197 NUMBER_OF_BYTES : 345251371 _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-01-17 21:58:31 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: dts (dca) (DTS-HD MA + DTS:X IMAX), 48000 Hz, 7.1, s32p (24 bit) (default) Metadata: title : DTS:X BPS : 9039305 DURATION : 00:00:49.920000000 NUMBER_OF_FRAMES: 4680 NUMBER_OF_BYTES : 56405264 _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-01-17 21:58:31 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: Incompatible pixel format 'yuv420p10le' for codec 'hevc_nvenc', auto-selecting format 'p010le' 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_nvenc)) 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0' 2025.03.20 - 16:18:08_Arch Linux (64bit)_2025.03.20.1 - level 9: FFmpeg output: [vf#0:0 @ 0x61be2ad07dc0] Error reinitializing filters!
Quote:Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
=> scheint als ob sich was geändert hat, aber keine Ahnung was.
(hab hier auch nur Linux in VMs laufen oder in Systemen ohne gui)
Der Aufruf selber:
"/usr/bin/ffmpeg" -y -noautorotate -nostdin -threads 8 -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020c -color_range tv -i "/media/L-RECORD/Testfiles/HDR10Plus_PA_DTSX.mkv" -map 0:0 -an -sn -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020c -color_range tv -pix_fmt yuv420p10le -strict -1 -fps_mode passthrough -vcodec hevc_nvenc -profile:v 1 -level 0 -tier high -cq 25.00 -b:v 0k -2pass 0 -qmin 0 -qmax 51 -spatial-aq 1 -aq-strength 8 -temporal-aq 1 -tune 1 -surfaces 64 -no-scenecut 1 -refs 4 -nonref_p 1 -strict_gop 1 -g 24 -bf 5 -b_ref_mode 2 -multipass 2 -bsf:v hevc_mp4toannexb -metadata encoding_tool="Hybrid 2025.03.20.1" "/media/L-TEMP/_hybrid/HDR10Plus_PA_DTSX_1_2025-03-20@16_18_04_2010_06.265"
sieht für mich spontan okay aus.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply
#9
DAS funktioniert: (ohne "-colorspace bt2020c")

ffmpeg -y -noautorotate -nostdin -threads 8  -color_primaries bt2020 -color_trc smpte2084 -color_range tv -i "/media/L-RECORD/Testfiles/HDR10Plus_PA_DTSX.mkv" -map 0:0 -an -sn -color_primaries bt2020 -color_trc smpte2084 -color_range tv  -pix_fmt yuv420p10le -strict -1 -fps_mode passthrough -vcodec hevc_nvenc -profile:v 1 -level 0 -tier high -cq 25.00 -b:v 0k -2pass 0 -qmin 0 -qmax 51 -spatial-aq 1 -aq-strength 8 -temporal-aq 1 -tune 1 -surfaces 64 -no-scenecut 1 -refs 4 -nonref_p 1 -strict_gop 1 -g 24 -bf 5 -b_ref_mode 2 -multipass 2 -bsf:v hevc_mp4toannexb -metadata encoding_tool="Hybrid 2025.03.20.1" "/media/L-TEMP/_hybrid/HDR10Plus_PA_DTSX_1_2025-03-20@16_18_04_2010_06.265"

Scheint so, das es etwas mit dem Farbraum zu tun hat.
Reply
#10
geth es mit "-colorspace bt2020nc" ?
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)