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.

[HELP] Only 360 Frames Out of 2119 Are Being Processed
#1
I don't fully understand the issue, but I am inputting 2119 frames (png) with "Image Sequence" for processing. However, it gives 360 frames as output. I've never output in .raw with Image Sequence before, so I have no idea if I'm doing something wrong.Please, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.


Attached Files Thumbnail(s)
   
Reply
#2
Judging by the image, the frame count seems to be fine, and all images are detected.
(no clue whether the rest of the settings are as you wanted them to be)
Quote:Please, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.
Sadly, you clearly ignored this and since I'm not clairvoyant and have no idea what you are doing, my guess is you either configured Hybrid to remove the most of those frames or there is a bug.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Sorry, I forgot
1- I am using Hybrid version 2024.11.23.1
2- There was no error message, it outputted without any problem.
3- I noticed when I was checking the outputs, what I noticed when I was outputting again is that when the process reaches about 16%, the job completes


Attached Files
.7z   HybridDebugOutput.7z (Size: 15,6 KB / Downloads: 5)
Reply
#4
The used script looks fine:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import site
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
os.environ["CUDA_MODULE_LOADING"] = "LAZY"
# loading plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vs-mlrt/vstrt.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libimwri.dll")
# Import scripts
from importlib.machinery import SourceFileLoader
vsmlrt = SourceFileLoader('vsmlrt', 'C:/Program Files/Hybrid/64bit/vs-mlrt/vsmlrt.py').load_module()
import validate
# Source: 'C:/Users/renarchi/Downloads/pwnsweet_evangelion/pwnsweet_evangelion/gt/0001.png'
# Current color space: RGB24, bit depth: 8, resolution: 1000x1000, frame rate: 25fps, scanorder: progressive, yuv luminance scale: full, matrix: 709, format: PNG
# Loading C:\Users\renarchi\Downloads\pwnsweet_evangelion\pwnsweet_evangelion\gt\%04d.png using vsImageReader
clip = core.imwri.Read("C:/Users/renarchi/Downloads/pwnsweet_evangelion/pwnsweet_evangelion/gt/%04d.png", firstnum=1)
clip = core.std.Trim(clip=clip, length=2119)
frame = clip.get_frame(0)
# setting color transfer (vs.TRANSFER_BT709), if it is not set.
if validate.transferIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT709)
# setting color primaries info (to vs.PRIMARIES_BT709), if it is not set.
if validate.primariesIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT709)
# making sure frame rate is set to 25fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
from vsmlrt import Backend
# adjusting color space from RGB24 to RGBH for vsDPIRmlrtDenoise
clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, range_s="full")
# denosing using DPIR (mlrt)
clip = vsmlrt.DPIR(clip, strength=10.000, overlap=16, model=1, backend=Backend.TRT(fp16=True,device_id=0,verbose=True,use_cuda_graph=False, num_streams=1,builder_optimization_level=3,engine_folder="C:/Users/renarchi/AppData/Local/Temp"))
# adjusting output color from: RGBH to YUV444P8 for PNGModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, matrix_s="709", range_s="full", dither_type="error_diffusion")
# set output frame rate to 25fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# output
clip.set_output()

