Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Multiple Panes, Getting multiple "before/after" panes
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
RichYard
Posted: Mar 4 2015, 05:05 AM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15



I have installed Virtualdub on Windows 7 and run it for the first time using a Avisync script. All was fine until (I think) I hit the Enter key a couple of times and the viewing pane doubled up (from 2 panes to 4 panes and then from 4 panes to 8 panes – now very narrow on the screen) , I cannot revert to the standard layout and when I saved the movie it saved it in the multiple version as well. I have no idea what to do next. Please help!! Richard
 
     Top
raffriff42
Posted: Mar 4 2015, 05:28 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Certain video filters that call for frames out of order may be to blame, or make the situation worse. Could you post your script please?


This post has been edited by raffriff42 on Mar 4 2015, 05:59 AM
 
     Top
RichYard
Posted: Mar 4 2015, 07:41 AM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15




Thank you for your quick response which made me guess it was a scripting problem. The script was written by Fred from Belgium and eventually found the following:

"For some reason, some people are having problems with selecting the results and removing the double screen.
It's simple: "resultS1" will output a stacked before/after file.
But "result1" will output the modified file only.
So, you only have to remove the "S".

many greetings from Flanders, Belgium,
Fred. "

I will try this when I get home this evening!

Thanks again,
Richard
 
     Top
RichYard
Posted: Mar 6 2015, 02:08 PM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15



Hi,

I am still having problems, but am determined to get this to work (with help!)

Freds original script is as follows:



# 8mm film restoration script by videoFred.
# www.super-8.be
# info@super-8.be

# version 01.A with frame interpolation
# release date: june 20, 2012
#============================================================================================

# august 2010: added removerdirtMC() as suggested by John Meyer
# october 2010: auto sharpening parameters

# march 2011: new autolevels.dll by Jim Battle
# www.thebattles.net/video/autolevels.html

# june 2012: improved stabilisation


#=============================================================================================

# cleaning, degraining, resizing, stabilizing, sharpening, auto-levels and auto-white balance.
#=============================================================================================


film= "E:\Richard\Video\Cine\East Africa.avi" # source clip, you must specify the full path here






#PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
result="resultS1" # specify the wanted output here

trim_begin=2 trim_end=10 play_speed=18 #trim frames and play speed (PAL: 16.6666 or 18.75)

numerator= 25 #numerator for the interpolator (final frame rate)
denumerator= 1 #denumerator example: 60000/1001= 59.94fps


#COLOR AND LEVELS PARAMATERS
#----------------------------------------------------------------------------------------------------------------------------
saturation=1.2 #for all outputs

gamma= 1.2 # for all outputs

blue= 0 red= 0 #manual color adjustment, when returning result3 or result4. Values can be positive or negative


black_level=0 white_level=255 output_black=0 output_white=255 # manual levels, when returning result4


#AUTO LEVELS PARAMETERS
#--------------------------------------------------------------------------------------------------------------------------------

autolev_low= 6 # limit of autolevels low output
autolev_high= 235 # limit of autolevels high output



#SIZE, CROP AND BORDERS PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
CLeft=32 CTop=32 CRight=32 CBottom=32 #crop values after Depan and before final resizing

W=720 H=576 #final size after cropping

bord_left=0 bord_top=0 bord_right=0 bord_bot=0 #720p= borders 150


#STABILISING PARAMETERS, YOU REALY MUST USE RESULTS7 TO CHECK STABILISATION!
#----------------------------------------------------------------------------------------------------------------------------
maxstabH=20
maxstabV=20 #maximum values for the stabiliser (in pixels) 20 is a good start value

est_left=20 est_top=60 est_right=60 est_bottom=60 #crop values for special Estimate clip

trust_value= 1.0 # scene change detection, higher= more sensitive
cutoff_value= 0.5 # no need to change this, but you can play with it and see what you get





#CLEANING PARAMETERS
#--------------------------------------------------------------------------------------------------------------

dirt_strenght=30 # set this lower for clean films.


#DENOISING PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------


denoising_strenght= 300 #denoising level of second denoiser: MVDegrainMulti()
denoising_frames= 3 #number of frames for averaging (forwards and backwards) 3 is a good start value
block_size= 16 #block size of MVDegrainMulti()
block_size_v= 16
block_over= 8 #block overlapping of MVDegrainMulti()




# SHARPENING PARAMETERS
#--------------------------------------------------------------------------------------------------------------------------------

USM_sharp_ness= 40 USM_radi_us=3 #this is the start value for the unsharpmask sharpening
#do not set radius less then 3
#the script will automatically add two other steps with lower radius



last_sharp= 0.1 #final sharpening step after interpolation

last_blur= 0.2 #this smooths out the heavy sharpening effects





# END VARIABLES, BEGIN SCRIPT
#=================================================================================================================================


SetMemoryMax(800) #set this to 1/3 of the available memory




