Mario Kart MB
https://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl
Mario Kart >> Mario Kart Wii >> How to Record Runs with Dolphin on a Potato
https://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1589268940

Message started by Mango Man on 05/11/20 at 23:35:40

Title: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/11/20 at 23:35:40

So you're faced with a problem :o

You just got a sick time, and you want a video of it to show with the world, but nobody wants to record your run :-[

You could always record it yourself with dolphin, you've seen people do that, but you're rocking a hot potato as your PC and can barely hit 10fps...

Well its your lucky day, because in this elaborate or maybe not so elaborate guide (idk I haven't written it yet) I'm going to introduce you to the wonderful world of frame/audio dumping and sexy ass TT's on a shitty ass PC ;D

First of all, shoutouts to Bynt for teaching me like 99% of this dolphin recording stuff and shoutouts to Invincible and FoxAmexion for introducing me to frame/audio dumping [smiley=beer.gif]

So this is cool and all, but what is dumping? Well it works a little bit like this:
  • You download your ghost
  • You use live replay to record your ghost in dolphin
  • Your PC sucks ass, so its now playing in 10fps
  • After waiting for 10 minutes for your run to finish playing extremely slowly, out pops the final video and audio, except the audio is great, and the video looks hot af


So enough chit-chat, on to the tutorial

Step 1 - The Setup
1) Install Dolphin (https://dolphin-emu.org/download/)
2) Download WiiScrubber (https://wiidatabase.de/downloads/pc-tools/wiiscrubber/)
3) Get a .iso of the game
4) Download the ghost (or ghosts) you want to record

Step 2 - Preparing the Ghost File
1) Find the corresponding track ID for the ghost you're recording here (https://pastebin.com/gPJVZmGt)
2) Rename your ghost file to ghost1_comp_<trackid> (so for example for DDR, ghost1_comp_13)
3) Create a copy of your renamed ghost file and name it ghost2_comp_<trackid>

Step 3 - Wiiscrubber
1) Unzip WiiScrubber
2) Open up the folder and run MakeKey.bin following the instructions it gives you
3) Run WiiScrubber
4) Click the "Load ISO" button in the top left and select your totally legit and legal MKWii.iso
5) Navigate to Partition 1 > Race > Time Attack > Ghost 1, and replace the ghost that matches your track ID with your own ghost1 file from step 1
6) Repeat the previous step but instead of Ghost 1, select Ghost 2

Step 4 - Using Dolphin
1) Launch dolphin
2) Double click the center where it says No Directory
3) Select the ISO and a banner should pop up that says Mario Kart WIi (if the game opens simply close it)
4) Click the graphics button in the top right and chose the graphics settings you want
5) Click the config button in the top right and enable cheats
6) Right click the Mario Kart Wii banner and click properties, then go to Gecko Codes and click Edit Config on the bottom left
7) Copy + Paste the contents of your iso regions gecko codes into the config file
Gecko Codes:
PAL (https://pastebin.com/UBjxH8zR)
NTSC-U (https://pastebin.com/TspZgij1)
NTSC-J (https://pastebin.com/eUBeyPcR)
NTSC-K (https://pastebin.com/YVtds9KD)
8) Enable all the gecko codes (uncheck no music if you dont want custom music later in editing)
9) Run the game and select the track you want to record, your ghost should have replaced the staff ghost (make sure to pick the same character/vehicle combo)

Step 5 - Frame/Audio Dumping
1) First of all, navigate to the ghost you want to record and select "Race this Ghost"
2) After about .2 seconds you can go out back to the ghost selection. We want to record with "Solo Time Trials" so we dont have "+0:00.000" appear on our screen
3) Before you actually start the replay, pause dolphin
4) Click "Movie" on the menubar and select "Dump Frames" and "Dump Audio"
5) Press play and continue with the replay, its now recording
6) Once the replay is done, repause dolphin and uncheck both "Dump Frames" and "Dump Audio"

And that's it! You're almost done! ;D

All that's left to do is to put the audio and video files together and you'll have your own high quality recording

On Linux you can find the video at ~/.local/share/dolphin-emu/Dump/Frames/framedump0.avi and find the audio at ~/.local/share/dolphin-emu/Dump/Audio/dspdump.wav

On Windows you can find the video at C:\Users\Owner\Documents\Dolphin Emulator\Dump\Frames\framedump0.avi and find the audio at C:\Users\Owner\Documents\Dolphin Emulator\Dump\Audio\dspdump.wav

For Mac users, it should be in a similar folder but I don't have access to one atm so I can't check (someone please reply to this with the file locations) however I would imagine that you could find the dolphin folder in ApplicationSupport/

