Nexuiz Ninjaz - Practicing the Ninja Art of Nexuiz

Full Version: [How-to] Compress Your Videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Summary

Video compression is very important, no one wants to download a 500mb 30 second video clip. If your on windows, the easiest route to go is SUPER. If you're on Linux, try MediaCoder with Wine.

SUPER

Once you have installed SUPER, right click anywhere on the program (yeah, I know, that's weird) and select 'add multimedia files' from the menu that pops up.



Select your video file, then set your quality. Below are the settings that I use for the "High Rez" videos you find on this site.



For compression, I use XviD. I usually set the dimensions as either 640x480 or 768x576 depending on the length and the video bitrate to 1440-2256 again depending on the length. Audio I set to 96kbps stereo.

Set the output folder by again right clicking anywhere on the application and selecting 'Output File Saving Management'.

Click 'Encode (Active Files)'. Wait for the green bar to do it's thing and boom, you're done.

MediaCoder

Sorry, this section is not complete.
MENCODER

mencoder (MPlayer�s Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies to other MPlayer-playable formats. It encodes to MPEG-4 (DivX/Xvid), one of the libavcodec codecs and PCM/MP3/VBRMP3 audio in 1, 2 or 3 passes.

You can install it from your linux distribution repositories. With Ubuntu :

Code:
sudo apt-get install mencoder mplayer



mencoder is a simple command line tool.
The working directory is where the video is located :

Code:
cd ~/.nexuiz/data/video

you can list the files with ls (-l use a long listing format, -h print sizes in human readable format) :

Code:
ronan@amilo:~/.nexuiz/data/video$ ls -lh
total 90M
-rw-r--r-- 1 ronan ronan 90M 2007-11-25 20:11 dpvideo001.avi

dpvideo001 is an uncompressed video of 4 secondes, and take 90 MB ! We need to compress it with mencoder.


Audio and video codecs for encoding are selected with the -oac and -ovc options, video filter options are selected with -vf. Type mencoder -oac help or mencoder -ovc help or mencoder -vf help to get all the available options. We gonna use :

Code:
mencoder dpvideo001.avi -ovc lavc -lavcopts vcodec=mpeg4:vqscale=4 -ffourcc DX50 -oac mp3lame -lameopts br=128 -vf scale=640:480  -o output.avi


to play directly the video and see the result :

Code:
mplayer -vo x11 output.avi

What about the sizes of the video ?

Code:
ronan@amilo:~/.nexuiz/data/video$ ls -lh
total 91M
-rw-r--r-- 1 ronan ronan  90M 2007-11-25 20:11 dpvideo001.avi
-rw-r--r-- 1 ronan ronan 925K 2007-11-25 20:44 output.avi

the compressed video is only 0.9 MB :>

Ronan, great mencoder tutorial. Thanks for that :)

How long did that encode take for you?
It's fast, it encodes around 20 fps/sec on my old config (P-M 1,5 GHz; Ram 512 Mo, Ubuntu Gutsy)

To be more precise, I recorded a demo of 1 minute and transformed it into a uncompressed video with the following cl_capturevideo parameter : fps 25, width 640, height 480, and with low.cfg. That step take me around 11 minutes to get a file of 660 MB.

Now to compress the video with mencoder, I used the same indicated command (I only changed the scale parameter to 480:360). Finally, the video was encoded in 1m15 and I get a file of 8,2 MB.

N.B. since Super is just a front end to command line tool like mencoder, the encode time on the same configuration should be equivalent.
I've actually started using a higher video bitrate ~3000
foe mac users.... http://www.download.com/iSquint/3000-220...ag=lst-0-9
is a great program that can convert avi with blazing speeds. great for ipods to
He wouldn't compress my video.

/Users/Rik/Desktop/2008-04-25_12-21_dusty.dem: could not find codec parameters

Anybody know how to fix it. (first video compression)
This one I made today.
Fisume recorded it. It's not a speedrun.
I use iSquint
Awesome Tutorial, -z-.

Thank you :)
Now, can someone tell me a WORKING converter. iSquint doesn't work
Super seems to very strangely be full of trojans from that link
Pages: 1 2
Reference URL's