LoadPlugin("plugins/Deflicker.dll")
Loadplugin("plugins/Depan.dll")
LoadPlugin("plugins/DepanEstimate.dll")
Loadplugin("plugins/removegrain.dll")
LoadPlugin("plugins/removedirt.dll")
LoadPlugin("plugins/MVTools.dll")
LoadPlugin("plugins/MVTools2.dll")
Loadplugin("plugins/warpsharp.dll")
LoadPlugin("plugins/autolevels_06.dll")
Import("plugins/03_RemoveDirtMC.avs")






source= AviSource(film).assumefps(play_speed).trim(trim_begin,0).converttoYV12()
trimming= framecount(source)-trim_end
source1= trim(source,0,trimming)






#STABILIZING/CROPPING
#...........................................................................................................................................

stab_reference= source1.crop(20,20,-20,-20).colorYUV(autogain=true).crop(est_left,est_top,-est_right,-est_bottom)

mdata=DePanEstimate(stab_reference,trust=trust_value,dxmax=maxstabH,dymax=maxstabV)
stab=DePanStabilize(source1,data=mdata,cutoff=cutoff_value,dxmax=maxstabH,dymax=maxstabV,method=0,mirror=15).deflicker()
stab2= stab.crop(CLeft,CTop,-CRight,-CBottom)
stab3=DePanStabilize(source1,data=mdata,cutoff=cutoff_value,dxmax=maxstabH,dymax=maxstabV,method=0,info=true)


WS= width(stab)
HS= height(stab)
stab4= stab3.addborders(10,10,10,10,$B1B1B1).Lanczos4Resize(WS,HS)
stab5= Lanczos4Resize(stab2,W,H).sharpen(0.5)


#UNSHARPMASK AUTO_PARAMETERS
#-------------------------------------------------------------------------------------------------------------------------------------------

USM_sharp_ness1 = USM_sharp_ness
USM_sharp_ness2 = USM_sharp_ness+(USM_sharp_ness/2)
USM_sharp_ness3 = USM_sharp_ness*2

USM_radi_us1 = USM_radi_us
USM_radi_us2 = USM_radi_us-1
USM_radi_us3 = USM_radi_us2-1


#CLEANING/PRESHARPENING/RESIZING
#..........................................................................................................................................


noise_baseclip= stab2.levels(0,gamma,255,0,255).tweak(sat=saturation)




cleaned= RemoveDirtMC(noise_baseclip,dirt_strenght).unsharpmask(USM_sharp_ness1,USM_radi_us1,0)\
.unsharpmask(USM_sharp_ness2,USM_radi_us2,0).Lanczos4Resize(W,H)



#DEGRAINING/SHARPENING
#...................................................................................................................................................................


vectors= cleaned.MVAnalyseMulti(refframes=denoising_frames, pel=2, blksize=block_size, blksizev= block_size_v, overlap=block_over, idx=1)
denoised= cleaned.MVDegrainMulti(vectors, thSAD=denoising_strenght, SadMode=1, idx=2).unsharpmask(USM_sharp_ness3,USM_radi_us3,0)






#CHANGING FRAME RATE WITH INTERPOLATION/FINALSHARPENING
#............................................................................................................................................................

super= denoised.MSuper()
backward_vec= MAnalyse(super, blksize=block_size, blksizev= block_size_v, overlap=block_over, isb=true)
forward_vec= MAnalyse(super,blksize=block_size, blksizev= block_size_v, overlap=block_over, isb= false)

interpolated= denoised.MFlowFps(super, backward_vec, forward_vec, num=numerator, den= denumerator, ml=100)\
.sharpen(last_sharp,mmx=false).sharpen(last_sharp,mmx=false).blur(last_blur,mmx=false)


#RESULT1: AUTOLEVELS,AUTOWHITE
#......................................................................................................................................................................
result1= interpolated.converttoRGB24().autolevels(output_low= autolev_low, output_high= autolev_high)\
.converttoYV12().coloryuv(autowhite=true).addborders(bord_left, bord_top, bord_right, bord_bot)

#RESULT2: MANUAL LEVELS, AUTOWHITE
#......................................................................................................................................................................
result2= interpolated.levels(black_level,1.0,white_level,0,255).coloryuv(autowhite=true)\
.addborders(bord_left, bord_top, bord_right, bord_bot)

#RESULT3: AUTOLEVELS, MANUAL COLOR CORRECTIONS
#.....................................................................................................................................................................
result3= interpolated.coloryuv(off_U=blue,off_V=red).converttoRGB24().autolevels(output_low= autolev_low, output_high= autolev_high)\
.converttoYV12().addborders(bord_left, bord_top, bord_right, bord_bot)

#RESULT4: MANUAL LEVELS, MANUAL COLOR CORRECTIONS
#.....................................................................................................................................................................
result4= interpolated.coloryuv(off_U=blue,off_V=red).levels(black_level,1.0,white_level,0,255)\
.addborders(bord_left, bord_top, bord_right, bord_bot)

#RESULT5: SPECIAL SERVICE CLIP FOR RESULT S5
#.....................................................................................................................................................................
result5= overlay(source1,greyscale(stab_reference),x=est_left,y=est_top).addborders(2,2,2,2,$FFFFFF).Lanczos4Resize(WS,HS)




#PARAMETERS FOR THE COMPARISONS
#.....................................................................................................................................................................
W2= W+bord_left+bord_right
H2= H+bord_top+bord_bot




