I have always seen methods to encode videos for the PSP using FFmpeg or by using various software for various operating systems. My favorite way to encode is to use the most difficult and time consuming way possible. This may not be worth it but I prefer this way because it gives me greater control over the quality of my videos and what goes into them.
Note: This will produce a video that is only compatible with PSP firmware version 2.00 or higher.
This method will require MPlayer/MEncoder, normalize, neroaacenc and MP4Box. You will also need the empty.psp included in the file attached at the bottom.
I made a batch file to do this in Windows but converting this to a shell script for another OS is really easy.
@ECHO OFF
:: Initialize variables
:: Input file name
SET IF=”My Video.avi”:: Output file name (no spaces)
SET OF=test:: Output video bitrate
SET BITRATE=500:: Video crop (run this command ahead of time so you can fill it in) :: mplayer -vo null -nosound -vf cropdetect -ss 600 -frames 100 -fps 100
SET CROP=448:336:0:0
:: X resolution (this shouldn’t need changed)
SET RESX=320:: X264 encode options SET X264OPTS1=trellis=2:subq=6:4×4mv:qcomp=1:me=3:frameref=3 SET X264OPTS2=brdo:bime:mixed_refs:b_pyramid:weight_b
SET X264OPTS=%X264OPTS1%:%X264OPTS2%:%BITRATE%
:: Rip the audio and convert it to AAC mplayer %IF% -vc null -vo null -ao pcm:fast:file=Audio_%OF%.wav -af lavcresample=48000 normalize –peak Audio_%OF%.wav neroaacenc -lc -if Audio_%OF%.wav -of Audio_%OF%.mp4 -q 0.15 del Audio_%OF%.wav mp4box -raw 1 Audio_%OF%.mp4
del Audio_%OF%.mp4
:: Encode the video mencoder %IF% -vf crop=%CROP%,scale=%RESX%:-10,harddup -ofps 25000/1001 -o Video_%OF%.264 -of rawvideo -oac pcm -ovc x264 -nosound -x264encopts %X264OPTS%:turbo=1:pass=1 mencoder %IF% -vf crop=%CROP%,scape=%RESX%:-10,harddup -ofps 25000/1001 -o Video_%OF%.264 -of rawvideo -oac pcm -ovc x264 -nosound -x264encopts %X264OPTS%:pass=2
del divx2pass.log
:: Mux all the files together and create the MP4 copy empty.psp %OF%.psp mp4box -fps 24.975 -add Video_%OF%.264 -add Audio_%OF%_track1.aac %OF%.psp
move %OF%.psp %OF%.mp4
After this is all done you should have a PSP compatible video. To play it, rename your video to MAQ#####.MP4 where ##### are 5 random numbers you pick; 00001 is a good start. Once they’re renamed, go to the root of your PSP’s memory stick and put the video in /MP_ROOT/100ANV01. If those directories do not exist, create them. Now you should be able to watch the video on your PSP.
empty.tar.gz
This entry was posted in Software, Videos. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.