Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-04-2011, 01:57 AM   #1
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
A Little Contribution

I thought I would make a little contribution to the community. I recently bought my wife a PSP. She's pregnant and likes video games, but she hurts if she has to sit up for long periods of time, so I got her a PSP since she can link it with the PS3 and read comics, play games, etc. Well one of the first issues we ran into was that none of the programs in the repositories (Arista, Transmaggadon or something, Handbrake no longer has a preset and neither does WinFF, and OGMRIP will only take input from DVDs.) that have PSP presets worked. They would convert the video sure, but the PSP wouldn't play them. She has a God of War edition PSP 3000. So I wrote a little script for her to convert videos and they seem to work just fine on her PSP. Click here to download the script. Just make it executable, double click it and click "Run from Terminal". I just threw this together in about 20 minutes so if you want release notes open the file in a text editor, I threw comments in there so when I go back to edit it and upgrade it when she starts bugging me for new features I don't forget what does what. I named it AnyPSP because it just popped into my head and a quick Google search on the name didn't turn anything up. For those of you who just want to do the work yourself or are in a command line only environment, here's the workhorse of the script that actually does the conversion:
ffmpeg -i "sourcevideo" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "destinationvideo"
Features she's already asked for that I'll see about working into it.
1) Playing a sound when it's done along with the popup message, or at least an option to do so.
2) A "pretty" desktop icon.

On top of that I'll probably throw in some things like error checking (you don't have the codecs necessary, etc.)
Old 01-04-2011, 03:36 AM   #2
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
Nice, thanks.
Maybe you can create a little tutorial :
Old 01-04-2011, 02:56 PM   #3
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Original Poster
Rep: Reputation: 56
Will do as soon as I've got all the kinks ironed out. Just found out in testing last night that it doesn't work on video files that have more than 2 audio channels. So far on the videos I have all of the ones that failed have been .mkv videos that are in an HD format (1080i/p or 720p with something other than basic stereo sound). This was before I got the PS3 and started doing them in MP4. It's easy enough for me to just re-rip the movies, but I want this to be kind of a catch all for anybody to just take off and run with.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Source Contribution harry edwards Linux - General 4 12-19-2009 09:45 AM
My first Official contribution to a Distro:) linus72 Linux - General 2 07-19-2009 09:50 AM
contribution babu.knl Linux - Newbie 1 04-20-2008 11:17 PM
Iptables Wiki Contribution xathras Linux - Security 1 04-29-2005 06:38 AM
HCL contribution missing. jdblick LQ Suggestions & Feedback 6 03-24-2005 11:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration