LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problem AAC while encoding mp4 for my PSP (https://www.linuxquestions.org/questions/linux-general-1/problem-aac-while-encoding-mp4-for-my-psp-549307/)

J_angel2000 04-26-2007 06:02 PM

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!!!

David the H. 04-27-2007 12:19 AM

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.

J_angel2000 04-27-2007 12:40 PM

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?

J_angel2000 04-28-2007 01:27 PM

Noone can help me? I have tried google but it's quite difficult for me. Anyone helps me?

David the H. 04-29-2007 02:40 AM

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.


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