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



Selur's Little Message Board
[HELP] Freeze at 1st Pass (20%) - 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: [HELP] Freeze at 1st Pass (20%) (/thread-2867.html)



Freeze at 1st Pass (20%) - Ghostman - 31.08.2022

I'm encountering a problem with converting a 4K 30Fps video into 4k 60Fps 
I've been using the same settings for quite some time but this time the process does not start 

I looked at "Jobs" to see on which stage the video froze
01_audio is 100%
02_create is 100%
03_video is at 0 (Says Started but nothing happens) Task manager shows 5gb Ram usage for ffmpeg and h264 encoder but the Hybrid progress bar displays no frames per second , no progress

Here are some of the settings that I tweak

audio : passthrough 
x264 : 5.2 , bitrate 60,000
Filtering : Avisynth , FPS adjust "Interframe" , Tuning "Smooth" , Target frame rate "60" 

Note : When I enable "GPU" in frame section with the same settings listed above , the process begins but freezes in couple of seconds at 0.46%


RE: Freeze at 1st Pass (20%) - humanoid86 - 31.08.2022

Big Grin Big Grin Big Grin Big Grin

my old CPU i7-6700K - was without problems

my new CPU i7-12700 - problems started - The hybrid is not stable when I choose x264 or x265 codecs

it starts for a long time or immediately goes into freezing, then after a while:

- either frozen at some % of processing
- or processes the file in 5 seconds
- either breaks win10 blue screen comes out


RE: Freeze at 1st Pass (20%) - Selur - 31.08.2022

@humanoid86: not going into your problem, since you gave no feedback in your thread in regard to any of the potential causes that I mentioned. Also having Hybrid freeze and the system crashing with a blue screen are totally different things.

@Ghostman: Please create a debug output of the issue (read sticky on how to and what data is needed for me to know a bit more about what is happening) and share it.
If you got a new Intel cpu like humanoid86 you can read his thread too.
Also does the taskmgr show any cpu usage for x264&ffmpeg while no progress is reported? Maybe just the progress indication changed and Hybrid doesn't detect it.

Cu Selur


RE: Freeze at 1st Pass (20%) - Ghostman - 31.08.2022

(31.08.2022, 04:07)Selur Wrote: Also does the taskmgr show any cpu usage for x264&ffmpeg while no progress is reported? Maybe just the progress indication changed and Hybrid doesn't detect it.

No the CPU usage spikes to 20-30% for the first couple of seconds and then goes to 0% (for Hybrid) while RAM usage consistently stays at 5gb usage

https://drive.google.com/file/d/1_ZZu4WKQo58Ly0kpMm7cLOXzuckpU1-i/view?usp=sharing


RE: Freeze at 1st Pass (20%) - Selur - 31.08.2022

Strange, last message in the log is that the encoding was started:
"C:\Program Files\Hybrid\32bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\VazhaGV\AppData\Local\Temp\encodingTempSynthSkript_2022-08-31@04_06_51_9010.avs" -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybrid\64bit\x264.exe" --preset veryfast --pass 1 --bitrate 60000 --profile high --level 5.2 --direct auto --b-adapt 0 --sync-lookahead 36 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --aq-mode 0 --sar 1:1 --non-deterministic --range tv --stats "C:\Users\VazhaGV\AppData\Local\Temp\mav_2022-08-31@04_06_51_9010_03.stats" --demuxer raw --input-res 4096x2304 --input-csp i420 --input-range tv --input-depth 8 --fps 60/1 --output-depth 8 --output NUL -

Does the Avisynth Preview work ?

Looking at the used Avisynth script:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\svpflow1.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\svpflow2.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi")
# loading source: C:\Users\VazhaGV\Documents\rooster.mp4
# color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
LWLibavVideoSource("C:\Users\VazhaGV\DOCUME~1\rooster.mp4",cache=false,format="YUV420P8", prefer_hw=0,repeat=true)
# current resolution: 4096x2304
InterFrame(NewNum=60,NewDen=1,Tuning="Smooth",Cores=48)
# filtering
PreFetch(12)
# setting output fps to 60.000fps
AssumeFPS(60,1)
#  output: color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
return last
a. I would recommend enabling GPU support
b. What is the RAM usage of vsViewer when using the Avisynth Preview and scrolling through the source?

