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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-03-2007, 10:39 PM
|
#1
|
Member
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675
Rep:
|
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
|
|
|
01-04-2007, 08:31 PM
|
#2
|
Member
Registered: Sep 2005
Location: Seattle
Distribution: Ubuntu, Debian flavors
Posts: 119
Rep:
|
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.
|
|
|
01-04-2007, 11:52 PM
|
#3
|
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:
|
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.
|
|
|
01-06-2007, 12:11 AM
|
#4
|
Member
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675
Original Poster
Rep:
|
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
|
|
|
01-06-2007, 12:34 PM
|
#5
|
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:
|
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.
|
|
|
01-06-2007, 01:57 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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.
|
|
|
01-08-2007, 05:49 PM
|
#7
|
Member
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675
Original Poster
Rep:
|
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
|
|
|
01-08-2007, 07:42 PM
|
#8
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 03:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|