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.
|
 |
08-11-2005, 03:44 PM
|
#1
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Rep:
|
Need help converting MP4 files for PSP
I have a Sony PSP that I want to encode videos for, but the device won't recognize files created with mencoder for some reason. I've read about people using ffmpeg to do it, but I can't seem to encode the files there myself. So, my question is, how can I encode MP4 movies that will work properly on the PSP?
|
|
|
08-11-2005, 10:17 PM
|
#2
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
C'mon people, it can't be that hard for you, the more experienced!
|
|
|
08-12-2005, 06:57 PM
|
#3
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
Anyone?
|
|
|
08-12-2005, 07:29 PM
|
#4
|
Member
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711
Rep:
|
You're using the mencoder option vcodec=mpeg4, correct?
|
|
|
08-12-2005, 10:21 PM
|
#5
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
Yeah, I'm using the vcodec=mpeg4 option.
Here's the whole command:
mencoder -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o outputfilename inputfilename
|
|
|
08-13-2005, 11:15 PM
|
#6
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
So no one knows?
|
|
|
08-27-2005, 12:03 AM
|
#7
|
Member
Registered: Dec 2002
Distribution: Debian, Libranet, Red Hat
Posts: 43
Rep:
|
Are you putting it in the right directory? Some of the videos I've downloaded say copy it to /MP_ROOT/100ANV01 .
edit: After downloading the new 2.00 PSP firmware, I formatted my memory stick. It created all the right directories for me. I put the *.thm and *.mp4 files under /MP_ROOT/100MNV01 and they worked for me.
Last edited by Meatwad; 08-27-2005 at 03:00 PM.
|
|
|
08-27-2005, 08:33 PM
|
#8
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
And from where would I get the .thm files?
|
|
|
08-28-2005, 02:25 AM
|
#9
|
Member
Registered: Dec 2002
Distribution: Debian, Libranet, Red Hat
Posts: 43
Rep:
|
I don't think the *.thm file is necessary. I think it just provides a thumbnail preview for the movie but I could be wrong. I didn't actually encode this video, but I downloaded it off the net.
|
|
|
08-29-2005, 10:27 PM
|
#10
|
Member
Registered: May 2005
Distribution: Gentoo Linux
Posts: 85
Original Poster
Rep:
|
I think I found out how to do it, but could someone tell me how I could make a video with 'aac' sound and mpeg-4 video using mencoder and/or ffmpeg? The specific command one would use, I mean.
|
|
|
09-01-2005, 08:35 PM
|
#11
|
LQ Newbie
Registered: Apr 2005
Posts: 18
Rep:
|
Did you remember to set the resolution and bit rates correctly? You must have 320x240(4:3) or 368x208(16:9) Or smaller, The PSP has to have these resolutions.. and the Bitrate, total bitrate of audio and video together must be 768 or smaller. So don't forget to make those proper settings, I haven't yet tried it, with my gentoo box, but i know it requires that no matter what so yea.
|
|
|
09-06-2005, 07:29 AM
|
#12
|
Member
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280
Rep:
|
> ffmpeg -i sourcemovie.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 M4V00002.MP4
This will create an MP4 movie with a frame rate of 14.985 (-r 14.985), a resolution of 320 by 240 (-s 320x240), a video bitrate of 768kbps (-b 768), an audio sampling frequency of 24000 Hz (-ar 24000) and an audio bitrate of 32 kbps (-ab 32).
You need to have libfaac installed (I had to copy /usr/local/lib/libfaac* to /usr/lib in order for ffmpeg to find it), and compile ffmpeg with the --enable-faac option.
|
|
|
09-10-2005, 02:57 PM
|
#13
|
LQ Newbie
Registered: Sep 2005
Posts: 1
Rep:
|
Quote:
Originally posted by chup
> ffmpeg -i sourcemovie.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 M4V00002.MP4
This will create an MP4 movie with a frame rate of 14.985 (-r 14.985), a resolution of 320 by 240 (-s 320x240), a video bitrate of 768kbps (-b 768), an audio sampling frequency of 24000 Hz (-ar 24000) and an audio bitrate of 32 kbps (-ab 32).
You need to have libfaac installed (I had to copy /usr/local/lib/libfaac* to /usr/lib in order for ffmpeg to find it), and compile ffmpeg with the --enable-faac option.
|
Did you manage to create movies of size 368x208 this way? 320x240 works for me this way, but 368x208 is considered 'incompatible' by the PSP.
|
|
|
03-11-2006, 06:45 AM
|
#14
|
Member
Registered: Jan 2001
Distribution: Slackware 12.1
Posts: 32
Rep:
|
|
|
|
All times are GMT -5. The time now is 11:15 PM.
|
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
|
|