View Full Version : Hybrid: Input -> x264/x265/Xvid/VP8/VP9
alter4
11th June 2016, 11:28
Hi There! According to http://avisynth.org.ru/fft3dfilter/fft3dfilter.html default bw and bh values are 48. As result impossible from UI set value to 64 because Hybrid assumes it's default and doesn't form any plugin parameters.
Selur
11th June 2016, 11:44
fixed locally (copied the list of available values from fft3dgpu)
alter4
11th June 2016, 11:50
Thanks, will verify in next version, but no rush, I use custom tab to form what i need.
P.S. Read the doc more carefully and found.
...
bw - block width (integer, default = 48 since v.1.2)
bh - block height (integer, default = 48 since v.1.2)
....
Version 1.2 - July 12, 2005 - changed default block sizes bw=bh=48 and overlap sizes ow=bw/3, oh=bh/3 to finally prevent grid artifactes in sharpen mode (but speed is decreased).
.....
Version 1.9.2 - 11 september 2006 - changed default bw=bh=32; added mode bt=5
In FFT3DFilter.cpp the line looks like
Version 1.9.2 - September 6, 2006 - added new mode bt=5
you can trust no one in this world. Only source code will give answer and 48 is there.
AVSValue __cdecl Create_FFT3DFilter(AVSValue args, void* user_data, IScriptEnvironment* env)
{
// Calls the constructor with the arguments provided.
float sigma1 = (float) args[1].AsFloat(2.0);
return new FFT3DFilter(args[0].AsClip(), // the 0th parameter is the source clip
sigma1, // sigma
(float) args[2].AsFloat(1.0), // beta
args[3].AsInt(0), // plane
args[4].AsInt(48), // bw -new default in v.1.2
args[5].AsInt(48), // bh -new default in v.1.2
Selur
12th June 2016, 16:12
@Easy: looked into ResampleHQ and Waifu2x. ResampleHQ will be added, Waifu2x probably not.
Waifu2xs Avisynth version (http://waifu2x-avisynth.sunnyone.org/) is way too slow to be usable, sadly there doesn't seem to be an Avisynth version which uses the GPU, there is one for Vapoursynth (http://forum.doom9.org/showthread.php?t=172390), but Vapoursynth isn't supported inside Hybrid atm.
(planned, but far away since I due simply lack the time)
MarkT
13th June 2016, 04:35
@Selur: I am using latest version 2016.05.22.1 and am trying to convert bluray titles from E: to MKV, but have hit a snag. I check "Generate" and the software will make filenames like C:\Temp\E:_Title_1.mkv which will result in failure. Somehow I can't get rid of that source drive letter. I can manually select a filename and that will work. Any help appreciated, und danke aus Bayern :)
Detected the following non-CUDA compatible cards:
Finished initialization, finished after 1.864s
grabbing usable mpls files with ffmpeg for: E:\BDMV\PLAYLIST
Looking for usable mpls files with ffmpeg,...
-> found 10 usable mpls files
Analyzing 10 Blu-ray .mpls files for .mpls-selector... (this may take a while)
Analysing 10 input files,...
grabbing mplayer title<>length mapping,...
finished grabbing mplayer title<>length mapping,...
Analyzing mpls files with tsMuxeR
analyzing: 00007
analyzing: 00051
analyzing: 00052
analyzing: 00053
analyzing: 00054
analyzing: 00055
analyzing: 00056
analyzing: 00057
analyzing: 00058
analyzing: 00059
Handling infos about the .mpls files!
-> filtered playlist count: 10
analyzing: 00007.mpls
-> E:\BDMV\PLAYLIST\00007.mpls items: 00018
grabbing video id(s) for current mpls,..
-> video ids found: 4113
checking a/v ids in ffmpeg,...: E:\BDMV\STREAM\00018.m2ts
analyzing 00018.m2ts
grabbing audio ids for: E:\BDMV\PLAYLIST\00007.mpls
analyzing video stream: 4113
analyzing video stream: 0
Container stream length mismatch!
length indicated by stream: 00:00:00.125
length indicated by container: 340.298
-> adjusting stream to container length
old frame count: 3
-> new frame count: 8159
starting auto routines for source number: 1
-> finished auto routines for source number: 1
Input is completely analysed,...
Finished subtitle extraction for 0
Creating job for current source
-> Creating jobs for source 1,...
-> Generating calls for: C:\Temp\E:_Title_1.mkv
createJobs for C:\Temp\E:_Title_1.mkv
creating attachment extraction subjobs
creating video subjobs
creating muxing subjobs
optimizing the subJobs
-> finished creating subjobs for current source
added new job with id 05_18_38_3810
Selur
13th June 2016, 04:41
Did you by any chance enable: Config->Output->Filename Generateion->Output Filename Generation->Add parent folder name as prefix ?
If you did disabling that should help. (will add a check for the next version to make sure not 'DRIVENAME:' will be used there.
MarkT
13th June 2016, 14:49
"Config->Output->Filename Generateion->Output Filename Generation->Add parent folder name as prefix" was off, I only use "Add Titleinfo ('Title_X')" and in Raw Outputname Generation everything is checked.
Looking forward to new version, thanks!
I think I have the rest figured out. My aim is a makemkv replacement that can create MKV from my blurays for Kodi. No transcoding, just pack all video, all audio, all subtitles and chapter information into a MKV that's it.
Selur
13th June 2016, 16:31
Hybrid can't circumvent any copy protected, but that aside it should work. (will send you a link to my latest dev build a bit later)
Magik Mark
5th July 2016, 01:44
Is MCTemporalDenoise part of the collection of filters?
Selur
5th July 2016, 04:25
No, it always seemed to be too much of a pain to support due to the sheer amount of parameters:
MCTemporalDenoise( clip i, int "radius", int "sigma", bool "twopass", bool "useTTmpSm", int "limit", int "limit2", bool "fixFFT3D", bool "chroma", bool "GPU", bool "MT", int "idx", bool "interlaced", int "sharp", bool "adapt", int "strength", int "SHmode", int "SHmethod", int "Slimit", int "Sovershoot", bool "Tlimit", int "Tovershoot", bool "protect", int "cutoff", int "threshold", int "maxdiff", bool "AA", bool "useEEDI2", float "reduc", int "maxd", int "AAthr", int "method", bool "deblock", bool "useQED", int "quant1", int "quant2", bool "edgeclean", int "ECrad", int "ECthr", string "ECmode", bool "stabilize", int "maxr", int "TTstr", bool "flat", float "GFthr", int "AGstr", int "bias", int "bwbh", int "owoh", int "blksize", int "overlap", bool "truemotion", bool "safe", bool "MVglobal", int "bt", int "ncpu", int "precision", int "mode", int "thSAD", int "thSAD2", int "thSCD1", int "thSCD2", int "pel", int "pelsearch", int "search", int "searchparam", int "MVsharp", int "DCT", clip "p", string "settings", bool "show", int "screenW", int "screenH" )
and the amount of dependencies to different dlls and script)
But you can still use it through the Custom-option, if you know what you are doing. Be warned, from what I read it should be the last filter used when MT mode is enabled, it seems to be a bit unstable from what I read.
Music Fan
13th July 2016, 10:45
Hi Selur,
I encoded an avs file (yv12 output) in x264 with Hybrid and MediaInfo tells the resulting mkv is in BT709, I believed it would be BT601, is it normal ? The resolution is little, 320x240.
I may not have selected the good profile, I don't know what to choose.
edit : I found, this was because of the profile I had selected, now I use bt470 (= 601).
Music Fan
14th July 2016, 09:31
Hi,
Hybrid can't open avs file containing accent (é), it works with e instead. But it is still a 2015 version.
Selur
14th July 2016, 17:04
@MusicFan: fixed locally
Jamaika
17th July 2016, 15:20
I have a problem with the codec VP9.
When you choose the option VBR and applies dropframe 100 for framerate 30000/1001 film correctly plays. Reportedly dropframe is used to all fps divided by 1001.
When you choose the option CBR and used dropframe 100 for framerate 30000/1001 in the film deleted every second frame. Strange.:confused: Film has fps=15000/1001
Selur
18th July 2016, 17:02
Do the command lines look right? Not sure if this is a bug in Hybrid or a bug in vpxenc/libvpx or the used decoder.
Jamaika
18th July 2016, 17:15
It's not urgent. Simply so it has.
It's bug in vpxenc/libvpx.
It's OK
vpxenc.exe -v --threads=4 --i420 --profile=0 --best --codec=vp9 --fps=30000/1001 --cpu-used=0 --passes=1 --pass=1 --drop-frame=100 --disable-kf --target-bitrate=6000 --end-usage=vbr --output="imagevp9_boost200.webm" -
It has fps=15000/1001
vpxenc.exe -v --threads=4 --i420 --profile=0 --best --codec=vp9 --fps=30000/1001 --cpu-used=0 --passes=1 --pass=1 --drop-frame=100 --disable-kf --target-bitrate=6000 --end-usage=cbr --gf-cbr-boost=200 --output="imagevp9_boost200.webm" -
It's OK
vpxenc.exe -v --threads=4 --i420 --profile=0 --best --codec=vp9 --fps=25000/1000 --cpu-used=0 --passes=1 --pass=1 --drop-frame=0 --disable-kf --target-bitrate=6000 --end-usage=cbr --gf-cbr-boost=200 --output="imagevp9_boost200.webm" -
Selur
18th July 2016, 17:32
It's bug in vpxenc/libvpx.
-> best report it over at their bug tracker (https://bugs.chromium.org/p/webm/issues/list)
Magik Mark
30th July 2016, 03:46
Is there a way for me to tell which filter comes first. second and last? Can I adjust this?
Selur
30th July 2016, 07:37
No, the filter order can't be changed.
Magik Mark
30th July 2016, 10:59
Is there a way to change the MT mode for each filter?
Selur
30th July 2016, 11:03
Yes, in example by manually editing the "mtMode..." entries of the FilteringModelDefaults.xml (changes require Hybrid to restart to take effect)
If you think you found better defaults for those values, let me know.
Magik Mark
30th July 2016, 14:01
I will, thanks. By the way encoding in x265 is a lot faster now compared to the previous build. It's Similar to staxrip now
Sent from my iPhone using Tapatalk
Selur
30th July 2016, 14:15
Didn't change anything -> x265 version changed probably something. :)
Magik Mark
30th July 2016, 22:47
I'm wondering where you are getting the opencl.dll? I need both x32 & x64 to try it out with madvr and staxrip thanks
Sent from my iPhone using Tapatalk
Selur
31st July 2016, 09:00
OpenCL.dll should normally come with your graphic card drivers. The one inside the avisynth plugins folder, came with KNLMeansCL (https://github.com/Khanattila/KNLMeansCL/releases/tag/v0.7.6)
Magik Mark
31st July 2016, 13:58
I have this avisynth+ plus script that is similar to interframe but a lot faster. It also uses SVP flow. Is there a way for me to use this in hybrid? I don't know how to convert it
Sent from my iPhone using Tapatalk
Selur
31st July 2016, 14:17
Problem is that the script changes the frame count and frame rate and unless Hybrid is aware of those changes Hybrid would assume wrong numbers and thus show wrong progress, calculate wrong length, size,....
So assuming the script would already run with avisynth (since avisynth+ and avisynth are quite similar that is not that far off), only way to use it would without much trouble would be to write another script which uses your script and feed that as input to Hybrid.
Other than that I can't say more about an unkown script which 'is similar to interframe but a lot faster'.
Magik Mark
31st July 2016, 20:59
Do you have the time to take a look at it? Its just short and simple. Maybe that's why it is a lot faster
Selur
1st August 2016, 04:29
Post it an I can look at it once I'm back from work.
Magik Mark
1st August 2016, 07:13
Here you go:
global threads = 27
SetFilterMTMode("DEFAULT_MT_MODE", 2)
SetFilterMTMode("SVSuper", 1)
SetFilterMTMode("SVAnalyse", 1)
SetFilterMTMode("SVSmoothFps", 1)
SetFilterMTMode("ffdShow_source", 3)
ConvertToYV12()
global crop_string = ""
global resize_string = ""
global super_params = "{pel:1, scale:{up:0}, gpu:1, full:false}"
global analyse_params = "{main:{search:{coarse:{distance:-8}, distance:0}}}"
global smoothfps_params = "{gpuid:0, rate:{num:5, den:4}, algo:23, mask:{area:50, cover:80}, scene:{blend:true, mode:0}}"
function interpolate(clip src)
{
input = crop_string=="" ? src : eval("src."+crop_string)
input = resize_string=="" ? input : eval("input."+resize_string)
super = SVSuper(input, super_params)
vectors = SVAnalyse(super, analyse_params, src=input)
smooth = SVSmoothFps(input, super, vectors, smoothfps_params, mt = threads, src = src)
return smooth
}
input = last
eval("""interpolate(input)""")
Prefetch(threads)
Selur
1st August 2016, 18:08
It's basically the same as interfame, just using different parameters. -> have you tried simply using a faster preset than the default 'Medium' ?
Magik Mark
1st August 2016, 22:46
I tried all the preset and its really slow. Is there a way to use this script instead of interframe? This is 3x faster
Groucho2004
1st August 2016, 23:10
I tried all the preset and its really slow. Is there a way to use this script instead of interframe? This is 3x faster
Run the script through avsmeter and post the results. I'm especially curious about the amount of threads that you're running with a prefetch value of 27. :eek:
Magik Mark
1st August 2016, 23:42
Changed the threads to 4. So far ok
Running fd3k -> knlmeans -> interframe = 25fps
Interframe(GPU = true, preset = faster, tuning = smooth, NewNum = 30000, NewDen = 1001, overridealgo = 23, Cores = 4)
Selur
2nd August 2016, 04:21
I could add an option to specify the 'Cores' value of Interfame. Still 27 seems a rather high value.
Magik Mark
2nd August 2016, 09:53
I'm using hybrid in a 60" display. Is there a way to make the window and fonts bigger?
Selur
2nd August 2016, 17:38
Sure, *hidden* Hybrid options,... (http://forum.selur.de/topic33-hidden-hybrid-options.html)->misc.ini options->change GUI fontsize / change GUI toolTipFontSize should help.
Magik Mark
2nd August 2016, 22:08
Thanks that work!
Is there a way to create a user defined preset for the filters? For example, in KNLMeans I would like to create a preset light, medium and strong
Magik Mark
3rd August 2016, 01:00
How do I make a shortcut on the desktop such that the preferred style always load?
-style plastique -stylesheet=black-blue_plastique.qss
Selur
3rd August 2016, 04:17
How do I make a shortcut on the desktop such that the preferred style always load?
Like mentioned under*hidden* Hybrid options,... (http://forum.selur.de/topic33-hidden-hybrid-options.html)->'Command Line Interface (CLI)', make sure to use full paths and not relative ones.
-style plastique -stylesheet "d:\Hybrid\styles\black-blue_plastique.qss"
Other than that, you add the additional parameters to the target of the shortcut. (not Hybrid specific)
Is there a way to create a user defined preset for the filters? For example, in KNLMeans I would like to create a preset light, medium and strong
No. You can save avisynth presets (which contain all avisynth settings) in the dev version, but there is no option to create custom presets for each filter.
Cu Selur
Magik Mark
3rd August 2016, 11:47
If I have the required files for qaac, do I still need to install quicktime or itunes? Where do I place the said files?
Magik Mark
3rd August 2016, 11:55
I have 3 jobs in the queue. Exited hybrid. Reopen Hybrid. How do I then edit the settings for a particular job? Let's say job 2. Changes needs to be made on some parameters or to review the chosen parameters for a particular job
Magik Mark
3rd August 2016, 13:31
Possible audio profile bug?
1. I have 2 audio profile, 256kbps aac fdk he and 320kbps aac fdk he
2. My default is saved to 256kbps
3. Encoding with the default has no problem
4. If I apply my second profile which is 320kbs (I clicked the apply profile button). It changes the required fields to 320kbps aac fdk he
5. However, when the encoding starts, it still uses the default 256kbps
6. Work around for the meantime is to change the default to 320kbps and save it
7. Load the video and start encoding
Selur
3rd August 2016, 19:08
... you can edit your posts ...
If I have the required files for qaac, do I still need to install quicktime or itunes? Where do I place the said files?
Aside from the 'Apple Application Support' Hybrid already comes with all other files,... also read http://forum.doom9.org/showthread.php?p=1646783#post1646783 and following
I have 3 jobs in the queue. Exited hybrid. Reopen Hybrid. How do I then edit the settings for a particular job? Let's say job 2. Changes needs to be made on some parameters or to review the chosen parameters for a particular job Editing existing job isn't possible in Hybrid and will probably not come in the foreseeable future.
4. If I apply my second profile which is 320kbs (I clicked the apply profile button). It changes the required fields to 320kbps aac fdk he
5. However, when the encoding starts, it still uses the default 256kbps
the question is how the audio queue entries look like,.... (far to few infos to even consider to look into this)
Magik Mark
4th August 2016, 00:55
the question is how the audio queue entries look like,.... (far to few infos to even consider to look into this)
There is only one audio. What more info do I need to provide?
Update: No matter which audio profile I choose. It keeps on using fdk when encoding starts. Any ideas?
Update: Reset to video input helps
Why doesn't it follow what's on the audio field parameter?
Selur
4th August 2016, 04:12
Create debug output level 9 which should include the loading of your source, the adjustment of the settings and the audio job creation.
Also a small step by step what you did would help to speed-up the process of reading the debug output.
My guess atm. revolves around some combination of assumed audio channel count and actual audio channel count.
+ a copy of the profile you apply would also help.
Magik Mark
4th August 2016, 23:58
Create debug output level 9 which should include the loading of your source, the adjustment of the settings and the audio job creation.
Also a small step by step what you did would help to speed-up the process of reading the debug output.
My guess atm. revolves around some combination of assumed audio channel count and actual audio channel count.
+ a copy of the profile you apply would also help.
Thank you! I was able to figure it out. I still need to get accustomed with the UI. There are steps that need to be executed first
Among the aac encoders, which do you prefer and why?
Selur
5th August 2016, 05:22
Personally I mainly use qaac, no special reason. Since I mainly use LC aac with relative high bit rates it doesn't really matter which encoder I use.
qaac > fhgaac > fdkaac > neroaacenc > faac > ffmpeg aac is probably the general order in regard of quality, but since all those encoders are rather mature afaik it shouldn't really matter.
Thank you! I was able to figure it out.
Wrong audio handling?
Magik Mark
5th August 2016, 23:37
Wrong audio handling?
When encoding the audio I need to follow certain steps in order for the parameters to stick:
Option 1
1. Main -> Audio Handling -> Custom
2. Audio -> Enter the parameters -> "+"
Option 2
1. Main -> Audio Handling -> Auto add (fist / all)
2. Audio -> Enter the parameters -> Reset to Video Input
In other GUIs encoder that I have used like, staxrip. These steps are not necessary. Just the enter the parameters and it would stick during encoding
Magik Mark
5th August 2016, 23:43
Selur,
Is it possible to have the dependencies updated too? I know they are a lot that needs to be check from time to time
Is it also possible to have 2 updates a month? It seems changes are made in the dependencies like, x265 almost daily. It's easy to just replace them but it's quite confusing for average users to change the parameters in hybrid. Program may react differently. Defaults may be altered as well
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.