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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st May 2019, 11:24   #1  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
SelectRangeEvery stopped working?

I've used this function many times but at some point it has stopped working and I don't know why. Here's the error that I get:

Traceback (most recent call last):
File "avsp.pyo", line 9043, in OnMenuVideoRefresh
File "avsp.pyo", line 13786, in ShowVideoFrame
File "avsp.pyo", line 14320, in UpdateScriptAVI
File "avsp.pyo", line 14378, in GetAutoSliderInfo
File "avsp.pyo", line 14393, in GetFilterArgMatchedInfo
File "avsp.pyo", line 1158, in GetFilterMatchedArgs
KeyError: u'electrangeevery'

My .avs is just MPEG2Source("source.d2v") and SelectRangeEvery(20000,50,50000). I'm using avisynth+.

Here's the output of avsmeter avsinfo:

Code:
C:\>avsmeter avsinfo

AVSMeter 2.8.6 (x86) - Copyright (c) 2012-2018, Groucho2004

VersionString:              AviSynth+ 0.1 (r2728, MT, i386)
VersionNumber:              2.60
File / Product version:     0.1.0.0 / 0.1.0.0
Interface Version:          5
Multi-threading support:    Yes
Avisynth.dll location:      C:\WINDOWS\system32\avisynth.dll
Avisynth.dll time stamp:    2018-07-02, 13:50:28 (UTC)
PluginDir2_5 (HKLM, x86):   C:\Program Files\AviSynth 2.5\plugins
PluginDir+   (HKLM, x86):   C:\Program Files\AviSynth+\plugins+


[C 2.0 Plugins (32 Bit)]
C:\Program Files\AviSynth 2.5\plugins\SmartDecimate.dll  [2003-09-15]
C:\Program Files\AviSynth+\plugins+\SmartDecimate.dll  [2003-09-15]

[C 2.5 Plugins (32 Bit)]
C:\Program Files\AviSynth+\plugins+\AVSInpaint.dll  [2008-02-23]

[CPP 2.5 Plugins (32 Bit)]
C:\Program Files\AviSynth 2.5\plugins\Average.dll  [2007-12-16]
C:\Program Files\AviSynth 2.5\plugins\avstp.dll  [1.0.1.0]
C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll  [2015-12-30]
C:\Program Files\AviSynth 2.5\plugins\DeDup.dll  [2004-10-08]
C:\Program Files\AviSynth 2.5\plugins\DenoiseSharpen.dll  [2005-07-06]
C:\Program Files\AviSynth 2.5\plugins\dfttest.dll  [1.9.4.0]
C:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll  [1.0.9.0]
C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll  [1.5.8.0]
C:\Program Files\AviSynth 2.5\plugins\ffms2.dll  [2018-09-27]
C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll  [2.1.1.0]
C:\Program Files\AviSynth 2.5\plugins\FillMargins.dll  [1.0.2.0]
C:\Program Files\AviSynth 2.5\plugins\gradfun2db.dll  [2006-03-15]
C:\Program Files\AviSynth 2.5\plugins\GRunT.dll  [2008-09-27]
C:\Program Files\AviSynth 2.5\plugins\Multidecimate.dll  [2016-06-02]
C:\Program Files\AviSynth 2.5\plugins\TDeint.dll  [1.1.0.0]
C:\Program Files\AviSynth 2.5\plugins\TTempSmooth.dll  [0.9.4.0]
C:\Program Files\AviSynth+\plugins+\BorderControl.dll  [2003-02-16]
C:\Program Files\AviSynth+\plugins+\descratch.dll  [1.1.0.0]
C:\Program Files\AviSynth+\plugins+\gradfun2db.dll  [2006-03-15]
C:\Program Files\AviSynth+\plugins+\medianblur.dll  [0.8.4.1]
C:\Program Files\AviSynth+\plugins+\repal.dll  [2008-01-26]
C:\Program Files\AviSynth+\plugins+\SmoothAdjust.dll  [2.6.2.0]
C:\Program Files\AviSynth+\plugins+\unblend.dll  [2003-06-06]
C:\Program Files\AviSynth+\plugins+\UnComb.dll  [0.1.0.0]

