Post subject: Nintendo DS Emulator (three - screen layout)
Joined: 8/30/2013
Posts: 24
I have here another topic with another question. Every TAS for the Nintendo DS I have seen lately has had the following layout: http://www.youtube.com/watch?v=vrTvCqPtxao How is this layout achieved? I think I read sometime ago that it's a well - kept secret. If that's the case, then could someone explain why?
Spikestuff
They/Them
Editor, Publisher, Expert player (2656)
Joined: 10/12/2011
Posts: 6449
Location: The land down under.
#Video
AviSource("video.avi")

#splitting DS
i      = Height / 2
bottom = Crop(0, i, -0, -0)
top = Crop(0, 0, -0, -i)
right = last
left = bottom.Pointresize(bottom.Width() * 2, bottom.Height() * 2)
StackHorizontal(left, right)
2022 Hijack: Switch the word "top" with "bot" in the last line of the script if you want the bottom screen instead.
AviSource("video.avi")
cr = last.Height / 2
top = last.Crop(0, 0, -0, -cr)
bot = last.Crop(0, cr, -0, -0)
StackHorizontal(top.PointResize(512,384), last)
2022 hijack but you want to make sure it's right:
source = AviSource("video.avi")
cr = source.Height / 2
top = source.Crop(0, 0, -0, -cr)
bot = source.Crop(0, cr, -0, -0)
StackHorizontal(top.PointResize(512,384), source)
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.
Joined: 8/30/2013
Posts: 24
Spikestuff wrote:
#splitting DS
i      = Height / 2
bottom = Crop(0, i, -0, -0)
top = Crop(0, 0, -0, -i)
right = last
left = bottom.Pointresize(bottom.Width() * 2, bottom.Height() * 2)
StackHorizontal(left, right)
Assuming that I am using VirtualDub, where would I put this?
Spikestuff
They/Them
Editor, Publisher, Expert player (2656)
Joined: 10/12/2011
Posts: 6449
Location: The land down under.
Sorry, that code is avisynth (.avs) I assumed you had that installed it and made the file then dragged that into virtualdub (also updated code because I forgot one part) to view it (because it works that way too).
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.
Post subject: Re: Nintendo DS Emulator (three - screen layout)
Joined: 2/3/2013
Posts: 320
Location: Germany
inavojo wrote:
[...] I think I read sometime ago that it's a well - kept secret. If that's the case, then could someone explain why?
Where did you read that? The script producing this kind of layout is public (be it not too well documented).
All syllogisms have three parts, therefore this is not a syllogism.
Site Admin, Skilled player (1255)
Joined: 4/17/2010
Posts: 11495
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
VirtualDub does not allow stacking videos side by side.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Post subject: Re: Nintendo DS Emulator (three - screen layout)
Joined: 8/30/2013
Posts: 24
RGamma wrote:
inavojo wrote:
[...] I think I read sometime ago that it's a well - kept secret. If that's the case, then could someone explain why?
Where did you read that? The script producing this kind of layout is public (be it not too well documented).
Well, a long time ago I saw a LP video with that layout, someone commented asking how to achieve it, and the uploader responded by saying that, as stated above, it was a well - kept secret. I don't remember the particular Let's Player or video.
Post subject: What about FFMPEG?
MrTASer
He/Him
Player (232)
Joined: 7/3/2021
Posts: 147
Location: Udaipur, Rajasthan, India, God'sBeautifulWorld
Is there any script to put in the ffmpeg custom command? It's more easy and straight forward in use, hence I would like to know if there is any script for it.
My TASing channel ; My MUSIC channel ; My SoundCloud ; My HomePage ; Music Composer ; Mr.TASer#5922 VCop 2 TAS completed, but in a completely different way ; And SMB - GAGOTO (WL) TAS COMPLETED TILL W-4 ; Some more...
Spikestuff
They/Them
Editor, Publisher, Expert player (2656)
Joined: 10/12/2011
Posts: 6449
Location: The land down under.
MrTASer wrote:
Is there any script to put in the ffmpeg custom command?
Answer comes from here. Backhalf of the script comes from this topic here. Top screen priority:
-filter_complex "[0:v]crop=iw:ih/2:0:0,scale=iw*2:ih*2:sws_flags=neighbor[left]; [left][0:v]hstack" -crf 18 -pix_fmt yuv420p -b:a 384k -f mp4
Bottom screen priority:
-filter_complex "[0:v]crop=iw:ih/2:0:oh,scale=iw*2:ih*2:sws_flags=neighbor[left]; [left][0:v]hstack" -crf 18 -pix_fmt yuv420p -b:a 384k -f mp4
To change the scaling go to the bit after "hstack" and add (reasonings can be seen in my post): 1080p:
,scale=iw*4:ih*4:sws_flags=neighbor,scale=1920:-1:flags=lanczos
720p:
,scale=iw*2:ih*2:sws_flags=neighbor,scale=1280:-1:flags=lanczos
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.