1 (edited by DemonSapde 14-04-2013 11:14:46)

Topic: Error with override.js/flickering text

Hello,

I am receiving the following error when using the modified(?) override.js from (http://www.svp-team.com/forum/viewtopic.php?id=1361) . Says something about an invalid number of lines. I am using MPC with madVR and have changed the video profiles to anime settings according to your wiki.

12:45:19.180; Start: SVPMgr 3.1.4 (901) starts...
12:45:19.180; AppDataPath: C:\ProgramData (ANSI)
12:45:19.180; Start: read settings file settings.ini
12:45:19.180; Start: load language file - English. Duration: 18 ms
12:45:19.198; Start: check launched instance of SVP-manager. Duration: 16 ms
12:45:19.214; Start: check Avisynth installed
12:45:19.214; Start: clear Logs folder
12:45:19.214; Start: performance graphs prepare
12:45:19.214; Start: SVPMgr folders prepare. Duration: 15 ms
12:45:19.229; Start: read settings file SVPMgr.ini
12:45:19.229; Start: GPUs settings detection. Duration: 16 ms
12:45:19.245; Start: detected graphics (OpenCL) adapter: 11. GeForce GTX 460 (940)
12:45:19.245; Start: monitors settings detection. Duration: 877 ms
12:45:20.122; Start: detected monitor: 1680 x 1050 @ 59.954
12:45:20.122; Start: disable LNG-file write when UAC enabled
12:45:20.122; Start: change SVP-manager priority. Duration: 16 ms
12:45:20.138; Start: register hotkeys
12:45:20.138; Start: get versions of modules used
ffdshow.ax/avisynth.dll: 1.3.4500.0/2.5.8.6
svpflow1/2.dll: 1.3.2.0/1.4.1.0
svpflow_cpu/gpu.dll: 1.7.2.0/1.7.6.0
12:45:20.138; Start: refresh autostart state in registry
12:45:20.138; Start: some more work with registry. Duration: 16 ms
12:45:20.154; Start: create menu
12:45:20.154; Start: update settings file settings.ini. Duration: 15 ms
12:45:20.169; Start: update monitor settings. Duration: 16 ms
12:45:20.185; Start: prepare "About the program" window. Duration: 15 ms
12:45:20.200; Start: enable ffdShow waiting mode
12:45:20.200; RefreshSVP
12:45:20.200; ===== Waiting for ffdshow video
12:45:20.200; Start: prepare to work is complete
12:45:29.852; ===== Detected playback with ffdShow
12:45:29.856; GetDimensionAndFPS_fromOSD start. Duration: 306 ms
12:45:30.162; GetDimensionAndFPS_fromOSD result: 1280x720 23.976 1/1
12:45:30.185; T1T: begin
12:45:30.189; T1T: GetAllMediaParams. Duration: 32 ms
12:45:30.221; T1T: SettingsPrepare. Duration: 8 ms
12:45:30.229; T1T: Preparing smooth playback.... Duration: 6 ms
12:45:30.235; T1T: WriteAllMediaParamsToIni
12:45:30.238; SVPMgr: main "C:\ProgramData\SVP 3.1\" 1280 720 23.976 1280 720 5 2. Duration: 85 ms
12:45:30.323; ===== Playback
23.976 * (5 : 2) = 59.94 fps
12:45:30.326; SetPriorityPlayer: 2. Duration: 387 ms
12:45:30.713; Error: Error preparing smooth playback! Script error:
SVAnalyse: non-valid number of levels (6)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 37)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 53)
(ffdshow_filter_avisynth_script, line 4)

12:46:13.815; SVPMgr: encode "C:\ProgramData\SVP 3.1\" 1280 720 23.976 1280 720 5 2

I tried using it because I get weird flickering with on-screen text when the background moves, looks like the frames SVP creates "bend" the text in a way that fits the background. Sadly, I can't provide a screenshot because when I pause the video, it looks normal.

Minor problems aside, thank you for all you hard work so far smile

EDIT: The problem does not appear when I reset the video profiles, so the problem would have to be one of the values changed when using Anime settings?

Re: Error with override.js/flickering text

DemonSapde

Error: Error preparing smooth playback! Script error:
SVAnalyse: non-valid number of levels (6)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 37)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 53)
(ffdshow_filter_avisynth_script, line 4)