I should probably mention now that there is also a dtkdump.wav audio file but you can just ignore it

Edit: The video that will be output will not be in 1080p [smiley=cry.gif]
If you want 1080p you need to do that with your video editor, for example I used to use kdenlive so I would set my preset to "1080p 60fps"

Edit 2: Ignore the above edit, that only happened because I didnt actually have dolphin open in fullscreen. Make sure you have it open in fullscreen  :P

Hope this helped [smiley=thumbsup.gif]

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Kjeld on 05/12/20 at 00:56:30

Those rumours were true, he really is the saviour of the mkw community.

Thanks dude!

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/12/20 at 01:13:55


56777871796B761D0 wrote:
Those rumours were true, he really is the saviour of the mkw community.

Thanks dude!

8-)

Title: Re: How to Record Runs with Dolphin on a Potato
Post by flanders on 05/12/20 at 05:11:32

Wow, this Mango Man dude is like, a community legend and the 3rd coming of Christ.

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/12/20 at 05:14:49


0E2C20283F22230E4D0 wrote:
Wow, this Mango Man dude is like, a community legend and the 3rd coming of Christ.

Yeah he sounds like kind of a big deal ;D

Title: Re: How to Record Runs with Dolphin on a Potato
Post by A-a-ronBurrSir on 05/12/20 at 06:25:55

A few things.

1. The safest way to obtain a mkw ISO is through CleanRip. Follow this tutorial here: http://youtu.be/Q16AEBispTY?a

[NOTE] To join the files at the end I would recommend doing this instead http://https://i.gyazo.com/6d428d87d8b8a9bc60928a5297c45a40.png

If you instead choose to pirate the game I will be very disappointing in you.

2. Depending on where you're from your iso will either be NTSC-K (Korea), NTSC-J (Japan), NTSC-U (USA and I think canada also has NTSC-U), and PAL (everywhere else).

Here are the links for where you can find the codes
No Music: https://mkwii.com/showthread.php?tid=45 (you only need the 1-line code at the top of the page. You can get the more complicated one but I don't recommend it.)
Live Replay: https://mkwii.com/showthread.php?tid=1035
Ultimate License Unlocker: https://mkwii.com/showthread.php?tid=65&highlight=Ultimate+License+Unlocker

Now when you have to put in the gecko codes, put the one's that correspond to your ISO in the the config file. Mango man is dumb.

3. Use Wiimm's ISO Tools instead of WiiScrubber
Watch this video on how to install it and then just replace the nintendo ghost with your ghost2_comp_<trackid> file. Make sure the new ghost has the same file name.https://www.youtube.com/watch?v=Ij1yG2HGDzI&t=516s

4. When recording on dolphin you should check "Dump Frames" and "Dump Audio" before launching your games. This is so the 2 files will sync up easily.

NOTE: Dolphin is loud as hell so you better make sure you set the audio to liek 15% or something if you don't want to have a crackily video (example: https://www.youtube.com/watch?v=UVc3D93WXeM)

5. On windows the directory for the dumps is C:\Users\Owner\Documents\Dolphin Emulator\Dump\Frames or C:\Users\Owner\Documents\Dolphin Emulator\Dump\Audio. Why the hell are you using linux in 2020.

Besides that Everything Mango wrote is what you should do.

DONUS: Do you want to be like Bynt and correct errors at the end of runs!?!?! Then I recommend TAS code. It's just like live replay but you can turn it off if you want to change the ghost just like ruso https://www.youtube.com/watch?v=zpbo7mNgyaQ

If you want this epic code then go to https://mkwii.com/showthread.php?tid=1036&highlight=TAS+code

you will be banned if you submit a run that uses it though

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/12/20 at 06:58:09


Quote:
Now when you have to put in the gecko codes, put the one's that correspond to your ISO in the the config file. Mango man is dumb.

Excuse me? I said to use an NTSC ISO and gave NTSC codes. I’m offended ;D
Edit: NTSC is also the most common .iso and because it’s emu, iso region doesn’t matter


Quote:
Why the hell are you using linux in 2020.

Because it’s objectively the best OS 8-)


Quote:
When recording on dolphin you should check "Dump Frames" and "Dump Audio" before launching your games. This is so the 2 files will sync up easily.

If you follow my instructions, you enable both when the game is paused, so they’re going to be synced up anyways [smiley=bath.gif]

I’ll update the original post with the windows directory and the other notes when I’m back home
[smiley=dankk2.gif]

Title: Re: How to Record Runs with Dolphin on a Potato
Post by A-a-ronBurrSir on 05/12/20 at 07:11:52


