Editor, Expert player (2313)
Joined: 5/15/2007
Posts: 3855
Location: Germany
Nowadays I use such scripts:
clip1 = AviSource("originalclip.avi").ConvertToYUY2.Crop(0, 0, -0, -192)
clip2 = AviSource("originalclip.avi").ConvertToYUY2.Crop(A, B, -C, -D).AddBorders(2, 2, 2, 2).BilinearResize(E, F)

return Layer(clip1, clip2, x=G, y=H, "add")
clip1 is the original clip recorded from desmume, and the lower screen is cut away. clip2 is the same clip and a certain part of the video is taken. You have to specify the crop parameters, as well as the resize parameters and x and y. I use BilinearResize to make clip2 smaller so it doesn't cover half the screen. I used this for my newer encodes to take the timer and place it at the bottom of the video. Example: http://www.youtube.com/watch?v=s-vpBMmz1_4
Player (60)
Joined: 9/2/2008
Posts: 289
Location: United Kingdom
Edit: I removed the quote because I managed to sort out the problem. I share you the information used if the main gameplay is on the Touch Screen (Castlevania, Zelda, most touch screen only games). This method style is similar to MUGG but it focuses on the Touch Screen instead of the Top Screen. Edited Clip 1: Single Screen Only AVI If the Top screen script was like this:
AviSource("c:\folder\[original clip].avi") Crop(0,0,-0,-192).BilinearResize(512, 384)
Then this is the touch screen script:
AviSource("c:\folder\[original clip].avi") Crop(0,192,-0,-0).BilinearResize(512, 384)
* Changed the second digit from 0 to 192 * Changed the -192 digit to - 0 Save a WAV sound file, you will need it later on. Edited Clip 2: Blank AVI I worked out why MUGG's post wasn't working properly is because it was missing a comma inbetween the FPS number and Color (it's in bold the added comma).
BlankClip(length=[length of the original video in frames], width=768, height=384, fps=59.826, color=$000000)
I got an example for my Spirit Tracks: Whip race TAS, the avi video was 4499 frames long so this is what I add to the script:
BlankClip(length=4499, width=768, height=384, fps=59.826, color=$000000)
* Remember to remove the Square Brackets [ these things ] before saving the avs file. Edited Clip 3: The combined clips AVI Again if you are posting a (Youtube) video that has only the touch screen on the left half then here is the script for that.
alpha=128 clip1 = AviSource("[blank AVI].avi").ConvertToYUY2 clip2 = AviSource("[originally recorded video].avi").ConvertToYUY2 clip3 = AviSource("[Touch AVI].avi").ConvertToYUY2 return Layer(clip1, clip2, x=514, y=0, "add").layer(clip3)
Import the WAV sound file to VirtualDub otherwise you will have no sound when playing back the edited video. Hope that helps everyone.
greenalink.blogspot.com