NAV: daxcompress ffmpeg_psp pmpenc
| Take a look at vepp, too! |
Nobody seems to provide us Linux/unix/OSX people with a transcoder, but all the good ones seem to use ffmpeg which is already there for unix. If you don't want AVC you can use any version of ffmpeg, otherwise you need the patched version below. pspenc.sh is a wrapper for it all.
I "ported" the MobileHackerz version of ffmpeg back to unix. The following was only tested with Debian Linux unstable as of 2006-01-14 but should work fine elsewhere.
$ cd ~
$ tar zxvf ~/x264_051028.tar.gz
$ cd x264_051028/
$ ./configure --enable-pthread --prefix=${HOME}
$ make install
$ cd ~
$ tar zxvf ~/ffmpeg-051130-0.33.tar.gz
$ cd ffmpeg_051130/
$ patch -p1 < ~/ffmpeg-mh-unix.patch
$ ./configure --enable-faac --enable-x264 --enable-gpl \
--enable-xvid --enable-pthreads --prefix=${HOME} --disable-debug \
--extra-cflags=-I${HOME}/include --extra-ldflags=-L${HOME}/lib
$ make install
That's it. Binaries will be in ~/bin. Some files will be installed in ~/lib, ~/include and ~/man.
usage: pspenc.sh [option]... [file]...
--bitrate, -b set bitrate for video (384)
--4by3, -4 set aspect to 4:3 (default is 16:9)
--singlepass, -1 single pass encoding (default is 2-pass)
--mpeg4sp, -m use MPEG4/SP (default ist h.264/AVC, this need firmware
2.00 or above on the PSP)
pspenc.sh will create .pspenc/num in your home directory to keep track of the file number (nnnnn below).
$ pspenc.sh legal_movie_file.aviThis will result in files named MAQnnnnn.MP4 or M4Vnnnnn.MP4 which you will have to place into the folders /MP_ROOT/100ANV01 or /MP_ROOT/100MNV01 on your PSP respectively.
The instructions above will install ffmpeg in /usr/local/bin. If you already have ffmpeg in /usr/bin, that version may get executed instead. Check with
$ which ffmpegand modify pspenc.sh accordingly.
If you need additional codecs (like ac3) run
./configure --helpin the ffmpeg sourcedir. Follow the instructions. Enabling additional codecs may require that you install additional software. Then do
make clean make installagain.
pspenc.sh tries very hard to find a suitable resolution which doesn't distort your video while filling as much of the screen as possible. If it should get the aspect ratio wrong, please let me know.
| Last modified: Monday, 05-Feb-2007 01:47:54 CET |