Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
21st March 2021, 17:44 | #1 | Link |
Registered User
Join Date: Sep 2020
Posts: 135
|
How do you edit and upscale Playstation, Nintendo 64 and Sega Saturn video dumps?
I usually use emulation to dump videos from SNES and Genesis as well as edit my videos on Virtualdub2 (although I am looking into other software) but I had never edited videos from Nintendo 64, Sega Saturn or Playstation games before. Not all the games on those systems are 3D but I know that 3D games are different from 2D games. With that said however what would be a good way to edit the video dumps from Nintendo 64 and beyond games? I am currently using something called Bizhawk for the dumps.
|
22nd March 2021, 22:01 | #2 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
I'm afraid we're gonna need a bit more info here.
How are those recorded? I mean, which codec are you using to record, which chroma sampling etc? Also what do you mean by "editing"? If it's just trimming, it can be easily done in Avisynth, otherwise if it's something more complicated like a proper editing, I would suggest Davinci Resolve which is free, cross platform and pretty intuitive. (I personally use AVID Media Composer but the license ain't cheap). As to the upscaling part, from which resolution to which resolution would you like to go? I would suggest NNEDI3 but as I said we need to know more... |
23rd March 2021, 02:42 | #3 | Link | |
Registered User
Join Date: Sep 2020
Posts: 135
|
Here is the Mediainfo details the dump I made from the BizHawk emulator:
Quote:
|
|
23rd March 2021, 12:02 | #4 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Ok, I see, so it's essentially a 352x240 yv24 progressive that you wanna upscale.
I noticed that it's actually recorded at 59.940p 'cause I suppose that's the refresh rate of the monitor, but I wonder if the game is actually rendered with as many frames... If you see any dups, you might wanna be using TDecimate() but since it's a fairly old game and modern CPUs are powerful enough, let's assume that it really is 59.940p without dups. In that case, all is left for us is to upscale and converttoyv12() as YouTube is in 4:2:0 8bit planar. Quote:
No, honestly, nearest neighbor is the simplest algorithm possible, which is also why it's the worse one to pick. Sure, it's not computationally complex, but nowadays CPUs are much much better than they were in the past and it's easy enough to upscale using a decent kernel like Spline64 or even a Neural Network. About Lanczos, it's better than PoinResize (Nearest Neighbor) but it's a bit old and there are better alternatives. I don't actually have any synthetic graphics to show you the comparison, but I can definitely show you how they behave in a real life footage. This is the original picture in 426x240 (similar to your source): This is the algorithm you suggested, Nearest Neighbor, so PointResize: This is NNEDI3 (Neural Network Edge Directed Interpolation 3) upscaling the very same source: As you can see, it's much much better. Still, there's still a fair amount of blur due to the very low resolution and there's a bit of aliasing in the lines, but it's way better than PointResize. So, for your scenario, I would use: Code:
#Indexing FFMpegSource2("your_file.mp4, atrack=-1) #Loudness Correction Normalize(0.22) #Bringing AR to 1.77FF AddBorders(36, 0, 36, 0) #Converting from BT601 to BT709 Matrix(from=601, to=709, rg=1.0, gg=1.0, bg=1.0, a=16, b=235, ao=16, bo=235, bitdepth=8) #Upscale to HD nnedi3_rpow2(cshift="Spline64ResizeMT", rfactor=2, fwidth=1280, fheight=720, nsize=4, nns=4, qual=1, etype=0, pscrn=2, threads=0, csresize=true, mpeg2=true) #From 4:4:4 planar 8bit to 4:2:0 planar 8bit Converttoyv12(matrix="Rec709", interlaced=false) #Clipping Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240) IF it's in Full PC Range you're gonna have to add: Code:
Levels(0, 1, 255, 16, 235, coring=false) This is very important and you can check if it's Limited or Full by using VideoTek() and check if it goes outside the black region in the middle and reaches the brown part. Ah, one last thing, you said "HD" but then you added "YouTube". Please know that nowadays YT doesn't consider HD as HD anymore and it considers FULL HD as HD. What this means is that if you upload a 1280x720 HD clip you won't get the "HD" icon on the gear in their player as you have to upload at least a 1920x1080 FULL HD clip to get it. In the script, the only thing you have to do to change it is change the values in NNEDI3. Cheers, Frank Last edited by FranceBB; 23rd March 2021 at 12:07. |
|
24th March 2021, 07:53 | #6 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Avisynth so an AVS Script.
I can send you a BAT to make your AVS Script encode in H.264 and AAC audio if you have never used it, but you're going to need to install Avisynth yourself and get plugins_JPSDR and ffms2 |
24th March 2021, 14:28 | #8 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Nah, I can share it here with a temporary WeTransfer link.
I mean, I don't care if others download it, it's just a zip with a folder in which there are: avs4x264mod.exe ffmpeg.exe MP4Box.exe x264.exe The AVS Script.avs I posted above and the "Command Line H264 LC" with some pretty basic settings to make a YT compatible video with x264, encode the audio in AAC with ffmpeg and mux everything with MP4Box... Quote:
Here: https://we.tl/t-yH0YVntUjM Please remember to change in the AVS Script.avs the name of the source file with your actual source file. I generally help other people in the Avisynth section, I don't generally help folks in the newbie section so I give some things for granted sometimes... Anyway, welcome to the Avisynth world, make sure you're using this release: https://github.com/AviSynth/AviSynthPlus/releases |
|
26th March 2021, 23:42 | #9 | Link | |
Registered User
Join Date: Sep 2020
Posts: 135
|
And you do all that in the AVS Script right? Just to make sure:
Code:
#Indexing FFMpegSource2("your_file.mp4, atrack=-1) #Loudness Correction Normalize(0.22) #Bringing AR to 1.77FF AddBorders(36, 0, 36, 0) #Converting from BT601 to BT709 Matrix(from=601, to=709, rg=1.0, gg=1.0, bg=1.0, a=16, b=235, ao=16, bo=235, bitdepth=8) #Upscale to HD nnedi3_rpow2(cshift="Spline64ResizeMT", rfactor=2, fwidth=1280, fheight=720, nsize=4, nns=4, qual=1, etype=0, pscrn=2, threads=0, csresize=true, mpeg2=true) #From 4:4:4 planar 8bit to 4:2:0 planar 8bit Converttoyv12(matrix="Rec709", interlaced=false) #Clipping Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240) Quote:
Last edited by GAP; 27th March 2021 at 00:54. |
|
27th March 2021, 19:01 | #10 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Quote:
I already sent you the package with everything. Just make sure to change "your_file.mp4" with the name and extension of your actual file. |
|
28th March 2021, 01:04 | #12 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Ok, but in the zip I sent you there's already the AVS Script.avs and the command line H.264.bat, both filled by me, so you literally just have to double click on the bat
|
30th March 2021, 11:31 | #14 | Link |
Registered User
Join Date: Sep 2020
Posts: 135
|
I wanted to create clips of the individual levels of the various games that I am playing. I also wanted to upload my videos consistently and maintain the quality. I wanted to know what to do when I encounter games of various graphics. I have programs like Virtualdub2 but I am trying to create clips of videos that will still be very similar to each other and not have to worry too much about the graphics.
Last edited by GAP; 30th March 2021 at 11:34. |
Thread Tools | Search this Thread |
Display Modes | |
|
|