Log in

View Full Version : mencoder aac encodering (without faac) ?


Selur
12th October 2011, 17:39
Using the standard mencoder version that comes with ubuntu, faac is not included in mencoder,..

when using:
mencoder -lavdopts threads=8 -mc 0 -noskip -aid 1 -ovc frameno -oac lavc -lavcopts acodec=aac:abitrate=128 -o "test__aid_1__18_11_43_591_01.aac" "test.avi"

I get the following info:
"WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help."
and an avi, if I use:

mencoder -lavdopts threads=8 -mc 0 -noskip -aid 1 -ovc frameno -oac lavc -lavcopts acodec=aac:abitrate=128 -of rawaudio -o "test__aid_1__18_11_43_591_01.aac" "test.avi"

I get an aac file without the adts headers,.. (-> can't mux it with mp4box, can't playback it with anything :/)

(-of lavf -lavfopts format=mp4 also creates a not usable file,..)

Does anybody know what I'm doing wrong, or is mencoder not capable to produce a proper aac output file?

Cu Selur

Ps.: I know I could use eac3to or ffmpeg, but I want to know if this is possible with mencoder. ;)

smok3
12th October 2011, 19:00
afaik, if this is the same encoder as in ffmpeg, then it is indeed borken. ( i'am currently using it with ffmpeg and mp4 files are cool as it seems, check the redvan script posted here http://forum.doom9.org/showthread.php?t=162621 )

Selur
12th October 2011, 19:35
I know, I also use ffmpeg (as another option) and know that it works there,.. ;)