forum

[Guide] How to create High Quality/Size Videos

posted
Total Posts
60
show more
Topic Starter
blissfulyoshi
For 4min plus, it really depends on what the item is.

If is some mv for a vocaloid song, it probably doesn't have any super complex animations in it (unless you map something like Aria), so I have used quality lvl 20 for that even at 3-4min. However for live performance, I usually turn the quality to 32, and try an arrangement of filters. However, I haven't found any great filters for rl though.
Genkishi
Okay I'm stuck at 4 too.

After i run the script and waited for 30s there's no Filters that appear in the rightmost top area



And i'm having trouble at the .xml file part..i already put the .xml file with the lines on it in the x264 folder but there's no "quality 5,etc..." that appears
Topic Starter
blissfulyoshi
Woops, I was supposed to say top-left not top right (You can see it in your picture under Video (with MPEG-4 AVC and configure)).

Also, for the .xml file, you had to keep the original name that went with the file, but I don't feel like explaining that. Just follow the part of the guide not in the spoilerbox.
popner
Translated into Chinese: t/141953
Topic Starter
blissfulyoshi
Thanks popner, though I did notice that in one of the Chinese guides, someone had some other video settings posted.
alex_98
well, my compressed video is 297MB, while uncompressed 720p is 295..

a 15 min miku medley on MMD..
Topic Starter
blissfulyoshi
Well... 15min things usually mean lower res and lower nitrate to meet requirements. Try 360p with 32 for quality. Feel free to host a good version of the video elsewhere to give your players something better to see.
alex_98
https://osu.ppy.sh/s/175087
it's compressed to 198p with 17MB, I could upload the map but somehow it can't be updated anymore..

never mind.. it's just some issue that will deal with itself. It did upload once afterall
arviejhay
I compress a video
Uncompress size is 59 mb
then compress size is 22 mb but when i insert it in the editor why it's freezing or delaying sometimes ?
Topic Starter
blissfulyoshi
Well if your computer can't process the amount of data the video is giving it, the video will stutter (also osu!'s video playback is not very optimized)
xxdeathx
i don't think this works anymore, avidemux always crashes when i try to save video. i've used combinations of different settings but none of them work.
Topic Starter
blissfulyoshi
I know I had newer versions of avidemux crash on me, so I stayed on 2.6.3 which has been working for me. I'll probably try upgrading again soon, but it is not a high priority for me.
xxdeathx
Now I use Freemake Video Converter to grab both mp3 and video from the original episode. It's a lot user friendlier than Avidemux, it never crashes, and I can't tell the video quality difference.
Rizumu Tenshi
I've got a YTPMV and I could mute all audio in 2.6.1 but then...

Video Output is H.264 but the configuration puush is no longer available it seems, can you repuush it or tell me how to configure it myself? I don't get bored when configuring the settings myself.
Topic Starter
blissfulyoshi
The puush link only has the manual configuration for 2.5. If you want the configuration for 2.6. It is much easier for you download the scripts in step 2, run it, and then save the H.264 configuration. (I need to update this guide someday, but I am not exactly feeling motivated)
Rizumu Tenshi
Oh my. This saved me time, even though I had to keep it 720p and at a size of 13 MB (quality slider at 26). Thank you very much~ :)
Alians

blissfulyoshi wrote:

