Home
video
megui
Video - 25fps conversion
DVD to PSP (not simple)
decreasing file size for travel
belight - audio for video
atomchanger- final stage
audio for music
audio for enhanced AAC
How to encode using X264 and megui for your
PSP
Please see this page for an issue regarding megui
and threads which can cause files to not work, and thus a lot of head scratching
Step one, create your AVS script.
avisource("c:\video.avi", audio=false)
LanczosResize(368,208)
either copy and paste that into a file with a .avs extension, or use the ones in
the zip
if your source isnt an avi, you can of course use
directshowsource ("c:\video.mp4",
audio=false")
if avisynth says it cant work out the fps, then add the fps=25 (or whatever)
directshowsource ("c:\video.mp4", fps=25,
audio=false")
always test things out by double clicking the file and opening it media player
classic to make sure all works ok. Doesnt have to be an mp4 file, whatever can
be opened in media player should work (special case for DVD VOB files, coming
soon)
Step Two, configure megui
load up megui
under the input tab video section, point it to your AVS file.
make sure AVC is the codec and file type is RAW.
also, make sure my video profile is selected.

to change the pass settings, or any settings, click the config button. 2 passes
are generally suggested, although one pass (ABR) is fine if you want speed.
Also, set your Bitrate. Try various ones till you are happy, but 175 does
actually give watchable results. The higher your Bitrate, the larger the end
file. Slower moving films work better at a low Bitrate than fast moving action
or sports. Also, the smaller resolution (relative) gives a fine picture on your
PSP, you might be surprised.

you can select the turbo option for the first pass, this discards some of the
settings not needed for a 2 pass encode.
click on okay in the bottom right, then click the queue button to add the
first pass to the job queue, you can select the queue tab at the top to make
sure its there. dont press start yet ;)
EDIT:
you can speed things up now by choosing automated 2 pass in the drop down box,
make sure turbo is ticked and set the bit rate. this will automatically set 2
pass for you and you can then click ok and start.
once you have the first pass in the queue, click the config button under the
video section of general tab and change the mode in the general tab to the
second pass. I would also suggest setting the threads to 1 and doing a short
test, myself and other users encountered a weird situation where the PSP totally
locked up (or wouldnt play) a clip with x264 and 2 threads. Very bizarre
as it played just fine on the PC, but suggested its set to 1 thread until you
are comfortable with the settings, then make a short 2 thread test. megui will
also automatically put 2 threads in the setting, even if you only set one. to
change this, go to tools - settings and untick "automatically set number of
threads". then when you chose one in the settings, it will stay.

again, click the okay button to go back to the main megui window. now,
under video output, click the box to the right with the two .. and input the
name you want your file to have. its only going to be the raw video, so dont
worry too much about it for now.

and again, click the queue button to add the second job to the queue. go to the
queue tab and make sure both jobs are there, looking something like this:

if they are, press the start button in the bottom right and wait ;)