Number of levels is too big for this resolution: 1280x720 and used block size.
Just reduce number of levels in override.js, parameter analyse.main.levels or write double slash (//) before this line.

Re: Error with override.js/flickering text

MAG79 wrote:

DemonSapde

Error: Error preparing smooth playback! Script error:
SVAnalyse: non-valid number of levels (6)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 37)
(C:\ProgramData\SVP 3.1\AVS\ffdshow.avs, line 53)
(ffdshow_filter_avisynth_script, line 4)

Number of levels is too big for this resolution: 1280x720 and used block size.
Just reduce number of levels in override.js, parameter analyse.main.levels or write double slash (//) before this line.

5 did the job, thank you. smile Now, is there anything I can do about the flickering text? Anime settings didn't help with that issue...

Re: Error with override.js/flickering text

DemonSapde
is there anything I can do about the flickering text?

I think You can try. Please give me a short peace of video with such text.
And show your script: SVP tray menu - Information - Last used AVS script.

5 (edited by DemonSapde 14-04-2013 12:23:09)

Re: Error with override.js/flickering text

MAG79 wrote:

DemonSapde
is there anything I can do about the flickering text?

I think You can try. Please give me a short peace of video with such text.
And show your script: SVP tray menu - Information - Last used AVS script.

AVS Script:

# This script was generated by SmoothVideo Project (SVP) Manager.
# Check http://www.svp-team.com for more details.

SetMemoryMax(1024)

global svp_scheduler=true
global threads=7
global svp_cache_fwd=threads+2

LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow2.dll")

SetMTMode(3,threads)
ffdShow_source()
SetMTMode(2)

global crop_params=""
global resize_string=""
global super_params="{scale:{up:0,down:1},gpu:1,rc:true}"
global analyse_params="{main:{search:{coarse:{distance:2,bad:{sad:50,range:24},type:4,trymany:true},type:2,distance:2,sort:false},penalty:{lambda:4,plevel:1.4,pnew:48,pglobal:0,pzero:48,pnbour:48,prev:48},levels:5},refine:[{thsad:250}]}"
global smoothfps_params="{rate:{num:5,den:2},algo:13,scene:{limits:{m1:16000,m2:3600,scene:5200,zero:400,blocks:3},luma:1,blend:false}}"

global demo_mode=0
stereo_type=0

########## BEGIN OF MSMoothFps.avs ##########
# This file is a part of SmoothVideo Project (SVP) 3.1.3
# This is NOT the full AVS script, all used variables are defined via
# JavaScript code that generates the full script text.

function interpolate(clip src)
{
    input = crop_params=="" ? src : eval("src.crop("+crop_params+")")
    input = resize_string=="" ? input : eval("input."+resize_string)

    super=SVSuper(input, super_params)
    vectors=SVAnalyse(super, analyse_params, src=input)
    smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, url="www.svp-team.com")

    return demo_mode==0 ? smooth : demo(input,smooth)
}

input=last

    stereo_type==0 ? eval(""" interpolate(input)
""") :     stereo_type==1 || stereo_type==3 ? eval("""
        lf = interpolate(input.crop(0,0,input.width/2,0))
        rf = interpolate(input.crop(input.width/2,0,0,0))
        StackHorizontal(lf, rf)
""") :     stereo_type==2 || stereo_type==4  ? Eval("""
        lf = interpolate(input.crop(0,0,0,input.height/2))
        rf = interpolate(input.crop(0,input.height/2,0,0))
        StackVertical(lf, rf)""") : input

########### END OF MSMoothFps.avs ###########
distributor()

For some reason, mkvextract won't let me split the .mkv correctly, so I can't cut the video. I can provide a screenshot, though:
http://s1.directupload.net/file/d/3225/7g5hkcmp_jpg.htm

The text is in a weird color, I think that's why it gets confused with other objects. Here, the problem arises when the camera pans over the clouds or the sea with fast movements. The image is restored correctly very quickly, but it's still noticeable.

Thanks for your help so far!

Re: Error with override.js/flickering text

DemonSapde

The text is in a weird color, I think that's why it gets confused with other objects. Here, the problem arises when the camera pans over the clouds or the sea with fast movements. The image is restored correctly very quickly, but it's still noticeable.

You are right.

I see low contrast at text and same colors at text and at background object under text. It can be possible cause of text flickering.

Ok. Can you give me two screenshots of consecutive frames. Then I will found good settings for that frames.
Turn off SVP. Pause while playing. Take screenshot. Ctrl-right arrow (moves to next frame). Take srceenshot again.

Re: Error with override.js/flickering text

