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. |
18th May 2015, 12:32 | #1142 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
I tried using avisynth plus header for compiling a plugin. Found that I also require <avs/capi.h>, <avs/config.h> and <avs/types.h> It says Refactor public header for capi and types while on config it reads required for architecture detection in cross compiling. This requirement was not mentioned in what headers to use write up.
For FFT I use a dll of FFTW. It requires the number of threads being used to be specified . How do I get this information? |
19th May 2015, 05:30 | #1143 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
AviSynth+ now does what most other projects do in regard to its headers: the user is supposed to install the headers to the system (or compiler path, since Windows development understands that concept differently), and then add the header path when their plugin or program is being built. Not that users/plugins can't include local copies, but doing that is not recommended anymore (yes, sometimes it's inevitable*) and is one of those 'here be dragons' moments as far as support goes.
*in FFmpeg, for example, to relieve the user of the burden of tracking the headers down themselves In other words,
You're not supposed to 'use' the headers in the avs/ subdir, you're only supposed to use avisynth{_c}.h. But avisynth{_c}.h needs those headers, which should have been installed properly anyway. But what you're referring to are simply the commit log entries for the latest changes made to the headers in the avs/ subdir. Those log messages have no bearing on this topic whatsoever. Last edited by qyot27; 19th May 2015 at 05:35. |
19th May 2015, 12:12 | #1144 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Thanks. I will now keep a separate include directory for avisynth.h .
I am still in dark about how to get number of threads running.For FFT, I use a dll of FFTW.org. It requires the number of threads being used to be specified . How do I get this information? |
19th May 2015, 13:56 | #1145 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Call GetLogicalProcessorInformation or GetProcessAffinityMask to know the number of threads on your system (count the bits set). But if the size of your FFT is small, just set one thread.
In avstp I use this function: Code:
int ThreadMgr::count_nbr_logical_proc () { int nbr_proc = 0; ::DWORD_PTR mask_proc; ::DWORD_PTR mask_sys; const ::HANDLE proc_hnd = ::GetCurrentProcess (); const ::BOOL res = ::GetProcessAffinityMask (proc_hnd, &mask_proc, &mask_sys); if (res != 0) { if (mask_proc == 0 && mask_sys == 0) { nbr_proc = 64; } else { while (mask_proc != 0) { nbr_proc += int (mask_proc) & 1; mask_proc >>= 1; } } } if (nbr_proc <= 0) { nbr_proc = 1; } return (nbr_proc); }
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding Last edited by cretindesalpes; 19th May 2015 at 14:17. |
19th May 2015, 15:49 | #1146 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I hope I am allowed to re-post feedback luigizaninoni posted in the StaxRip x64 thread. Personally I don't have experimented much with MT but I'm very sure the single most popular use case for MT is QTGMC so trying to make QTGMC work well would make much sense.
Quote:
|
|
20th May 2015, 11:40 | #1147 | Link | |
Registered User
Join Date: Apr 2015
Posts: 163
|
Quote:
For issue n.2, what would you advise instead of FFvideosource ? Anyway, crashes occur also in Avisynth+ 64bit, so it isn't a 32-bit problem. |
|
20th May 2015, 13:48 | #1148 | Link | |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Quote:
I thought that the user script is evaluated by avs+ and number of threads for any processor is decided upon. This ofcourse will be limited by the cpu on which it is run. In vapoursynth there is a call to get this number. In avisynth+ is it possible to get this value? |
|
20th May 2015, 14:45 | #1149 | Link | |
Registered User
Join Date: Apr 2015
Posts: 163
|
Quote:
|
|
20th May 2015, 17:24 | #1150 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
FFVideoSource and LWLibavVideoSource are both based on ffmpeg so you might see the same problems, DGSource might also cause problems and maybe decoding to a loss less codec is a alternative, I've seen people do it before but don't know exactly why. Either way dealing with 1080p or even 4K will push things to the limit. |
|
20th May 2015, 18:01 | #1151 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
Last edited by videoh; 20th May 2015 at 18:05. |
|
20th May 2015, 18:52 | #1152 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Stax
Code:
### Filled in by DGIndex when using as DGIndex Template VideoFileName ="__vid__" AudioFileName =("__aud__") AudioDelay =Value("__del__")
__________________
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 ??? |
20th May 2015, 19:31 | #1153 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
|
|
20th May 2015, 22:35 | #1155 | Link | ||
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
http://pastebin.com/TepyAc3G What's StaxRip does here is just muxing without any encoding and as you can see the delay is accounted in the mkvmerge command line. I can upload the file no problem but for what do you need it? DGAVCDec is discontinued, right? Quote:
|
||
20th May 2015, 22:38 | #1156 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Please upload the file. I need it to check your claim that one of my tools is failing. I also want to test it against DGDecNV and DGDecIM. Most of the code is the same. Sure, DGAVCDec may be faulty and won't be updated. But I need to check that my other tools are not affected the same way. I helped you with the progress reporting technology, can't you help me by uploading the file?
Quote:
Last edited by videoh; 20th May 2015 at 23:35. |
|
21st May 2015, 00:13 | #1157 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
|
|
21st May 2015, 00:33 | #1158 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
I think you are overreacting, but have it your way.
Have you tried reversing the sign on your --sync parameter? It may not work the same as DelayAudio(). I could troubleshoot it if I had your file. All DG tools users would potentially benefit. Good luck with your projects, and if you ever want me to look into your issues, just let me know. Last edited by videoh; 21st May 2015 at 11:46. |
21st May 2015, 23:43 | #1160 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
That is how it seemed to me too.
__________________
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 ??? |
Thread Tools | Search this Thread |
Display Modes | |
|
|