LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-26-2007, 06:02 PM   #1
J_angel2000
Member
 
Registered: Dec 2003
Location: Madrid, Espaņa/Spain
Distribution: Ubuntu Linux
Posts: 69

Rep: Reputation: 15
Problem AAC while encoding mp4 for my PSP


Hi everybody!!

I need to convert xvid/divx to mp4 Playstation Portable format on my Ubuntu Feisty.

I have tried this:

ffmpeg -y -i "The file to be converted".avi -title "The title of the file after conversion" -vcodec mpeg4 -s 320x240 -r 29.97 -b 1500 -acodec aac -ac 2 -ar 24000 -ab 128 -f psp M4V00001.MP4

Everything seems to be ok but finally it tells me that AAC codec is unknown :S What do I have to do and how, please?

Thanks a lot!!!
 
Old 04-27-2007, 12:19 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Make sure that you have faac and faad installed to handle the codec.

Whenever I have problems with the sound, I often find that it's easiest to strip the audio stream out, convert it separately from the video (perhaps through an intermediate .wav file), and remux it back in when finished. It always seems to work better for me that way.
 
Old 04-27-2007, 12:40 PM   #3
J_angel2000
Member
 
Registered: Dec 2003
Location: Madrid, Espaņa/Spain
Distribution: Ubuntu Linux
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David the H.
Make sure that you have faac and faad installed to handle the codec.

Whenever I have problems with the sound, I often find that it's easiest to strip the audio stream out, convert it separately from the video (perhaps through an intermediate .wav file), and remux it back in when finished. It always seems to work better for me that way.
Thanks, David. But Could you give me an orientation about how I can strip the audio stream out?

Last edited by J_angel2000; 04-28-2007 at 02:44 PM.
 
Old 04-28-2007, 01:27 PM   #4
J_angel2000
Member
 
Registered: Dec 2003
Location: Madrid, Espaņa/Spain
Distribution: Ubuntu Linux
Posts: 69

Original Poster
Rep: Reputation: 15
Noone can help me? I have tried google but it's quite difficult for me. Anyone helps me?
 
Old 04-29-2007, 02:40 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I personally like to use the tcextract tool from transcode to demultiplex, and mplex to recombine them, but then again, I mostly create mpeg2 videos for DVD's. There are other ways as well, such as mplayer's -dumpaudio option.

But you can even use ffmpeg with "-vn" and "-acodec copy" options to rip out the stream. You may have to pay attention to which output format (-f) you use though, depending on what the source file is (mp3, ogg, etc).

Or even better, use "-acodec wav" to convert the audio directly to .wav format, again while using the -vn option to make it ignore the video stream.

Then you can use faac to convert the audio to aac, and finally combine the streams again with ffmpeg.

Good luck.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg - psp [] Need help encoding to mp4 nomb Linux - Software 7 01-08-2007 07:42 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
aac/m4a support for JUK / decent aac music players reformedgeek Linux - Newbie 1 04-23-2005 02:52 PM
Anyone know how to rip CD's to Tagged m4a, AAC, mp4 files? carl0ski Linux - Software 2 04-17-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:13 PM.

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