Linux - GeneralThis 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
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.
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.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.