Cu Selur


RE: Freeze at 1st Pass (20%) - Ghostman - 31.08.2022

(31.08.2022, 15:53)Selur Wrote: Strange, last message in the log is that the encoding was started:
"C:\Program Files\Hybrid\32bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\VazhaGV\AppData\Local\Temp\encodingTempSynthSkript_2022-08-31@04_06_51_9010.avs" -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybrid\64bit\x264.exe" --preset veryfast --pass 1 --bitrate 60000 --profile high --level 5.2 --direct auto --b-adapt 0 --sync-lookahead 36 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --aq-mode 0 --sar 1:1 --non-deterministic --range tv --stats "C:\Users\VazhaGV\AppData\Local\Temp\mav_2022-08-31@04_06_51_9010_03.stats" --demuxer raw --input-res 4096x2304 --input-csp i420 --input-range tv --input-depth 8 --fps 60/1 --output-depth 8 --output NUL -

Does the Avisynth Preview work ?

Looking at the used Avisynth script:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\svpflow1.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\avisynthPlugins\svpflow2.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi")
# loading source: C:\Users\VazhaGV\Documents\rooster.mp4
# color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
LWLibavVideoSource("C:\Users\VazhaGV\DOCUME~1\rooster.mp4",cache=false,format="YUV420P8", prefer_hw=0,repeat=true)
# current resolution: 4096x2304
InterFrame(NewNum=60,NewDen=1,Tuning="Smooth",Cores=48)
# filtering
PreFetch(12)
# setting output fps to 60.000fps
AssumeFPS(60,1)
#  output: color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
return last
a. I would recommend enabling GPU support
b. What is the RAM usage of vsViewer when using the Avisynth Preview and scrolling through the source?

Cu Selur

Avisynth preview is working only for the first frame , after that I cannot jump to other frames. RAM usage stays at 2,4gb
Enabling GPU support visibly starts the encoding in Hybrid , but crashes after couple of seconds


RE: Freeze at 1st Pass (20%) - Selur - 31.08.2022

Hmm,.. Preview should work for the whole thing.
Does the Vapoursynth Preview work if you use Vapoursynth (with interframe) instead of Avisynth?
(Vapoursynth is better suited for higher core counts and resolutions.)
Do you use any specific virtual protection aside from Windows Defender?

Cu Selur


RE: Freeze at 1st Pass (20%) - Ghostman - 31.08.2022

(31.08.2022, 16:22)Selur Wrote: Hmm,.. Preview should work for the whole thing.
Does the Vapoursynth Preview work if you use Vapoursynth (with interframe) instead of Avisynth?
(Vapoursynth is better suited for higher core counts and resolutions.)
Do you use any specific virtual protection aside from Windows Defender?

Cu Selur

Vapoursynth preview seems to be working
I've recently downloaded Advanced SystemCare , other than that , I dont use any for now


RE: Freeze at 1st Pass (20%) - Selur - 31.08.2022

Never heard of 'Advanced System Care' -> try whether disabling (assuming it runs in the background) helps.
If Vapoursynth works, try whether encoding with it works.
Might be an issue with the Avisynth SVP libraries and the resolution.
Hybrid does use an older version of those libraries.
Quote:SVPflow libs require a SVP Manager running (Windows and macOS only), otherwise you'll see a red rectangle around the video frame.
see: https://forum.doom9.org/showthread.php?t=181379 and https://www.svp-team.com/wiki/Manual:SVPflow#Downloads

Cu Selur


RE: Freeze at 1st Pass (20%) - Ghostman - 31.08.2022

(31.08.2022, 17:08)Selur Wrote: Never heard of 'Advanced System Care'  -> try whether disabling (assuming it runs in the background) helps.
If Vapoursynth works, try whether encoding with it works.
Might be an issue with the Avisynth  SVP libraries and the resolution.
Hybrid does use an older version of those libraries.
Quote:SVPflow libs require a SVP Manager running (Windows and macOS only), otherwise you'll see a red rectangle around the video frame.
see: https://forum.doom9.org/showthread.php?t=181379 and https://www.svp-team.com/wiki/Manual:SVPflow#Downloads

Cu Selur

Vapoursynth got the job done for me.