Advertising (This ad goes away for registered users. You can Login or Register)

PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Everything that is PSVita-related but doesn't go in any other subforum
Locked
Cheesethief
Posts: 367
Joined: Sun Aug 19, 2012 9:15 pm

PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Cheesethief »

PS Vita MKV to MP4 and MiniMKV Tutorial


While I do understand there is already a guide for converting videos for the PS Vita, Xvid4PSP is hardly a good program for it. Or at least that is my opinion. This guide is mainly designed for anime, but it will work just as well with movies/episodes.

- Prerequisites -

In this guide, we will be using the following:
MeGUI - This download is configured for this tutorial.
K-Lite Mega Codec Pack (CCCP Codec Pack may also be used, but settings may need tweaking)
Avisynth 2.5.8
Win7DSFilterTweaker - Only download this if you are going with CCCP instead of K-Lite!

Now, lets get started, shall we...

I recommend removing any previous installations of Codec packs and AviSynth before starting, but this is up to you.

1. Download AviSynth 2.5.8 and MeGUI (see links above) and then K-Lite Mega Codec Pack.

2. Install either CCCP or K-Lite (If you are on Windows 7, K-Lite Mega pack will include Win7DSFilterTweaker, if you are using CCCP, see links above).

2.1. Once you have Win7DSFilterTweaker installed: Run and set h264 and aac at least or everything to ffdshow or LAV Video/Audio (if ffdshow is not an available option) except mp2/mp3 to be safe. Only the 32-bit decoders are important to change. Disabling Media Foundation is optional.

Image

3. Install AviSynth 2.5.8.

4. Extract MeGUI to a new/empty directory.

5. Open the MeGUI folder and run MeGUI.exe

5.1. If you dled my MeGUI package then MeGUI should be already on development server (it says MeGUI xxxx DEVELOPMENT UPDATE SERVER as window title) , if it isn’t go to Options -> Settings -> Extra Config -> Auto Update and select ‘Use development update server’ then click Save.

Image

6. NeroAacEnc.exe is in the MeGUI folder. Root directory of the folder.

6.1. Go to Options -> Settings -> External Program Settings and under NeroAacEnc Location browse and select the neroAacEnc.exe then press Save on the settings box, close and restart MeGUI.

7. Once MeGUI is restarted update any files, once update is complete restart MeGUI just to be safe. Do not update FFMS to r706 (Server Date: 28.08.2012). This update breaks .Ogg VORBIS audio support in MeGUI.

7.1. Sometimes an update will come up with a box of profiles, right click in an empty space of that box and press ‘select all’ and then IMPORT. Repeat for video and audio profiles. This will ensure all profiles are updated to use the newest versions of programs.

- Prerequisites End -

- Encoding -
Now onto the actual encoding/converting.

1. Open MeGUI and in the main window press either Ctrl+R or Tools -> AVS Script Creator

Image

2. Click the "..." button box in Video Input and select the file to convert. Click DirectShowSource on the little box which appears, after this a preview of your video appears which you can close.

3. Under Avisynth Profile select the desired resolution of the output file you want.

3.1 If you dled my MeGUI pack I have already configured the settings for 1280x720, 1920x1080
and 848x480 resolutions (make sure to always select the proper aspect ratio). But if you want other then select “Clever (TM) anamorphic encoding” and make sure it says Resize to mod16

Encoding to Vita resolution (skip if you are making minimkv):
3.2 Select "Clever (TM) anamorphic encoding” and make sure it says Resize to mod16. Then select Avisynth Profile *Scratchpad* from the drop down menu of resolutions. Then to the right of that click "config." There will be a window with some text. Make sure the last or second to last line that says Spline36Resize says: Spline36Resize(960,544) # Spline36 (Neutral). Then click ok. If it prompts you to save it, click no and it will save it to the scratchpad (which is what you have selected anyway). Doing this step resizes the video the the native resolution of the PS Vita.

Image