Purpose:
This is a guide to teach people how to reencode videos to acheive the highest quality possible while keeping the filesize low, regardless of the scenario.
Before I begin, I want to express special thanks to 3 people:
ziin: He kicked off the Avidemux guides and created a lot of the basis which I will work off today. I copied over quite a few of his pictures without asking for permission, so (Guide: http://osu.ppy.sh/forum/viewtopic.php?f=56&t=58235)
ampzz: He taught me a lot on filters and helped me constantly test out filter combinations. I am probably forgetting a lot of other things he did for me, but at least, let me say thanks for everything.
Miya: Tested the various revisions of the guide for me, and forced me to continue to improve ths guide. I don't think this guide would have been updated it is wasn't for him/her
Why should you use this guide?
This guide is simple and will give you better results than many other encoding methods. For samples of what this encoding method can do, check out http://osu.ppy.sh/s/41379 http://osu.ppy.sh/s/69992 and http://osu.ppy.sh/s/68504 (this map is very long so quality took a hit)

Required Items:
Avidemux 2.5 or 2.6 32bit (Avidemux 2.5 and 2.6 require slightly different steps, so I have notes for both 2.5 and 2.6)
A high quality source
A fast computer or a lot of time (Please do not underestimate the amount of processing power this will take.)

Steps:
1. Select the section of the video you want to encode:
To do this, there is an A and a B at the bottom of the screen. Navigate to the first frame you want to start the video from and press the A. Then go to the last frame and press the B. Since it is difficult to get to the exact frame, use the arrow keys on your keyboard to go travel frame by frame. (Reference: http://www.avidemux.org/admWiki/doku.ph ... ng:cutting)

From here, you can keep on following the easy way, or skip down to the spoilerbox to do things the long way.
2. Save the scripts (2.5 2.6) and unzip them somewhere.

3. Run the Scripts
2.5: Press File->Load/Run Project
2.6: Press File->Tinypy Project->Run Project
Regardless of which avidemux you have, select the file you are told to use by the following questionaire.
Are you dealing with real life footage or animated material?
If real life footage, use RealLife.txt
If animated, is the video of decent quality , or do you want the edges of sprites to be shaper?
If the video is of decent quality, use AnimationSimple.txt
(2.5 only) If the video has slightly fuzzy edges, use AnimationFilter1.txt or AnimationFilter2.txt (Beware, these filters will increase your video encoding time a lot and can introduce artifacts) (Also, due to missing filters in Avidemux 2.6, these are not available in the 2.6 package)

4. Resize to correct dimensions for osu!
Wait 30s and then press filters in the top leftish area, and select the Resize filter from the rightmost list. From there, click on the Configure button on the bottom right of the window and then configure the resolution to your hearts content (480p is the usual one). (Pictures are in Step 4 in the spoilerbox below)

*If filesize is too large or quality is too low then adjust quality slider as talked about in step 3 in the spoilerbox below

Below are the steps to do things manually in 2.5, but the steps in 2.6 are very similar, so you should be able to follow along fairly easily.

2. Remove the Audio from the video:
ziin's guide (http://osu.ppy.sh/forum/viewtopic.php?f=56&t=58235) outlines this very well, so I advise you just follow his instructions.

3. Select the Video encoder to be MPEG-4 AVC and configure it:
2.5 2.6
As stated, click on the pull down menu and change it to " MPEG-4 AVC." Afterward, press on the "Configure" button below. You will be greeted with a screen that has bunches of tabs, options and what not.
I know none of you want to deal with configuring this, so here are some preconfigured settings http://puu.sh/ZePP . Place this file in C:\Users\<username>\AppData\Roaming\avidemux\x264 . If for some reason you cannot save the file from that page as a .xml file. Create a .xml file in the location specified and copy the lines in.
With the file in place, click on the top of the page and scroll down to select the name of the .xml file added (if you used mine, it is "quality 5"). With that we are done with configuration (that was easy), but if the filesize is too big or you want to push out more quality, feel free to adjust the quality slider on that page to your hearts desire. Afterward, just make sure to press "Ok."


4. Applying filters:
There are plenty of filters to choose from, so here is the set of filters I used for one of anime filter sets. Feel free to adjust the filters to suit your needs.

To start off this process, press the "Filter" button under Video as shown above.
Now apply the following filters in the order listed:
(Format: Category > Filter)
Sharpness > MSmooth by Donald Graft: High Quality, Threshold: 15, Strength: 3
Noise > MPlayer hqdn3d: stock settings (settings it starts with)
Sharpness > asharp: Threshold: 2.00, Strength: 2.00, Block Adaptive: -1.00, Do not check High Quality Block Filtering
Sharpness > MSmooth by Donald Graft: High Quality, Threshold: 15, Strength: 1 (to clean up oversharpening)
Noise > Cnr2: stock settings
Noise > FluxSmooth: Temporal Threshold: 8, Spatial Threshold: 8
Noise > Temporal Cleaner: Luna Temporal Threshold: 5, Chroma Temporal Threshold: 0
Transform > Resize: Whatever resolution you want that fits osu! standards, but I do recommend Lanzcos3 as your "Resize Method" (If you want a slight speed boost, switch to MPlayer resize)
5. Save Video:
File->Save->Save Video... or Ctrl+S, and then name your video as whatever_you_want.avi

6. Check video over:
Open your reencoded video file. Does it meet all of your demands? Are there random artifacts, oversmoothing, oversharpening, or something else that bothers you? If have those symptoms please start over and use AnimationSimple.txt or play around with the filters till you get your desired look.

Conclusion:
There you have it. At this point you should have a high quality video that fits all the specifications for osu!. If you want to experiment more on your own feel free to do so. I know this set of filters is not perfect for every scenario, but I am sure you get something decent out of this. If you want to suggest something better, feel free to do so. If for some reason you are not satisfied with the filters available in Avidemux, research ffmpeg and use that to encode.

FAQ:
My output video is longer/shorter than my original. What do I do to fix it?
This is what happens when the frame rate of your video is not 23.97 FPS. To fix this, go to video->frame rate... and uncheck "Use custom value." Now change the standard frame rate to the frame rate of your video. Usually the answer is NTSC - 30FPS
Topic Starter
blissfulyoshi
I just made a minor update to the guide to tell people how handle 10-bit content. I hope in the future that AVIdemux will be able to handle it, but for now, I included a ffmpeg script to be throw in a .bat file to solve the issue.

Also, as the filesize limit increases, I added a bit to the faq to tell you how to use that new file space.
BeatofIke
Cool 8-)
happy30
just rename the extension from mp4 to avi and it will work in osu
show more
Please sign in to reply.

New reply