MAG79 wrote:

DemonSapde

The text is in a weird color, I think that's why it gets confused with other objects. Here, the problem arises when the camera pans over the clouds or the sea with fast movements. The image is restored correctly very quickly, but it's still noticeable.

You are right.

I see low contrast at text and same colors at text and at background object under text. It can be possible cause of text flickering.

Ok. Can you give me two screenshots of consecutive frames. Then I will found good settings for that frames.
Turn off SVP. Pause while playing. Take screenshot. Ctrl-right arrow (moves to next frame). Take srceenshot again.

Like this? I took more, as I was not sure which would be most useful.

http://s14.directupload.net/file/d/3225 … n3_jpg.htm
http://s7.directupload.net/file/d/3225/5sixvp5w_jpg.htm
http://s14.directupload.net/file/d/3225 … w5_jpg.htm
http://s1.directupload.net/file/d/3225/xor32t86_jpg.htm
http://s14.directupload.net/file/d/3225 … u6_jpg.htm
http://s7.directupload.net/file/d/3225/d68ivk5v_jpg.htm
http://s7.directupload.net/file/d/3225/tecvpcuj_jpg.htm

Re: Error with override.js/flickering text

,levels:5}
Возможно разрешение входящего видео слишком мало . Либо используются крупные блоки .

Re: Error with override.js/flickering text

DemonSapde
Good. Thank you for screenshots. Right that I need. 1280x720 - source resolution. Perfect!
Give me one day.

gaunt said:

Perhaps input resolution of video is too low. Or large blocks used.

He is right too. I will ask him what he thinking about good settings for that video.

Re: Error with override.js/flickering text

MAG79 wrote:

DemonSapde
Good. Thank you for screenshots. Right that I need. 1280x720 - source resolution. Perfect!
Give me one day.

gaunt said:

Perhaps input resolution of video is too low. Or large blocks used.

He is right too. I will ask him what he thinking about good settings for that video.

Alright, thank you very much for looking into this!

Re: Error with override.js/flickering text

First solution is to use area masking but not standard values. For this you need to point in override.js:

smooth.mask.area            = 300;
smooth.mask.area_sharp      = 2.0;

This change will reduce smoothness at problem areas with flickering artifacts, but text will become much stable. Some ghosts of letters are still present but on full real speed they are not so noticeable.

http://www.svp-team.com/forum/misc.php?item=2496

Sample at 10 fps (6х slower than real-time)

Post's attachments

CustomAreaMasking.gif, 765.46 kb, 376 x 144
CustomAreaMasking.gif 765.46 kb, 451 downloads since 2013-04-15 

Re: Error with override.js/flickering text

MAG79 wrote:

First solution is to use area masking but not standard values. For this you need to point in override.js:

smooth.mask.area            = 300;
smooth.mask.area_sharp      = 2.0;

This change will reduce smoothness at problem areas with flickering artifacts, but text will become much stable. Some ghosts of letters are still present but on full real speed they are not so noticeable.

http://www.svp-team.com/forum/misc.php?item=2496

Sample at 10 fps (6х slower than real-time)

Makes things a lot better, but only as long as I use default video profiles. With anime settings, the text bends and flickers even more than before o.O

Re: Error with override.js/flickering text

DemonSapde
What you mean under "anime settings"?

Re: Error with override.js/flickering text

http://www.svp-team.com/wiki/Watching_anime

Re: Error with override.js/flickering text

DemonSapde

http://www.svp-team.com/w/images/6/68/Anime-4.png

Do you use these anime settings with custom override.js?

Re: Error with override.js/flickering text

MAG79 wrote:

DemonSapde

Do you use these anime settings with custom override.js?

Yes, the one from the thread I mentioned in the first post. I also changed the following lines according to your help:

smooth.mask.area            = 300;
smooth.mask.area_sharp      = 2.0;

With that, everything looks fine as long as I use default video profiles. When using the anime settings from http://www.svp-team.com/wiki/Watching_anime, it looks worse for some reason (even more flickering in some areas).

Don't get too worked up over this, I can live with a bit of flickering text as long as the rest is fine smile SVP really is amazing anyway, and you solved my most important problem already (getting an error about invalid number of lines) smile

Re: Error with override.js/flickering text

this override.js file meant to work with 11/21/13 shader and 8x8 blocks not 32x32 lol. SVP doesnt work well with anime(just watch 10bit 1080p) and interlaced(watch @50,60 Hz)