4. Click the Filters tab and select the “Source is Anime” box and make sure the Filters part at the bottom matches the picture (if you use one of my pre-configured settings this will be automatic) MAKE SURE you select “Source is Anime” every time though as this isn’t automatic.

Image

5. Click Save and MeGUI will load the AVS script file automatically (where the video file is located there will be an AVS script icon, do not delete until encoding has finished).

6. Under Audio Input locate the video file which you are using.

Image

For Minimkvs, skip 7.2
7. Make sure that under Video Encoding the Encoder settings is x264: 1P-Const.Quality Animation SK1-2 HQ. File Format is MKV. Under Audio the Encoder settings is Nero AAC:
NDAAC-HE-VBR~48Kbps. File Format is M4A.

7.1. Next to x264: 1P-Const.Quality Animation SK1-2 HQ you will see “Config”. You can change the quality of the encode by changing the number next to quality – the lower the
number the higher the quality. The lower the number, the larger the file size will be as well. I generally go for 23 or 24, but for some files I do 18 or 20. This is based on personal preference.

The following is required for a PS Vita compatible MP4!
7.2. In the same config window as 7.1, you need to put AVC Level to 3.1. Then click "ok." Do not save it to the template, keep it as scratchpad. Without doing this step, the Vita will see the mp4, but it will tell you it is incompatible with the console.

Image

For MiniMKV:
8. Click Auto Encode and make sure the Container reads MKV and “No Target Size" (use profile settings) is selected. Then hit Queue. (Repeat above steps for the rest of your video files).

For PS Vita MP4:
8. Click Auto Encode and make sure the Container reads MP4 and “No Target Size" (use profile settings) is selected. Then hit Queue. (Repeat above steps for the rest of your video files).

Image

9. Click the Queue Tab to see the list of encodes, once you have added them all click Start.

Image

10. Encoding time will depend on computer specs, the amount of processors running on your computer, what you are doing on your computer while it encodes, as well as video resolution and size. With the above settings, PS Vita MP4's take about 15 minutes to encode on a Intel Core i5 2500k 3.3GHz CPU, AMD Radeon HD 6670 1GB graphics card and 8GB of RAM.

-Encoding End -

Here are some of my results:
MiniMKV: This was originally a 5.5GB 720p MKV which encoded to 805MB 720p MiniMKV (Quality set to 24)
http://i.imgur.com/0v0Mn.jpg

http://i.imgur.com/IWoqq.jpg

http://i.imgur.com/Aj1Jn.jpg

PS Vita MP4 (Quality set to 18):
http://i.imgur.com/ImsFR.jpg

http://i.imgur.com/bzR0P.jpg

http://i.imgur.com/yLl3Z.jpg

http://i.imgur.com/LRats.jpg

The MP4 720p encodes range in size, but all are close to 200MB or over for ~24 minute videos. It depends on grain in the original video, size of the original, etc. Overall though, quite a small size for HD.

Anyway, I hope I helped you guys out.

MeGUI can also be used for quite a lot of different encoding. It is a very useful encoding tool.
Advertising
Last edited by Cheesethief on Sun Sep 02, 2012 12:37 am, edited 2 times in total.
Raspberry Pi Model B Rev. 2 Raspbian Wheezy Powered Headless Server
PS3 CECHP01 Habib Cobra 4.65 v1.00
PS Vita PCH1001 3.18 TN-V10 via Gladiator Begins
Desktop Windows 8.1 and Ubuntu 14.04.1 LTS
Laptop Ubuntu 14.04.1 LTS
Assassin96
Posts: 14
Joined: Fri Aug 31, 2012 12:59 am

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Assassin96 »

Thanks for the Advance tutorial.
I have a program that can convert video for PS VITA but your tutorial help me in decoding some video. :D
Advertising
Nephurus
Posts: 89
Joined: Fri Aug 31, 2012 7:19 pm

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Nephurus »

thx for the Tut . always good to know as much as i can b4 i find all my old anime dvd's.
HaYNigloo
Posts: 76
Joined: Tue Oct 19, 2010 11:14 am

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by HaYNigloo »

