LinuxQuestions.org
Help answer threads with 0 replies.
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-03-2007, 10:39 PM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
ffmpeg - psp [] Need help encoding to mp4


Hey guys I'm hopeing someone can give me some help with this task.

This is the version I have: FFmpeg version SVN-r6835
and this is the command I used (well one of them):

ffmpeg -i South.Park.S10E08.World_of_Warcraft.avi -acodec aac -ab 128 -vcodec mpeg4 -b 1200kb -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -title X -f psp output.mp4

Thats from the ffmpeg site. My problem is every time I try to play a video that ive made with the above I get "This video cannot be played." I know there is a ffmpeg version with psp support and I did download the most recent version with the svn. They don't use cvs anymore. I've not installed it yet cause well 1) its source and I don't want it to interfere with the version that is installed and I'd have to uninstall a few programs to be able to uninstall ffmpeg because of the dependencies. (well there is that nodep thingy) and 2) when I run ./configure on the new version it says aac enabled - no. Which I know I need.

Any help would be great thanks guys. (and girls)

Nomb
 
Old 01-04-2007, 08:31 PM   #2
Benanzo
Member
 
Registered: Sep 2005
Location: Seattle
Distribution: Ubuntu, Debian flavors
Posts: 119

Rep: Reputation: 15
Have a look as PSPVC

http://pspvc.sourceforge.net/

I had some trouble with the install until I upgraded FFMPEG, which it sounds like you've done. It works like a charm. I can't help you with the ffmpeg commands though. I wish I could figure it out myself so that I could write a script to transcode all my vids.
 
Old 01-04-2007, 11:52 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
here's the script I use:
Code:
#! /bin/bash
# Encode video to psp format

# Default Settings
WORK_DIR="/home/steve/Movies"

# Make Screenshot
ffmpeg -y -i $1 -f image2 -ss 5 -vframes 1 -s 160x120 -an M4V00001.THM

# Encode Video
ffmpeg -i $1 -f psp -b 768 -ar 24000 -ab 64 -s 368x208 M4V00001.MP4

mv M4V00001.* $WORK_DIR
It encodes the video and makes a screenshot with names that work for my psp. it names the files the same everytime: this is because I can only fit one show at a time on my memory stick anyways so I never had a problem. you can rename the files replacing 'M4V00001' with 'M4V00002' and so on. hope it helps.
 
Old 01-06-2007, 12:11 AM   #4
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
I do have the src but I haven't installed it yet because I can't uninstall the old version without it uninstalling the dependencies as well. Can I install the src over the yum'd version?

nomb
 
Old 01-06-2007, 12:34 PM   #5
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
It should install over the other version fine unless your distro (which isn't in your profile) does something goofy with the paths.

Quote:
when I run ./configure on the new version it says aac enabled - no. Which I know I need.
Try it like this:
Code:
./configure --enable-faad --enable-faac
Note: this may add a few dependancies.

Last edited by johnson_steve; 01-06-2007 at 12:35 PM.
 
Old 01-06-2007, 01:57 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
There are lot of options to enable in the configure. Try doing

./configure --help to see them all

Pretty much all support options are disabled by default and you need to enable the ones you need.
 
Old 01-08-2007, 05:49 PM   #7
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
Ok got the configure options and everything and I even got it to work. YaY. The problem is now the ffmpeg is using more updated libraries. so when I uninstall the old ffmpeg and install the new one mplayer and vlc wont work cause its missing the old library files...

Any idea how to fix this?

nomb
 
Old 01-08-2007, 07:42 PM   #8
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
Simple gentoo-minded answer: recompile mplayer and vlc. Many programs depend on ffmpeg and the libraries it provides. In order to work they must be compiled against the version you have installed.
 
  


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
FFMPEG vs MPLAYER vs MENCODER and batch conversions to MP4 ? AngusM Linux - Software 2 11-08-2006 08:20 AM
psp-linux DespotEuodia Programming 1 07-01-2006 03:29 PM
Need help converting MP4 files for PSP SolidSnakeX28 Linux - Software 13 03-11-2006 06:45 AM
Encoding MP4 Video SolidSnakeX28 Linux - Software 1 07-31-2005 10:15 AM
.PSP Editor? Crashed_Again Linux - Software 0 02-22-2005 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration