avconv: getting aac to work. -strict experimental doesn't work

Nicholas picture Nicholas · Nov 6, 2014 · Viewed 7.3k times · Source

I am trying to get the following screencast command to work:

But I still get the following error:

encoder 'aac' is experimental and might produce bad results. Add '-strict experimental' if you want to use it

Other sites suggest making sure that the -strict experimental appears immediately after the aac parameter, which I have done, to no effect.

Answer

mstorsjo picture mstorsjo · Nov 6, 2014

Move both the -acodec aac and -strict experimental to somewhere after the last -i parameter in the command line, before the output file name.

Parameters to avconv are parsed as "avconv [input1 options] -i input1 [input2 options] -i input2 [output options] outputfile", so when you added these parameters before the second -i they were interpreted as options to the second input, not to the output.