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.

hybrid target output resolution and resolution created through the script to not matc
#1
I get this error:
--------
hybrid target output resolution and resolution created through the script to not match
Target: 720x480 vs script: 708x480
--------



01: the audio is extracted.
02: here either the video job crashes (resulting in the above error), or keeps on waiting forever.

In Hybrid, I tried encoding with x264 and also with x265. Same error.
Picture crop on/off, same error.
At config-profiles, I did a reset all. Same error.
I encoded the source file with Handbrake to x265 and then used that file for Hybrid. Same error.
I have a 5 MByte source video file that reproduces the error, but the forum does not allow me to attach it... (also not as a rar file)

Hybrid version 2022.11.28.1
Reply
#2
Quote:This log is only intended for user information. It should not be part of a bug/problem report!!
-> Angry

Read the sticky, zip and share a debug output.
Share details what you do.
Ideally share the source.

Cu Selur
Reply
#3
OK, I sent you a sample
Reply
#4
Okay, but since you did not share a debug output, I don't know what you are doing in the script. Smile
When I load your source, it's detected as 720x480 with a 8x9 PAR.
Trying to reproduce the issue I did the following:
  • Start Hybrid.
  • Load your source.
  • Set 'Base->Processing->Video' to 'x265'
  • Set 'Base->Processing->Audio' to 'passthrough (all)'
  • Set an output file 'g:\Output\test.mp4'
  • Check the Vapoursynth Script  (Filtering->Show Vapoursynth Script)
    # Imports
    import vapoursynth as vs
    import os
    import ctypes
    # Loading Support Files
    Dllref = ctypes.windll.LoadLibrary("i:/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
    import sys
    # getting Vapoursynth core
    core = vs.core
    # Import scripts folder
    scriptPath = 'i:/Hybrid/64bit/vsscripts'
    sys.path.insert(0, os.path.abspath(scriptPath))
    # Loading Plugins
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DenoiseFilter/FFT3DFilter/fft3dfilter.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/scenechange.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
    # Import scripts
    import havsfunc
    # source: 'C:\Users\Selur\Desktop\ME17EURO.Title1_SHORT.mkv'
    # current color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 29.97, color matrix: 470bg, yuv luminance scale: limited, scanorder: bottom field first
    # Loading C:\Users\Selur\Desktop\ME17EURO.Title1_SHORT.mkv using LWLibavSource
    clip = core.lsmas.LWLibavSource(source="C:/Users/Selur/Desktop/ME17EURO.Title1_SHORT.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
    # Setting color matrix to 470bg.
    clip = core.std.SetFrameProps(clip, _Matrix=5)
    clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
    clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5)
    # Setting color range to TV (limited) range.
    clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
    # making sure frame rate is set to 29.970
    clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
    clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
    # setting field order to what QTGMC should assume (bottom field first)
    clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
    # Deinterlacing using QTGMC
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=False) # new fps: 29.97
    # make sure content is preceived as frame based
    clip = core.std.SetFieldBased(clip, 0)
    clip = clip[::2]
    # adjusting output color from: YUV420P8 to YUV420P10 for x265Model
    clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
    # set output frame rate to 29.97fps
    clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
    # Output
    clip.set_output()
    doesn't contain any resizing, checking the Vapoursynth Preview the output was shown as 720x480.
  • create a new job for the current settings (Base->Add to queue)
  • Start the job processing
No error occurred.
MediaInfo reported the output as:
Width                                    : 720
Width                                    : 720 pixels
Height                                   : 480
Height                                   : 480 pixels
Sampled_Width                            : 720
Sampled_Height                           : 480
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.500
Display aspect ratio                     : 3:2

Same when using DGDecNV as source filter in Vapoursynth.

I attached the output that was generated.
I also attached a version where I resized to square pixel.

=> Atm. I can't reproduce the issue here. No clue what you configured to get the issue you got.

Cu Selur
Reply
#5
Thanks Selur,

I found out that the problem started after I upgraded to the newest version.
My previous Hybrid version was several months old, I do not know what was the previous version that I used.
I have made a few hundredth of DVD encodes, so it was working OK, until I updated to the newest version (yesterday)

I uninstalled Hybrid and removed all settings.
Downloaded and installed Hybrid again, the installation went good, and settings were all cleared.
I configured the output path, and turned on 'create debug file'
But Hybrid never creates any debug file,,, strangely....

The video is now encoded correctly. No error. (but no bug file created)
Then I do the following: turn on 'picture crop' and click on 'auto crop'
Auto crop gives this result:
Short clip - less than 100 seconds detected,...
  Analyzing the whole thing,...
   -> Crop result: 706:480:6:0, after 00:00:00.236hrs

And now if I do an encode, I get the error again.


Attached Files Thumbnail(s)
   
Reply
#6
No debug output, so I try to reproduce this blind.
I reset my Hybrid.
Started it set the paths and some stuff under config->views, saved everything as defaults.
Then I:
  • Started Hybrid.
  • Loaded the source.
  • Set the output file (G:\Output\test.mp4).
  • Enabled "Config->Internals->Create debug file".
  • Enabled "Crop/Resize->Base->Picture Crop".
  • Presser "Crop/Resize->Base->Picture Crop->Auto crop".
    and got: "Crop result: 706:480:6:0, after 00:00:00.161hrs"
And there the problem is: the crop and output resolution aren't adjusted! (both are still at 720x480, while they should be at 706x480.
-> I'm looking into it.

Cu Selur
Reply
#7
Great. And also have a look at the debug file generation... I never had 1 file generated until now.
I did set the path and turned- on 'create debug file'
Reply
#8
Okay, good and bad news.
Good news: I found the issue and I think I fixed it. (also pressing auto crop a second time seems to fix it)
Bad news: upgraded my cpu today, and now compiling crashes with some internal compiler error. Sad
-> Hopefully tomorrow after work I got enough time to fine the issue and fix it.

Cu Selur
Reply
#9
CPU compiling crashes mnnnn,... nice Smile
If its only with your compiler and not with other CPU-intensive tasks, then tweak the compiler CPU options Smile
Computers are just like women: always trouble.
Reply
#10
Okay, seems like it's the RAM timings of the new system.
-> used totally conservative settings and got it working
Will send you a link to a dev version for testing in a few minutes (uploading atm.)

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)