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

Thread Tools Search this Thread Display Modes
Old 31st May 2019, 11:24   #1  |  Link
Registered User
Join Date: Oct 2018
Posts: 131
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:

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: /
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  []
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  []
C:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll  []
C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll  []
C:\Program Files\AviSynth 2.5\plugins\ffms2.dll  [2018-09-27]
C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll  []
C:\Program Files\AviSynth 2.5\plugins\FillMargins.dll  []
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  []
C:\Program Files\AviSynth 2.5\plugins\TTempSmooth.dll  []
C:\Program Files\AviSynth+\plugins+\BorderControl.dll  [2003-02-16]
C:\Program Files\AviSynth+\plugins+\descratch.dll  []
C:\Program Files\AviSynth+\plugins+\gradfun2db.dll  [2006-03-15]
C:\Program Files\AviSynth+\plugins+\medianblur.dll  []
C:\Program Files\AviSynth+\plugins+\repal.dll  [2008-01-26]
C:\Program Files\AviSynth+\plugins+\SmoothAdjust.dll  []
C:\Program Files\AviSynth+\plugins+\unblend.dll  [2003-06-06]
C:\Program Files\AviSynth+\plugins+\UnComb.dll  []

[CPP 2.6 Plugins (32 Bit)]
C:\Program Files\AviSynth 2.5\plugins\AddGrainC.dll  []
C:\Program Files\AviSynth 2.5\plugins\DePan.dll  []
C:\Program Files\AviSynth 2.5\plugins\DePanEstimate.dll  []
C:\Program Files\AviSynth 2.5\plugins\masktools2.dll  []
C:\Program Files\AviSynth 2.5\plugins\mvtools2.dll  []
C:\Program Files\AviSynth 2.5\plugins\nnedi3.dll  []
C:\Program Files\AviSynth 2.5\plugins\RgTools.dll  []
C:\Program Files\AviSynth 2.5\plugins\TIVTC.dll  []
C:\Program Files\AviSynth+\plugins+\AddGrainC.dll  []
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  []
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
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
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
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
Registered User
Join Date: Oct 2018
Posts: 131
The entire script is:

MPEG2Source("source.d2v", cpu=0)

Running it in avsmeter gives:

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

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
Registered User
Join Date: Jan 2014
Posts: 2,181
Originally Posted by bruno321 View Post
KeyError: u'electrangeevery'
Perhaps accidentally deleted an S:
pinterf is offline   Reply With Quote
Old 2nd June 2019, 08:10   #5  |  Link
Registered User
Join Date: Oct 2018
Posts: 131
Yeah, I saw that, it's weird, but no, the code was OK....
bruno321 is offline   Reply With Quote

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 22:32.

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