The encoding call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "D:\test\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy" - -c y4m | "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range pc -f yuv4mpegpipe -i - -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range pc -fps_mode passthrough -vcodec png -dpi 0 -dpm 0 -pred 0 -vf zscale=matrixin=709:matrix=709,format=rgb24 -pix_fmt rgb24 -metadata encoding_tool="Hybrid 2024.11.23.1" "D:\test\1_1_%04d.png"
looks fine too.
Encoding stopped without an error:
024.12.17 - 22:35:07_Windows 10 Version 22H2 (64bit)_2024.11.23.1 - level 9: FFmpeg output: [out#0/image2 @ 0000019d07308580] video:370796KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=  360 fps= 25 q=-0.0 Lsize=N/A time=00:00:14.40 bitrate=N/A speed=1.02x    

2024.12.17 - 22:35:07_Windows 10 Version 22H2 (64bit)_2024.11.23.1 - level 9: process finished with exitcode: 0 and exitStatus: 0
Does the Vapoursynth Preview show all frames?
Assuming it does, the problem is not with the script, but might be triggered by some antivirus or similar tool interfering. (Windows Defender never made problems, but suits like norton&co sometimes do.)
I would suggest, to try:
1. move your temp folder into another folder outside your users folder (currently: "C:/Users/renarchi/AppData/Local/Temp").
2. set an exemption in your virus scanner for the temp, output and Hybrid folder.
3. deactivate your antivirus scanner and similar stuff that might interact with running tools.
Also, make sure to not run HDR or other content through your gpu while processing. Sometimes this can mess with torch addons.


Quote:the process reaches about 16%, the job completes
That happened since Hybrid assumed there should be more frame coming, but since ffmpeg stopped sending them and ended without an error, Hybrid assumes everything is fine.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Quote:Does the Vapoursynth Preview show all frames?
Assuming it does, the problem is not with the script, but might be triggered by some antivirus or similar tool interfering. (Windows Defender never made problems, but suits like norton&co sometimes do.)
I would suggest, to try:
1. move your temp folder into another folder outside your users folder (currently: "C:/Users/renarchi/AppData/Local/Temp").
2. set an exemption in your virus scanner for the temp, output and Hybrid folder.
3. deactivate your antivirus scanner and similar stuff that might interact with running tools.
Also, make sure to not run HDR or other content through your gpu while processing. Sometimes this can mess with torch addons.
Moving the temp folder to a another location didn't work, also I don't use any antivirus (including Defender)
I installed version 2024.09.29.1 to test it and I noticed the following.
When I output with “DPIRDenoise” I got 360 frames and when I use “FastLineDarken” I got 391, which is quite weird. btw when I output with DPIRDenoise, the 1st frame is a black frame.


Attached Files
.7z   HybridDebugOutput.7z (Size: 13,47 KB / Downloads: 1)
Reply
#6
Quote:Does the Vapoursynth Preview show all frames?
Huh

Note, that if you change the version you also need to change the addons.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
Yes, I can see all the frames. I have no idea what it is, but the frame I named 2119 shows as 2118 in the preview.
Quote:Note, that if you change the version you also need to change the addons.
sorry i forget it
Reply
#8
okay,

What output do you get if you call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --info -c y4m "D:\test\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy"  NUL
Do all frames get processed when calling:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --progress -c y4m "D:\test\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy"  NUL
? (if they do, then something is interfering with the piping, if not something is interfering with the processing of the Vapoursynth script.)

Quote:When I output with “DPIRDenoise” I got 360 frames and when I use “FastLineDarken” I got 391, which is quite weird. btw when I output with DPIRDenoise, the 1st frame is a black frame.
That sounds like something is hindering the gpu processing,..
I assume you are at that computer and not accessing it remotely, correct? (just making sure there isn't vnc or similar running)
Got any gpu related tools running?
Is your gpu over- or underclocked? (if it is change to the stock clocking and try again)
What drivers are you using ? (I'm using NVIDIA Studio-Drivers - WHQL, version: 566.36)

Cu Selur

Ps.:
Quote:the frame I named 2119 shows as 2118 in the preview.
That is correct, since the frame count in python starts as 0 not 1 so frame 2119 is at index 2118. Smile
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
Quote:What output do you get if you call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --info -c y4m "D:\test\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy"  NUL
I don't know if I have to call it from cmd, but if I have to call it from cmd, I get the following error;
Script evaluation failed:
File reading exception:
[Errno 2] No such file or directory: 'D:\\test\\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy'

Quote:Do all frames get processed when calling:

"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --progress -c y4m "D:\test\encodingTempSynthSkript_2024-12-17@22_34_52_7510_0.vpy"  NUL
i got this;
No output file specified

Quote:That sounds like something is hindering the gpu processing,..
I assume you are at that computer and not accessing it remotely, correct? (just making sure there isn't vnc or similar running)
Got any gpu related tools running?
Is your gpu over- or underclocked? (if it is change to the stock clocking and try again)
What drivers are you using ? (I'm using NVIDIA Studio-Drivers - WHQL, version: 566.36)
Yes im on pc right now
Any tool related to gpu is not working
My gpu runs on stock settings
I use Nvidia Game Drivers - WHQL, version 566.14  (I'll need to update)
Reply
#10
Ah,.. right the Vapoursynth file got deleted at the end of the job. Sad
So those calls will not work, but since the Vapoursynth Preview worked, the decoding should not be the problem.
Like I wrote it's likely either a driver issue or something is interfering.
Also try rebooting your system and running the job again to see whether it stops at the same position.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)