Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
6th May 2024, 19:34 | #3781 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Independent of the target audio format when reencoding.
If possible, bit depth is kept and sample rate is handled as set under Audio->Base->Audio Encoding Settings->Filtering. By default Hybrid will resample to 48kHz, but you can enable 'Keep input sample rate' (if possible this will be kept). |
7th May 2024, 06:49 | #3782 | Link |
Long-time Reader
Join Date: Jan 2017
Location: New Mexico
Posts: 11
|
Bug report for
Hybrid v2024.03.18.1: Hybrid v2024.04.06.1: Avisynth related: Avisynth > Misc > Preview > [x] Show Frame number Positions: top right This adds frame numbers to both preview and encoding (unlike what the hover help says). Avisynth Preview window always closes and reopens when using the Refresh Preview button, losing frame number, window position and size. Turnaround can be near a minute, depending on filters in use. The main Preview button does the same thing. In case it helps, the log is filled with these messages from each use of the Preview: > Couldn't find 'DePulse64' in the filter order, adding 'KillPulse32' at the end. > using 32bit AvisynthViewer: C:\Program Files\Hybrid\32bit\avsViewer.exe Avisynth Preview window does not remember window position and size. Avisynth Preview window does not remember setting: [x] Scrolling. (Which can take several seconds to enable depending on filters.) AutoAdjust > Gamma mode > hover shows TV output help, not Gamma mode help AutoAdjust > Savety (misspelled Safety) AutoAdjust (and similar auto tools) should probably go much further down the filter order by default. I can't imagine ever wanting to auto level before removing noise and artifacts. Avisynth > DeNoise > QTGMC > enabling this breaks the ability to preview and encode (frame 0 only, stops responding, etc). Avisynth > DeNoise > I can't get several filters to appear in the script: FFT3DFilter, FFT3DGPU, KNLMeansCL; but turning on mClean loads 8 dlls including FFT stuff. Vapoursynth related: (De-)Interlace/Telecine > VIVTC (Vapoursynth) > Misc > Fix combed with deinterlacer > Deinterlacer: QTGMC(preset="fast") > Preview > Error: VsFixCombed - Unknown Deinterlacer: QTGMC(preset="fast") Actually, none of the Deinterlace settings works here; not just QTGMC fast. (De-)Interlace/Telecine > VIVTC (Vapoursynth) > VFM Errors only with telecined source, I believe: > File "C:\Program Files\Hybrid\64bit\vsscripts\havsfunc.py", line 2271, in QTGMC_Interpolate > eedi3 = partial(core.eedi3m.EEDI3CL, field=field, planes=planes, mdis=EdiMaxD, device=device, **eedi3_args) > ^^^^^^^^^^^^^^^^^^^ > File "src\\cython\\vapoursynth.pyx", line 2691, in vapoursynth.Plugin.__getattr__ > AttributeError: There is no function named EEDI3CL Changing Deinterlacer to something besides one of the QTGMC options works. Same issue with TIVTC (De-)Interlace/Telecine > VIVTC (Vapoursynth) > VDecimate The Block (X/Y) fields have no effect. The script always shows a value of 16: > clip = core.vivtc.VDecimate(clip=clip, blockx=16, blocky=16)# new fps: 20.2336 Vapoursynth > Misc > Filter Order/Queue Turn on QTGMC but mClean gets bolded instead. (De-)Interlace/Telecine > VIVTC (Vapoursynth) > VFM Errors only with telecined source, I believe: > File "C:\Program Files\Hybrid\64bit\vsscripts\havsfunc.py", line 2271, in QTGMC_Interpolate > eedi3 = partial(core.eedi3m.EEDI3CL, field=field, planes=planes, mdis=EdiMaxD, device=device, **eedi3_args) > ^^^^^^^^^^^^^^^^^^^ > File "src\\cython\\vapoursynth.pyx", line 2691, in vapoursynth.Plugin.__getattr__ > AttributeError: There is no function named EEDI3CL Changing Deinterlacer to something besides one of the QTGMC options works. Same issue with TIVTC [[ UPDATE: Still seeing this after loading a progressive and turning on QTGMC in the VS filters tab (after doing a telecine job). In the deint tab, Auto-deint is set to None and [x] Overwrite... is greyed out (both checkbox and dropdown) and set to "telecine". Fiddle with the deint settings until it shows [x] Overwrite... greyed out and set to "progressive" and it works again; very slow now. And why is Auto-deint changing to match each new title load? I thought it usually just stayed at GTGMC. ]] --> Restarting Hybrid now has Auto-deint back to QTGMC, even on progressive material, and [_] Overwrite... enabled but the dropdown disabled and set to "progressive". This looks more normal and turning on the QTGMC filter in the VS tab now works fine. Other: Filter Config Save saves/sets individual Deinterlace/Telecine settings... but not which Auto Deint Handling was selected. Very weird contradiction. Don't know how to save this per job... and would prefer it saved/set with Filter Config. More of a feature add, I'm guessing: VIVTC/TIVTC/etc input and output frame counts are not correct for VFR sources (and could add a hint to manually set Change Speed [and/or fix that too]). Don't see a VFRtoCFR filter (or `ffmpeg -vsynch cfr` equivalent). Somehow this works without a CFR filter; not sure how. Oh, wait, I see AssumeFPS() in the script... but, no, that's not it since it contains the average VFR value. Anyway, I'm running into some confusion here that may or may not need work. Decimating telecined and interlaced VFR material _usually_ works well when I get the settings right... but it feels a bit like magic. FDKAAC progress bar/text does not become visible until more than half done. This 20-second delay makes me poke around to make sure the job is running. Hybrid writes APPDATA\hybrid\fontconfig\... folders in my working folder. Audio cut short during detelecine (from a source flagged as telecine -- not an issue when decimating a source flagged as TFF). When setting audio to "custom" and encoding AC-3 to AAC FDK (no other codec tested), it cuts the audio short as if the length was changed by the number of frames the detelecine drops -- that is, it cuts off the last 1/5 of the audio track (presumably because it calcs the frames at 30fps still instead of 24fps). Tested "auto add (all)" and results were the same (but file size was 3kb [out of 50mb] larger somehow). Tested "auto add (all)" with multiple input files and IT WORKS!... very weird workaround, if you can call it that (I stumbled upon this by accident). I checked the temp *.aac file and it is also short, so not a muxing problem. The completion bar for the video during detelecine (including decimating while deinterlacing) hits 100% 4/5 of they way through and keeps going to 125%. Not sure if this is intentional or not. I can't see the audio bar due to the other issue that hides it for the first 20 seconds or so, at which point it is already done with this material. 1920x1080 PAR 0.75 stretches Preview wrong way to 2560x1080 instead of 1440x1080 (and, yes, it was a weird to find such a source). I didn't try encoding it to see what happens. Instead, I forced a resize to 1440x1080 with 1:1 pixels before encode. Bookmarks are lost whenever I reset the VS Preview. I would prefer it renamed the last tempPreviewVapoursynthFile*.vpy.bookmarks file to match the new tempPreviewVapoursynthFile*.vpy on refresh to keep the bookmarks. Also, I saw you saw the report I made on DeScratch's memory leak and the new version released. Just a reminder here to put it in (it needs a new version of VS [API 4.1 minimum] and Python, etc.). Update: I see you talked him into rebuilding for API 4.0. Awesome! I like the new Artifacts tab! Suggestions: - Add a field to the VS preview that shows the current frame's time. - Add similar TV/PC presets to Vapoursynth > Color > SmoothLevels that I see on AutoAdjust. That, or at least remind us in the hover help to set Input or Output to 16/235 for TV. - Put a yes/no warning message box on Defaults > Reset All. I've made the mistake more than once now (when I get tired, I guess) thinking it will reset to my last save. Ack! Maybe add another option to reset to last save (same as a Restart, I suppose). - Under custom, add an optional interface for setting bits and/or colorspace (that adds the appropriate line), so Hybrid can track it and doesn't have to do unnecessary conversions after it. Yeah, that's a big one, I'm sure. - Don't add a Start chapter if there is a chapter less than 1 second from start. MakeMKV rarely (ever?) creates a chapter at 0.000, it seems. (Could maybe even reduce that to less than 0.1 seconds, if you want, from what I've seen so far from MakeMKV.) Thanks again for this excellent tool! Matt Last edited by juanitogan; 7th May 2024 at 07:01. |
8th May 2024, 17:56 | #3783 | Link | |||||||||||||||||||||||||||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Avisynth related:
Quote:
Quote:
Quote:
Quote:
Quote:
Try lowering the thread count and if that does not help switch to 64bit. The 'DePulse64' and 'KillPulse32' info should not cause problems. This probably happens since you haven't: properly uninstalled Hybrid with settings, migrated your settings, reset your defaults when it was mentioned in the changelog Quote:
Correct. It never did. Patches to avsViewer (https://github.com/Selur/avsViewer) are welcome. Quote:
Quote:
Quote:
Quote:
Quote:
Vapoursynth related: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
If you do not want Hybrid to deinterlaced interlaced content, configure the encoder to output interlaced content. Quote:
Other: Quote:
Quote:
all too vage. no details -> nothing to look at Quote:
Quote:
Quote:
Share proper details. (read: https://www.selur.de/support) Quote:
Quote:
Quote:
Cu Selur Ps.: send you a link to a dev version (via pm) for testing, link will be available ~24hrs. |
|||||||||||||||||||||||||||
8th May 2024, 23:25 | #3784 | Link | |||
Long-time Reader
Join Date: Jan 2017
Location: New Mexico
Posts: 11
|
Quote:
Quote:
|
|||
9th May 2024, 05:08 | #3785 | Link | ||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Quote:
Quote:
Cu Selur |
||
11th May 2024, 11:35 | #3786 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
2024.05.11.1:
*changed*
Cu Selur |
8th June 2024, 00:15 | #3787 | Link |
Registered User
Join Date: Aug 2003
Location: Germany
Posts: 183
|
I have Hybrid/20240511 and Vapoursynth installed (ArchLinux) but its not detected in 'Config/Tools/Tool Versions'. 'vspipe' is in $path. I cannot set it manually in 'Config/Tools' (there is no 'vspipe' slot). What has to be done here?
|
8th June 2024, 06:05 | #3788 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
If you start Hybrid from a terminal, what is the output?
Is Vapoursynth support enabled? Are vsPluginsPath,vsPluginsPath, vsScriptPath set inside a misc.ini ? (misc.ini can be a. next to Hybrid, b. inside ~/.hybrid c. inside .~/./config/hybrid) Can vspipe be found via 'which vspipe' ?` Cu Selur |
8th June 2024, 20:07 | #3789 | Link |
Registered User
Join Date: Aug 2003
Location: Germany
Posts: 183
|
Looks like the plugins folder doesn't get picked up so i've put it into ~/.hybrid/misc.ini.
Code:
[General] vsPluginsPath=/usr/lib/vapoursynth vsScriptPath=/home/user/ffmpeg/vapoursynth Code:
2024-06-08 20:50:29.241 Failed to evaluate the script: Python exception: module 'validate' has no attribute 'transferIsInvalid' Traceback (most recent call last): File "src/cython/vapoursynth.pyx", line 3365, in vapoursynth._vpy_evaluate File "src/cython/vapoursynth.pyx", line 3366, in vapoursynth._vpy_evaluate File "/tmp/encodingTempSynthSkript_2024-06-08@20_44_40_4310_0.vpy", line 20, in if validate.transferIsInvalid(clip): ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'validate' has no attribute 'transferIsInvalid' The script is: Code:
# Imports import vapoursynth as vs # getting Vapoursynth core import sys import os core = vs.core # Import scripts folder scriptPath = '/home/user/ffmpeg/vapoursynth' sys.path.insert(0, os.path.abspath(scriptPath)) # Import scripts import validate # Source: '/tmp/video.mp4' # Current color space: YUV420P8, bit depth: 8, resolution: 480x640, frame rate: 29.848fps, scanorder: progressive, yuv luminance scale: limited, matrix: 470bg # Loading /tmp/video.mp4 using LibavSMASHSource clip = core.lsmas.LibavSMASHSource(source="/tmp/video.mp4") frame = clip.get_frame(0) # Setting detected color matrix (470bg). clip = core.std.SetFrameProps(clip=clip, _Matrix=1) # setting color transfer (709), if it is not set. if validate.transferIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Transfer=1) # setting color primaries info (to 709), if it is not set. if validate.primariesIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Primaries=1) # setting color range to TV (limited) range. clip = core.std.SetFrameProps(clip=clip, _ColorRange=1) # making sure frame rate is set to 29.848fps clip = core.std.AssumeFPS(clip=clip, fpsnum=3731, fpsden=125) # making sure the detected scan type is set (detected: progressive) clip = core.std.SetFrameProps(clip=clip, _FieldBased=0) # progressive # adjusting color space from YUV420P8 to RGB24 for vsLevels clip = core.resize.Bicubic(clip=clip, format=vs.RGB24, matrix_in_s="470bg", range_s="limited") # adjusting color using Levels on RGB24 (8 bit) clip = core.std.Levels(clip=clip, min_in=16, max_in=235, min_out=16, max_out=100) # adjusting output color from: RGB24 to YUV420P8 for x264Model clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited") # set output frame rate to 29.848fps (progressive) clip = core.std.AssumeFPS(clip=clip, fpsnum=3731, fpsden=125) # output clip.set_output() Code:
$ ls -1 /usr/lib/vapoursynth pkgconfig bestsource.so libbestsource.so libf3kdb.so libffms2.so libvslsmashsource.so Last edited by NoX1911; 8th June 2024 at 20:11. |
9th June 2024, 05:36 | #3790 | Link | ||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Not answering my questions, isn't really helping.
On Linux Hybrid does not use the pluginsPath in the script, since Python and Vapoursynth should be installed systemwide. Quote:
Quote:
Assuming that path includes https://github.com/Selur/Vapoursynth...er/validate.py Vapoursynth should find 'transferIsInvalid'. Since Vapoursynth does not fail directly on 'import validate' the validate.py should be present. => One reason for the error could be that you got a different file named validate.py in that folder. Cu Selur |
||
9th June 2024, 11:58 | #3791 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
2024.06.09.1:
*aded*
Cu Selur |
9th June 2024, 19:12 | #3792 | Link |
Registered User
Join Date: Aug 2003
Location: Germany
Posts: 183
|
Sorry, here it is: hybrid-stdout.txt
That's from a pure AUR version that pulls the minimal version only (i didn't know that at that time). After realizing it needs more stuff (like the scripts) from the base/deps image it works properly now. 'vsPluginsPath' has nevertheless to be defined though. Hybrid doesn't look up /usr/lib/vapoursynth by itself and keeps VS disabled otherwise. Last edited by NoX1911; 9th June 2024 at 19:20. |
10th June 2024, 16:16 | #3793 | Link | ||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Quote:
Quote:
Sadly I have no clue how to make a full portable version with all the Python, scripts, filters included. iirc, if you don't set vsScriptPath, Hybrid should find the scripts in (hybrid\vsscripts). Hybrid also does try to find vsPluginsPath, but it does not look for it under ' /usr/lib/vapoursynth' but '/usr/local/lib/vapoursynth'. => all add ' /usr/lib/vapoursynth' to the default search path for the next release. Code:
'./64bit/vsfilters' doesn't exist './vsfilters' doesn't exist '/home/user/.hybrid/vsfilters' doesn't exist '/home/user/opt/vapoursynth/vsplugins' doesn't exist '/home/user/opt/vapoursynth/lib/vapoursynth/' doesn't exist '/usr/local/lib/vapoursynth' doesn't exist '/home/user/.hybrid/vsscripts' doesn't exist,.. './vsscripts' doesn't exist,.. '/usr/share/vsscripts' doesn't exist,.. '/home/user/opt/vapoursynth/vsscripts' doesn't exist,.. |
||
15th June 2024, 08:27 | #3794 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
2024.06.15.1:
*added*
Cu Selur Ps.: deinstall old version before installing this one. |
16th June 2024, 08:11 | #3795 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
2024.06.16.1:
*changed*
Cu Selur Ps.: This is a WIndows only release. |
18th August 2024, 09:28 | #3796 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
@Linux users:
Vapoursynth plugins build script is broken atm., got no time to look into it. => no new Hybrid Linux release until I find time to look into it (probably end of the year) Cu Selur Ps.: patches are welcomed https://github.com/Selur/hybrid-vapoursynth-addon/ |
29th September 2024, 10:46 | #3797 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
*2024.09.29.1:
*changed*
Cu Selur |
5th October 2024, 13:24 | #3798 | Link |
Registered User
Join Date: Nov 2004
Posts: 230
|
Just installed the last version of Hybrid, loaded a movie (regular H.264 video in .mkv container) for re-encoding, then navigated to "Filtering" section and without enabling any Vapoursynth filters, pressed the "Preview" button ========> Nothing happened, and no preview window appeared. When a couple of filters are enabled, the preview window doesn't appear either.
Is this a designed behavior? How to fix it and make the preview window appear so that I could actually see the effect of applied filters? I've attached the debug log. https://drive.filen.io/d/228e5b58-7a...Aeq7LGIrMkRXjS Last edited by Leo 69; 5th October 2024 at 14:51. |
5th October 2024, 16:35 | #3799 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,429
|
Probably a problem with BestSource, disabling "Filtering->Vapoursynth->Misc->Source->Prefer BestSource" or replacing the Hybrid\64bit\vsfilters\SourceFilter\BestSource\BestSource.dll with R6 from https://github.com/vapoursynth/bestsource/releases should help.
Would need a sample of your source to say for sure where the problem is. Cu Selur Last edited by Selur; 6th October 2024 at 04:59. |
9th October 2024, 14:44 | #3800 | Link |
Registered User
Join Date: Nov 2004
Posts: 230
|
Selur,
Thank you very much. Eventually I found that ffms2 is working better for my use case and I can see the preview window now. Could I ask you some questions? How to make this work in Hybrid? => https://github.com/JingyunLiang/RVRT Is converting from .pth to .onnx with Chainner sufficient to make this work? How to import these models into Hybrid? Are there models similar but better that these? And also does Hybrid support importing .webp or .avif image sequences as input? Also, I have say that Hybrid is the most complex and comprehensive encoding tool I've used. The amount of mental effort that was put into it by just one person is incredible. |
Thread Tools | Search this Thread |
Display Modes | |
|
|