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. |
16th March 2015, 19:47 | #1001 | Link |
Registered User
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
|
I hate to say this but 4K video playback is unusable.
Playback is choppy. Some frames are distorted with green color. It's almost impossible to catch it and make a screenshot so I'm not sure if the whole frame is green or just a part of it. And it crashes at about 2.5G of used memory. Needless to say latest "official" AVS MT build is working good with the same script and the same amount of memory.
__________________
SVPflow motion interpolation Last edited by chainik_svp; 16th March 2015 at 20:01. |
16th March 2015, 21:06 | #1002 | Link |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
Okay guys, Murphy never sleeps, and I managed to inadvertently break the symbolic names (MT_NICE_FILTER, MT_MULTI_INSTANCE, MT_SERIALIZED) of the MT modes last minute before release. So if you used these names with r1778, they didn't work correctly. I just published r1779 which corrects this fuckup of mine. Please be sure to pull r1779 if you are experimenting with MT, because this fix is kind of vital for it.
__________________
AviSynth+ |
16th March 2015, 22:24 | #1003 | Link |
Registered User
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
|
So if you used these names
I did not.
__________________
SVPflow motion interpolation |
16th March 2015, 22:59 | #1004 | Link | |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
Quote:
I just tried to use AVS+ with SVP, and I got SVP working with Avs-MT. The current SVP though doesn't allow me to use Avs+ for any kind of debugging or trials, so I'll need support from your side too. Since this conversions might take long and I don't want SVP to hijack this forum thread (for most people Avs+ r1778/9 works just fine), I invite you to continue bringing SVP and AVS+ closer together in this bug report.
__________________
AviSynth+ |
|
16th March 2015, 23:11 | #1005 | Link |
Registered User
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
|
ultim
Since this conversions might take long and I don't want SVP to hijack this forum thread (for most people Avs+ r1778/9 works just fine), I invite you to continue bringing SVP and AVS+ closer together in this bug report. OK, I agree. BUT keep in mind that SVP doesn't do anything "special", it's just a usual AVS filter. So any issue that's looking like "SVP-only" or "ffdshow-only" may, in fact, highlight some more deep problems inside the frame server. Or may not
__________________
SVPflow motion interpolation |
17th March 2015, 18:44 | #1006 | Link |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
__________________
AviSynth+ |
17th March 2015, 22:29 | #1007 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
This also happens when I load the script in MPC (crashes when MPC is closed). This happens only with r1779, no other Avisynth version. Edit: Fixed it in AVSMeter. It seems to be some race condition when releasing the IScriptenvironment and/or unloading avisynth.dll. I tested some other programs: Working fine: MPC-HC VirtualDub AVSPMod Crashing when closing: MPC 6.4.9.1 Last edited by Groucho2004; 17th March 2015 at 22:53. Reason: r1778 -> r1779 |
|
18th March 2015, 07:45 | #1008 | Link | |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
Quote:
__________________
AviSynth+ |
|
18th March 2015, 12:26 | #1009 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Since v1.9.1 I'm using a worker thread to determine a suitable frame interval for measurements. In that thread, the script environment is created and released. I changed the threading code a bit to prevent sync issues. I did a lot of tests and it seems fine now. |
|
18th March 2015, 23:01 | #1010 | Link | |
Registered User
Join Date: Apr 2008
Posts: 1,106
|
Quote:
1) Audio to go out of sync depending on the buffer ahead used, or 2) after a seek occurs an issue that causes a frame from ~4 minutes in the past to seemingly appear for a split second, where do we turn? Do we have any ffdshow developers to look into these from ffdshow point of view. If not is there any way to run these avisynth scripts outside of ffdshow in the foreseeable future as my only HTPC issues over the past few months seem to all exist around the ffdshow buffer weirdness causing various side effects like the ones mentioned above and probably don't indicate issues in avisynth+ or SVP? |
|
19th March 2015, 09:49 | #1011 | Link |
Registered User
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
|
mark0077, your issues are completely different And the 2nd one is easily fixable with "turn off on seek" SVP option.
__________________
SVPflow motion interpolation |
19th March 2015, 11:43 | #1012 | Link |
Registered User
Join Date: Apr 2008
Posts: 1,106
|
I understand SVP has workarounds for some of these issues, but they are not fixes. I use a custom InterFrame script, without the SVP tray icon, but the question still stands, where theres issues in ffdshow, do we continue to try to workaround them or is there a solution to get away from ffdshow in the foreseeable future or are workarounds the only option?
|
19th March 2015, 12:38 | #1013 | Link | ||
Registered User
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
|
There're no reliable ways for Avisynth to know that the seek occurs so it can't reset internal frame buffers.
Quote:
Quote:
__________________
SVPflow motion interpolation |
||
19th March 2015, 15:14 | #1014 | Link | |
Registered User
Join Date: Apr 2008
Posts: 1,106
|
Quote:
Also ignoring seeks, the other issues with ffdshow buffers that have been highlighted. My question still remains, is ffdshow still the way forward if theres no developers interested in fixing these, or is there a way to run these scripts outside of ffdshow in the future? Last edited by mark0077; 19th March 2015 at 15:33. |
|
19th March 2015, 16:21 | #1015 | Link |
AVS+ Dev
Join Date: Aug 2013
Posts: 359
|
AviSynth doesn't need to know about seeks to operate correctly in every case. For every frame requested, seek or not, each filter also re-requests every frame they need to calculate the new output. Possible inefficienies caused by this schema are solved by the use of caches along the pipeline (which are implemented in a way to also not need information about seeks). If anything breaks on a seek, that is either a limitation of the source filter (which in SVP's case would be ffdshow), or a bug in one of the filters.
__________________
AviSynth+ |
19th March 2015, 18:22 | #1016 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Some interesting test results with QTGMC(). This is a single-threaded test although mvtools runs multi-threaded internally (avstp.dll).
Script (source clip is 720x576, interlaced): Code:
SetMemoryMax(1024) LoadPlugin("E:\Apps\VideoTools\DGDec\DGDecode.dll") Import("E:\Apps\VideoTools\AVSPlugins\qtgmc.avsi") MPEG2Source("F:\DVD_Interlaced\test.d2v", idct = 4) AssumeTFF() QTGMC(Preset="Slow") Trim(1000, 1999) Code:
FPS (min | max | average): 4.429 | 176.3 | 30.95 Thread count: 8 CPU usage (average): 36% Memory usage (phys | virt): 1036 | 1070 MB Time (elapsed): 00:00:32.314 Code:
FPS (min | max | average): 3.431 | 163.6 | 28.03 Thread count: 16 CPU usage (average): 35% Memory usage (phys | virt): 183 | 210 MB Time (elapsed): 00:00:35.671 |
19th March 2015, 19:18 | #1017 | Link |
Registered User
Join Date: Jan 2007
Posts: 530
|
I've been testing with AVS+/MT mode w/QTGMC. So far, I haven't checked numbers against SETs 2.6RC1, but fwiw, in 64bit version, AVS+ will complete an encode that fails with the older (JoshyD?) 64-bit build.
My very basic script: Code:
Import("c:\temp\job1\setfiltermtmodes.avsi") MPEG2Source("C:\Temp\job1\movie.d2v") ChangeFPS(last,last,true) AssumeTFF() QTGMC( Preset="Faster", FPSDivisor=2, EdiThreads=6) %RESIZE% Prefetch(4)
__________________
Win7Ult || RX560/4G || Ryzen 5 |
21st March 2015, 18:13 | #1018 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,799
|
I'm unable to run a test using AVSMeter. At some point, the memory consumption seems to jump up and processing either slows down dramatically or stalls completely. It doesn't seem to matter how many threads I use, I've tested 2-4 as I have a quad-core i5.
If I disable a rather complex function I use to process the video (denoise etc.), the script runs through the test normally.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
21st March 2015, 18:32 | #1019 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
- No script - No mention of whether you used 64 or 32 Bit AVS+ - No mention of whether you used 64 or 32 Bit OS |
|
21st March 2015, 18:55 | #1020 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,799
|
Sorry, I definitely should have been more clear. I would post the script but it would require me to post all the helper functions as well and they are a real mess I'm on a 64-bit OS but using 32-bit AVS+ since the external plugins I need (MVTools etc.) are not ported.
I was thinking more on the lines of finding out if there are possible problems in memory handling as ultim said he's looking to make the cache handling more robust. Then again, I seem to get the script to stall even with SetMemoryMax(256) and two threads. So what I'm going to do is to start stripping down my helper function to smaller pieces and see which is the one that breaks things
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
Thread Tools | Search this Thread |
Display Modes | |
|
|