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. |
12th February 2017, 23:04 | #3021 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
That's why after a lot of dev build I made a release on r2420 and compiled those plugins again and have put them into the pack. Well, but if you have handled the dll's together with avs+ core, and the problem still occurs then ... I don't know. Maybe Groucho's excellent AVSMeter tool can show you other issues with your plugins or installation. |
|
13th February 2017, 00:21 | #3022 | Link | |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
Because I have to write code that works both on Avisynth 2.6 and Avisynth+. Also need the opposite: int to string. I guess calling Clip.PixelType does the job, since VideoInfo only returns an int. |
|
13th February 2017, 01:14 | #3024 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
If env->Invoke called in your constructor then no problem, however if filter then it's constructor called at every invocation and so will
perform similar to within ScriptClip, with constructor overhead at every frame if called from within GetFrame(). No idea about .NET stuff. EDIT: But without the script parsing overhead of ScriptClip.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
13th February 2017, 06:33 | #3025 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
MysteryX
I think PixelType() is what you want, can work in avs26 and avs+ and return string
__________________
See My Avisynth Stuff |
13th February 2017, 20:41 | #3026 | Link | ||
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
It's hard to find the words but... I think "weird" is the right word.
Code:
ConvertToRGB24() CombinePlanes(planes="YUV", source_planes="RGB", pixel_type="YUV444P8") Destination format complains if you specify a non-planar format, so it would be consistent to apply the same restriction for the input format. Quote:
Quote:
Also, ConvertToYV24() on YUVA444P8 isn't converting it to YUV444P8. By the way, CombinePlanes is making things a lot easier for me. I wasn't sure about the components order in AvisynthShader... it is RGBA in 8-bit and BGRA in 16-bit. Now that's easy to deal with.
__________________
FrameRateConverter | AvisynthShader | AvsFilterNet | Natural Grounding Player with Yin Media Encoder, 432hz Player, Powerliminals Player and Audio Video Muxer Last edited by MysteryX; 13th February 2017 at 21:21. |
||
13th February 2017, 21:59 | #3027 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
I decided that packed RGB inputs will be silently converted to planar rgb variant, to make the function transparent for the user. (The same logic is already working in ExtractR,G,B,A) |
|
14th February 2017, 12:13 | #3028 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
@pinterf
I was doing some testing with AVS+ last night and noticed that some error messages thrown in case of plugin problems are still very cryptic and not helpful. For example, the same error message ("There is no function named...") is thrown if: A function from 64 bit plugin in the 32 bit auto-load directory is used *or* The runtimes for a specific plugin are not installed Tracking the error can be difficult, especially for people who are not so technically versed. There are hundreds of posts on this forum that can be traced back to missing runtimes. It's not difficult to test for bitness and missing dependencies prior to Loadplugin()/LoadLibraryEx(). If you are interested in implementing these tests you are welcome to re-use the code I already have in AVSMeter.
__________________
Groucho's Avisynth Stuff |
14th February 2017, 12:48 | #3029 | Link | |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
Plus, I just had a case of an error 0xc1 loading LSMASHSource.dll in MeGUI (using AviSynth+ as internal copy) in the German doom9/Gleitz forum, which could be solved by forcing a re-installation of L-SMASH Works in the MeGUI updater; the reason was a bit unclear, may have been a manual substitution with a 64-bit version of the DLL while MeGUI uses a 32-bit environment.
Until now, I was not even successful in discovering which category of errors this code 0xc1 belongs to. (May it be similar to Pascal's DosError?) _ P.S.: Searching for the decimal value (193): MSDN System Error Codes Quote:
Last edited by LigH; 14th February 2017 at 12:53. |
|
14th February 2017, 22:55 | #3030 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Now this is weird.
My script plays fine in MPC-HC or VirtualDub. When opening in Windows Media Player, however, it crashes. Code:
LWLibavVideoSource("video.mp4", cache=False) ConvertToShader() That error might be of something else going on within the filter as it was crashing on the constructor at this line so I commented it Code:
if (!vi.IsY() && !vi.Is420() && !vi.Is422() && !vi.Is444() && !vi.IsRGB()) env->ThrowError("ConvertToShader: Source format is not supported.");
__________________
FrameRateConverter | AvisynthShader | AvsFilterNet | Natural Grounding Player with Yin Media Encoder, 432hz Player, Powerliminals Player and Audio Video Muxer Last edited by MysteryX; 14th February 2017 at 22:57. |
16th February 2017, 18:50 | #3032 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
ConvertAudioToFloat
After applying ConvertAudioToFloat the audio still appears as 16-bit integer in VirtualDub.
Can it output PCM_FLOAT format? Tried with r2375.
__________________
VirtualDub2 |
16th February 2017, 18:54 | #3033 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
What does AVSMeter report (AVSMeter script.avs -i)?
__________________
Groucho's Avisynth Stuff |
16th February 2017, 19:07 | #3034 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
Code:
AVSMeter 2.4.9 (x86) - Copyright (c) 2012-2017, Groucho2004 Query Avisynth info... AviSynth+ 0.1 (r2375, MT, i386) (0.1.0.0) Query system info... Loading script... Number of frames: 720 Length (hh:mm:ss.ms): 00:00:30.030 Frame width: 720 Frame height: 400 Framerate: 23.976 (2500000/104271) Colorspace: BGR64 Audio channels: 6 Audio bits/sample: 32 (Float) Audio sample rate: 48000 Audio samples: 1441442
__________________
VirtualDub2 |
16th February 2017, 19:23 | #3035 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
It may be the same problem I had in AVSMeter where it did not return the correct audio bits/sample in some cases. I'm now using VideoInfo::sample_type which seems to work fine.
__________________
Groucho's Avisynth Stuff |
16th February 2017, 19:29 | #3036 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
I am looking at vfw interface where format is described by WAVEFORMATEX.
__________________
VirtualDub2 |
16th February 2017, 20:08 | #3037 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Code:
OPT_AllowFloatAudio global OPT_AllowFloatAudio = True This option enables WAVE_FORMAT_IEEE_FLOAT audio output. The default is to autoconvert Float audio to 16 bit. OPT_UseWaveExtensible global OPT_UseWaveExtensible = True This option enables WAVE_FORMAT_EXTENSIBLE audio output. The default is WAVE_FORMAT_EX. Note: The default DirectShow component for .AVS files, "AVI/WAV File Source", does not correctly implement WAVE_FORMAT_EXTENSIBLE processing, so many application may not be able to detect the audio track. There are third party DirectShow readers that do work correctly. Intermediate work files written using the AVIFile interface for later DirectShow processing will work correctly if they use the DirectShow "File Source (async)" component or equivalent. OPT_VDubPlanarHack global OPT_VDubPlanarHack = True v2.60 This option enables flipped YV24 and YV16 chroma planes. This is an hack for early versions of Virtualdub with YV24/YV16 support. OPT_dwChannelMask global OPT_dwChannelMask(int v) v2.60 This option enables you to set ChannelMask. It overrides WAVEFORMATEXTENSIBLE.dwChannelMask[[1] which is set according to this table 0x00004, // 1 -- -- Cf 0x00003, // 2 Lf Rf 0x00007, // 3 Lf Rf Cf 0x00033, // 4 Lf Rf -- -- Lr Rr 0x00037, // 5 Lf Rf Cf -- Lr Rr 0x0003F, // 5.1 Lf Rf Cf Sw Lr Rr 0x0013F, // 6.1 Lf Rf Cf Sw Lr Rr -- -- Cr 0x0063F, // 7.1 Lf Rf Cf Sw Lr Rr -- -- -- Ls Rs http://avisynth.nl/index.php/Interna...llowFloatAudio EDIT: Snippet from TwriteAVI doc Code:
See also Avisynth settings for WaveExtensible and Float output for compatible players (otherwise audio may be converted to 16bit on output from avisynth to a player). # For Float/WaveExtensible player eg MPC-HC (Else comment out below if Player not capable) Global OPT_UseWaveExtensible = (AudioChannels>2||AudioBits>16) # If more than 2 channels or > 16 bit, set true (Also Float, ie > 16 bits). Global OPT_AllowFloatAudio = (IsAudioFloat) # Must be set true to play in eg Media Player Classic - Home Cinema
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 16th February 2017 at 20:14. |
|
16th February 2017, 20:25 | #3038 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
__________________
VirtualDub2 |
18th February 2017, 23:10 | #3039 | Link |
Registered User
Join Date: Dec 2011
Posts: 354
|
Hello. I'm not always online, so I don't know the progress of AVS+ with AvsPmod. Please tell me about it.
AvsPmod from this post gives error and crashes when it's starting to launch. Code:
Traceback (most recent call last): File "run.py", line 49, in <module> File "avsp.pyo", line 18881, in main File "wx\_core.pyo", line 7981, in __init__ File "wx\_core.pyo", line 7555, in _BootstrapApp File "avsp.pyo", line 18868, in OnInit File "avsp.pyo", line 5229, in __init__ File "avsp.pyo", line 6290, in defineFilterInfo File "avsp.pyo", line 6648, in getFilterInfoFromAvisynth IndexError: string index out of range Is it how it is now? Or there is problem on my end? Last edited by bxyhxyh; 19th February 2017 at 00:12. |
18th February 2017, 23:20 | #3040 | Link | |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
Quote:
--- A while back on IRC, Line0 mentioned something about adding high bit depth support to AvsPmod but I don't know if there's been any progress made. Here's an old pull request: https://github.com/AvsPmod/AvsPmod/pull/28 |
|
|
|