Thanks for the tut(great job), IMO, I feel putting media(besides games) on your vita is a waste of space. Simply because we are limited to 32 gigs. Now, the PSP is a different story, we can fit up to 64 gigs in there. Even then, I feel like it's not enough to for all games, emu's, and everything homebrew. Sorry for being a deb downer, but I just wanted to share my feelings on thread. :D
My Consoles:
[spoiler]PSP 2001 TA-088v2
6.60 PRO-C
PS VITA
3.18 OFW
PS TV
3.20 OFW/3.20 TN-v10 eCFW
Cheesethief
Posts: 367
Joined: Sun Aug 19, 2012 9:15 pm

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Cheesethief »

HaYNigloo wrote:Thanks for the tut(great job), IMO, I feel putting media(besides games) on your vita is a waste of space. Simply because we are limited to 32 gigs. Now, the PSP is a different story, we can fit up to 64 gigs in there. Even then, I feel like it's not enough to for all games, emu's, and everything homebrew. Sorry for being a deb downer, but I just wanted to share my feelings on thread. :D
You're welcome guys. I like the OLED screen. xD My phone right now can't handle 720p mkv's (or other 720p files for that matter) and the Vita has a nice 5" screen. I do not have much on my Vita right now in terms of games and I usually put ~6 24min episodes on it (4gb memory stick, lol).

Once you have everything set up, it really isn't as long or hard as this long winded tutorial may suggest.

I also want to give a warning that the lastest FFMS update (r706 Server Date: 28.08.2012) breaks OGG audio support. It will error if the source has .Ogg VORBIS audio and abort encoding.
Raspberry Pi Model B Rev. 2 Raspbian Wheezy Powered Headless Server
PS3 CECHP01 Habib Cobra 4.65 v1.00
PS Vita PCH1001 3.18 TN-V10 via Gladiator Begins
Desktop Windows 8.1 and Ubuntu 14.04.1 LTS
Laptop Ubuntu 14.04.1 LTS
Zyrkl
Posts: 219
Joined: Sat Sep 01, 2012 10:42 pm
Location: The Shire

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Zyrkl »

Great tutorial. But can the Vita run 1080p? Sorry, but i'm pretty misinformed about the Vita's specs.
2x Psp 1000 M33 5.00 CFW
Psp 2000 (Bricked)
Psp 3000 6.20 CFW
2x Ps Vita 3G 1.81 eCFW
Cheesethief
Posts: 367
Joined: Sun Aug 19, 2012 9:15 pm

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Cheesethief »

Zyrkl wrote:Great tutorial. But can the Vita run 1080p? Sorry, but i'm pretty misinformed about the Vita's specs.
As far as I know, the Vita does not support 1080p, but it doesn't matter, the Vita's screen is 960x544. The Vita will probably refuse to play 1080p on the basis of Sony limiting support more so than being incapable.
1080p files would also be big and we are limited in memory size to 32gb.

It would be best to re-encode to the Vita's native resolution, bringing filesizes down and having no discernible quality loss while being played on the Vita.

Edit: added step to re-size video to PS Vita Native Resolution.
Raspberry Pi Model B Rev. 2 Raspbian Wheezy Powered Headless Server
PS3 CECHP01 Habib Cobra 4.65 v1.00
PS Vita PCH1001 3.18 TN-V10 via Gladiator Begins
Desktop Windows 8.1 and Ubuntu 14.04.1 LTS
Laptop Ubuntu 14.04.1 LTS
Emophia
Posts: 1
Joined: Fri Oct 05, 2012 6:26 pm

Re: PS Vita MKV to MP4 in HQ and MiniMKV Tutorial

Post by Emophia »

Hi, thanks for this great guide it worked perfectly.

But I was wondering, with softsubbed subtitles I use MKV extractor to extract the *** file from the video and then use the add subtitles option under filters

Is there a simpler way to do this within MeGUI? Just wondering because I know next to nothing about this stuff.

And thanks again for the guide! I can finally catch up to my old anime backlog on my vita now.
Locked

Return to “General”