[CPP 2.6 Plugins (32 Bit)]
C:\Program Files\AviSynth 2.5\plugins\AddGrainC.dll  [1.5.2.0]
C:\Program Files\AviSynth 2.5\plugins\DePan.dll  [2.13.1.3]
C:\Program Files\AviSynth 2.5\plugins\DePanEstimate.dll  [2.10.0.2]
C:\Program Files\AviSynth 2.5\plugins\masktools2.dll  [2.2.18.0]
C:\Program Files\AviSynth 2.5\plugins\mvtools2.dll  [2.7.33.0]
C:\Program Files\AviSynth 2.5\plugins\nnedi3.dll  [0.9.4.51]
C:\Program Files\AviSynth 2.5\plugins\RgTools.dll  [0.97.0.0]
C:\Program Files\AviSynth 2.5\plugins\TIVTC.dll  [1.0.11.0]
C:\Program Files\AviSynth+\plugins+\AddGrainC.dll  [1.5.2.0]
C:\Program Files\AviSynth+\plugins+\ConvertStacked.dll  [2018-07-02]
C:\Program Files\AviSynth+\plugins+\DirectShowSource.dll  [2018-07-02]
C:\Program Files\AviSynth+\plugins+\flash3kyuu_deband.dll  [2018-05-02]
C:\Program Files\AviSynth+\plugins+\FluxSmooth.dll  [1.4.0.0]
C:\Program Files\AviSynth+\plugins+\ImageSeq.dll  [2018-07-02]
C:\Program Files\AviSynth+\plugins+\Shibatch.dll  [2018-07-02]
C:\Program Files\AviSynth+\plugins+\TimeStretch.dll  [2018-07-02]
C:\Program Files\AviSynth+\plugins+\VDubFilter.dll  [2018-07-02]

[Scripts (AVSI)]
C:\Program Files\AviSynth 2.5\plugins\Dehalo_alpha_MT2.avsi  [2018-10-06]
C:\Program Files\AviSynth 2.5\plugins\FFMS2.avsi  [2018-10-08]
C:\Program Files\AviSynth 2.5\plugins\FineDehalo.avsi  [2018-10-06]
C:\Program Files\AviSynth 2.5\plugins\FineSharp.avsi  [2018-12-09]
C:\Program Files\AviSynth 2.5\plugins\fixblendivtc.avsi  [2018-11-17]
C:\Program Files\AviSynth 2.5\plugins\LSFmod.v1.9.avsi  [2018-10-05]
C:\Program Files\AviSynth 2.5\plugins\MCTemporalDenoise.v1.4.20.avsi  [2018-10-0
5]
C:\Program Files\AviSynth 2.5\plugins\mt_expand_multi.avsi  [2018-10-06]
C:\Program Files\AviSynth 2.5\plugins\QTGMC.avsi  [2018-03-16]
C:\Program Files\AviSynth 2.5\plugins\santiag.avsi  [2018-10-05]
C:\Program Files\AviSynth 2.5\plugins\SMDegrain v.3.1.2d.avsi  [2015-07-21]
C:\Program Files\AviSynth+\plugins+\balanceborders.avsi  [2019-04-05]
C:\Program Files\AviSynth+\plugins+\colors_rgb.avsi  [2016-07-05]
C:\Program Files\AviSynth+\plugins+\delogo.avsi  [2019-01-08]
C:\Program Files\AviSynth+\plugins+\denoise321.avsi  [2019-04-11]
C:\Program Files\AviSynth+\plugins+\f3kgrain_v0.4.avsi  [2019-03-25]
C:\Program Files\AviSynth+\plugins+\fixrowbrightness.avsi  [2019-04-28]
C:\Program Files\AviSynth+\plugins+\FixRowBrightnessProtect.avsi  [2019-04-29]
C:\Program Files\AviSynth+\plugins+\GradFun2DBmod.v1.5.avsi  [2019-05-07]
C:\Program Files\AviSynth+\plugins+\Srestore.avsi  [2018-03-15]
C:\Program Files\AviSynth+\plugins+\ylevels_mt.avsi  [2019-04-28]