4247484D5355260 wrote:
If you follow my instructions, you enable both when the game is paused, so they’re going to be synced up anyways [smiley=bath.gif]

Never knew about that. Cheers  [smiley=thumbsup.gif]

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Arvo57 on 05/12/20 at 07:31:31


26232C293731420 wrote:

Quote:
Why the hell are you using linux in 2020.

Because it’s objectively the best OS 8-)


this

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/12/20 at 07:53:12


4053574E1416210 wrote:
[quote author=26232C293731420 link=1589268940/0#6 date=1589295489]

Quote:
Why the hell are you using linux in 2020.

Because it’s objectively the best OS 8-)


this[/quote]
"Linux, the web, and everyone else uses forward slashes because they think forwards. Windows uses backslashes because they think backwards" - Some guy whos name I do not remember

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Omar on 05/31/20 at 10:13:03

What video editor do you guys recommend?

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 05/31/20 at 12:13:01


0E292E34252E240F2D2132400 wrote:
What video editor do you guys recommend?

I just use ffmpeg which is a command line tool


Code:
ffmpeg -i ~/.local/share/dolphin-emu/Dump/Frames/framedump0.avi -c:v h264_nvenc -profile:v high -preset slow -rc vbr_2pass -qmin 17 -qmax 22 -2pass 1 -c:a:0 copy -b:v 100000k -filter:v fade=in:0:90,fade=out:${FADE_OUT_START}:90,scale=2560:1440:flags=neighbor ~/Videos/upscaled_no_audio.avi

ffmpeg -i ~/Videos/upscaled_no_audio.avi -i ~/.local/share/dolphin-emu/Dump/Audio/dspdump.wav -c copy ~/Videos/output.avi


Top line upscales the video to 1440p for better youtube quality, and adds fade in/fade out (you need to manually found out when to start the fade out)

Bottom line combines the video and audio

It renders the video in like 20 seconds ;D

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Master Kek on 05/31/20 at 13:29:22


57525D584640330 wrote:
[quote author=0E292E34252E240F2D2132400 link=1589268940/0#10 date=1590948783]What video editor do you guys recommend?

I just use ffmpeg which is a command line tool


Code:
ffmpeg -i ~/.local/share/dolphin-emu/Dump/Frames/framedump0.avi -c:v h264_nvenc -profile:v high -preset slow -rc vbr_2pass -qmin 17 -qmax 22 -2pass 1 -c:a:0 copy -b:v 100000k -filter:v fade=in:0:90,fade=out:${FADE_OUT_START}:90,scale=2560:1440:flags=neighbor ~/Videos/upscaled_no_audio.avi

ffmpeg -i ~/Videos/upscaled_no_audio.avi -i ~/.local/share/dolphin-emu/Dump/Audio/dspdump.wav -c copy ~/Videos/output.avi


Top line upscales the video to 1440p for better youtube quality, and adds fade in/fade out (you need to manually found out when to start the fade out)

Bottom line combines the video and audio

It renders the video in like 20 seconds ;D[/quote]

https://www.youtube.com/watch?v=kWIqP0dURvQ

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Master Kek on 06/07/20 at 09:11:50

Edit: do you have a version of the code for Windows?

Title: Re: How to Record Runs with Dolphin on a Potato
Post by Mango Man on 06/07/20 at 09:33:55


5F7361667760595759120 wrote:
Edit: do you have a version of the code for Windows?

As far as I'm aware, ffmpeg works the same on all OS's. Only difference is on windows you would need your file paths to use backslashes (because microsoft thinks backwards)


Code:
ffmpeg -i PATH\TO\DOLPHIN\FRAMEDUMP -c:v h264_nvenc -profile:v high -preset slow -rc vbr_2pass -qmin 17 -qmax 22 -2pass 1 -c:a:0 copy -b:v 100000k -filter:v fade=in:0:90,fade=out:${FADE_OUT_START}:90,scale=2560:1440:flags=neighbor PATH\TO\SAVE\NEW\VIDEO

ffmpeg -i PATH\TO\NEW\VIDEO -i PATH\TO\DOLPHIN\AUDIODUMP -c copy PATH\OF\FINALFILE


You want to replace ${FADE_OUT_START} with the frame number you want the fadeout to start at. For me the fadeout lasts 150 frames so thats 150 frames before the video ends. I find the video length with the following ffprobe command

Code:
ffprobe -i PATH\TO\VIDEO -show_entries stream=codec_type,duration -of compact=p=0:nk=1


If you need any help with getting it working and stuff just DM me on discord

Mario Kart MB » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.