final_framerate= numerator/denumerator
source4=Lanczos4Resize(source1,W2,H2).changeFPS(final_framerate)



#COMPARISONS: ORIGINAL VS RESULTS
#......................................................................................................................................................................
resultS1= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result1,"result1: autolevels, autowhite",size=28,align=2))
resultS2= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result2,"result2: autowhite, manual levels correction",size=28,align=2))
resultS3= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result3,"result3: autolevels, manual color correction",size=28,align=2))
resultS4= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result4,"result4: manual colors and levels correction",size=28,align=2))
resultS5= stackhorizontal(subtitle(result3,"result3: auto levels, manual color correction",size=28,align=2),subtitle(result4,"result4: manual colors and levels correction",size=28,align=2))
resultS6= stackhorizontal(subtitle(result1,"result1: autolevels, autowhite",size=28,align=2),subtitle(result2,"result2: manual levels, autowhite",size=28,align=2))

#SPECIAL COMPARISON CLIP FOR TESTING THE STABILIZER
#.........................................................................................................................................................................
resultS7= stackhorizontal(subtitle(result5,"baseclip for stabiliser -only the B/W clip is used",size=32,align=2),\
subtitle(stab4,"test stabiliser: dx=horizontal, dy=vertical",size=32,align=5)).converttoYUY2()




Eval(result)#.converttoRGB24()



All ran well using Vdub but as the panes are doubled up, I removed the S from the 7 lines in the section #COMPARISONS: ORIGINAL VS RESULTS


resultS1= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result1,"result1: autolevels, autowhite",size=28,align=2))

to read :

result1= stackhorizontal(subtitle(source4,"original",size=28,align=2),subtitle(result1,"result1: autolevels, autowhite",size=28,align=2))



Now I get the Error:


Aisynth Open Failure:
StackHorizontal: image heights don't match
(E:\Richard\Documents\VirtualDub\Film Restoring vs 06
2012\scripts\01_A_Film_Interpolation.avs,line 272)



Again, I ask for some expert assistance!!

Regards,
Richard
 
     Top
raffriff42
Posted: Mar 6 2015, 10:31 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



You are editing the script in ways that are not necessary; it looks to me like you should
edit the source video path, the values under "PARAMETERS," and nothing else.

If you read the help file "Film_restoring_help.txt" that comes with videoFred's script,
the correct workflow is explained.

I tried to replicate your original problem and could not do it - different source material maybe.
 
     Top
RichYard
Posted: Mar 7 2015, 11:05 AM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15



QUOTE (raffriff42 @ Mar 6 2015, 10:31 PM)
You are editing the script in ways that are not necessary; it looks to me like you should
edit the source video path, the values under "PARAMETERS," and nothing else.

If you read the help file "Film_restoring_help.txt" that comes with videoFred's script,
the correct workflow is explained.

I tried to replicate your original problem and could not do it - different source material maybe.

Thank you very much for your pointers - I read videoFred's help files thoroughly and found my mistake -

The S parameter for stacking the output should have been removed from line 33 (See below) and not from the 7 instances at the end of the file!

#PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
result="resultS1" # specify the wanted output here

With the above "S" removed, all worked well.

Thank you for your assistance,

Regards,

Richard
 
     Top
RichYard
Posted: Mar 8 2015, 06:21 AM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15



Just when I thought all was well – the dreaded Avisynth error message rears it head yet again!
I was testing VideoFred’s script on a 819MB 27 sec AVI clip and it was working perfectly. I then applied the script to the full 12 minute, 2.47GB file exported in AVI format with the following conditions :
AVI Export:
Video: 320x240; 25.00 Frames/s; Intel IYUV codec
Audio: 44100 Hz; 128 kBit/s; Stereo; Fraunhofer IIS MPEG Layer-3 Codec (professional)

and I get the error message
Avisynth Open Failure
AVISource couldn’t locate a decompressor four fourcc dvsd
(E:\Richard\Video\Cine\8mm Avisynth Restoration Scripts\01_A_Film_Restoing_Frame_Interpolation.avs, line 145)

where line 145 is:
source= AviSource(film).assumefps(play_speed).trim(trim_begin,0).converttoYV12()

I don’t understand this, as all I did was to apply the same script to a longer film clip extracted in the same way as the short test clip.

Again, any assistance will be greatly sppreciated!

Richard
 
     Top
raffriff42
Posted: Mar 8 2015, 10:21 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



I get similar errors at random times when starting complex Avisynth scripts.
Try File, "Reopen video file" a couple of times.
 
     Top
RichYard
Posted: Mar 8 2015, 08:14 PM


Newbie


Group: Members
Posts: 6
Member No.: 38693
Joined: 4-March 15



QUOTE (raffriff42 @ Mar 8 2015, 10:21 AM)
I get similar errors at random times when starting complex Avisynth scripts.
Try File, "Reopen video file" a couple of times.

Thank you for that - I saved the .avi file from within Virtual Dub and it then ran the script without a problem!

 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
8 replies since Mar 4 2015, 05:05 AM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions