PSP and Linux

For Linux(nix) users, creating psp compatible files is so easy. Use the following.

How to convert videos to psp compatible format:
ffmpeg -i InputVideo -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 outputvideo.mp4

How to convert pdf to image(s):
convert nani.pdf nani.jpg
or you can use ghostscript instead using this script:
#!/bin/bash
if [ $# -ne 2 ];then
echo “Usage: $0 input.pdf outfile”
exit
fi
INPUT=$1
OUTFILE=$2
gs \
-dSAFER \
-dBATCH \
-dNOPAUSE \
-sDEVICE=jpeg \
-r150 \
-dTextAlphaBits=4 \
-dGraphicsAlphaBits=4 \
-dMaxStripSize=8192 \
-sOutputFile=${INPUT}_%d.jpg \
${TARGET}

To be able to execute convert and ffmpeg, you need to install them first of course.

Advertisements

~ by overblaze on November 12, 2008.

2 Responses to “PSP and Linux”

  1. […] psp? PSP and Linux Possibly related posts: (automatically generated)Kencan Pertama dengan FeistyNDS vs PSP beli […]

  2. thx, forever open source

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: