LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-04-2011, 12:57 AM   #1
dudeman41465
Member
 
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:
Code:
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, 02:36 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Nice, thanks.
Maybe you can create a little tutorial :
http://www.linuxquestions.org/linux/answers
 
Old 01-04-2011, 01:56 PM   #3
dudeman41465
Member
 
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.
 
  


Reply


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 08:45 AM
My first Official contribution to a Distro:) linus72 Linux - General 2 07-19-2009 08:50 AM
contribution babu.knl Linux - Newbie 1 04-20-2008 10:17 PM
Iptables Wiki Contribution xathras Linux - Security 1 04-29-2005 05:38 AM
HCL contribution missing. jdblick LQ Suggestions & Feedback 6 03-24-2005 10:13 AM


All times are GMT -5. The time now is 01:31 PM.

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