[Uncategorized DLLs (32 Bit)]
C:\Program Files\AviSynth 2.5\plugins\FFTW3.dll  [2004-01-30]
C:\Program Files\AviSynth 2.5\plugins\libfftw3f-3.dll  [2010-06-21]
C:\Program Files\AviSynth 2.5\plugins\msvcp71.dll  [7.10.4301.0]
C:\Program Files\AviSynth 2.5\plugins\msvcr71.dll  [7.10.6030.0]

[Uncategorized files]
C:\Program Files\AviSynth 2.5\plugins\avisynth_c.dll.bak  [2003-09-09]
C:\Program Files\AviSynth 2.5\plugins\FixBlendIVTC.avs  [2018-10-05]
C:\Program Files\AviSynth 2.5\plugins\smdegrain.txt  [2018-10-28]
C:\Program Files\AviSynth 2.5\plugins\Srestore.avsi-viejo  [2014-03-23]
C:\Program Files\AviSynth+\plugins+\bordercontrol14.cpp  [2003-02-16]
C:\Program Files\AviSynth+\plugins+\colors_rgb.txt  [2016-07-05]
C:\Program Files\AviSynth+\plugins+\fixrowbrightnessprotect.avsi-neocities  [201
9-04-28]
C:\Program Files\AviSynth+\plugins+\InpaintFunc.avs  [2019-05-17]
C:\Program Files\AviSynth+\plugins+\SmoothDeblock.avs  [2012-01-23]



[Plugin errors/warnings]
________________________________________________________________________________
__________________

'C:/Program Files/AviSynth 2.5/plugins/SmartDecimate.dll' cannot be used as a pl
ugin for AviSynth.

Note: C 2.0 Plugins are not supported by Avisynth+
________________________________________________________________________________
__________________

'C:/Program Files/AviSynth+/plugins+/SmartDecimate.dll' cannot be used as a plug
in for AviSynth.

Note: C 2.0 Plugins are not supported by Avisynth+
________________________________________________________________________________
__________________
Note: it works when I'm loading a source with ffvideosource.

Last edited by bruno321; 31st May 2019 at 11:26.
bruno321 is offline   Reply With Quote
Old 31st May 2019, 12:21   #2  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
What happens if you open/run the script in VDub/AVSMeter?

Also, post your entire script.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 31st May 2019 at 12:46.
Groucho2004 is offline   Reply With Quote
Old 1st June 2019, 09:30   #3  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
The entire script is:

MPEG2Source("source.d2v", cpu=0)
SelectRangeEvery(20000,50,50000)

Running it in avsmeter gives:

Code:
AVSMeter 2.8.6 (x86) - Copyright (c) 2012-2018, Groucho2004
AviSynth+ 0.1 (r2728, MT, i386) (0.1.0.0)

Number of frames:                  250
Length (hh:mm:ss.ms):     00:00:10.000
Frame width:                       720
Frame height:                      576
Framerate:                      25.000 (25/1)
Colorspace:                       YV12

Frames processed:               250 (0 - 249)
FPS (min | max | average):      67.23 | 265.5 | 177.7
Process memory usage (max):     33 MiB
Thread count:                   6
CPU usage (average):            51.2%

Time (elapsed):                 00:00:01.407
And now it works. I don't understand. I swear I used the same script yesterday (perhaps with some comments, but that can't hurt, can it?) and before, and it wasn't working. I'm stumped. It seems like some comments were breaking it, what the hell.
bruno321 is offline   Reply With Quote
Old 1st June 2019, 10:23   #4  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by bruno321 View Post
KeyError: u'electrangeevery'
Perhaps accidentally deleted an S:
electrangeevery
pinterf is offline   Reply With Quote
Old 2nd June 2019, 08:10   #5  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
Yeah, I saw that, it's weird, but no, the code was OK....
bruno321 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.