Page 1 of 1

Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 22 Jun 2013 21:28
by gepebril
Hi there,

First I see that cli transcoding works again in VLC under Windows, makes me very happy :)
But than I found out that mp4a doesn't work, it says VLC can't open encoder. It produces a file, but no audio. When you use 'mp3' I get video+audio (mp3).
Used command:

Code: Select all

"C:\Users\jaap\software\VideoLAN\VLC-2.0.7\vlc.exe" -vvv "E:\test10-sec.mpg" --sout=#transcode{vcodec=h264,venc=x264{interlaced},vb=1500,fps="29.97",acodec=mp4a,ab=128,channels=2,samplerate=48000}:standard{access=file,mux=ts,dst="E:\test-interlaced2.ts"}
I used Windows 7 home edition and official vlc-2.0.7-win32.zip

Is this the way it should be, or is it a bug?

Yours sincerely,

Albert

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 23 Jun 2013 13:13
by Jean-Baptiste Kempf
Add the --avcodec-strict option to -2 (I don't remember the exact name).

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 23 Jun 2013 17:51
by gepebril
@Jean-Baptiste Kemp,

Thx, do you mean I have to place this in the command line, and if so could you tell me where to place this in the command line. No matter where I place it, I get errors.

Yours sincerely,

Albert

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 25 Jun 2013 21:46
by mahal
It works! Thank you! I forced strictness to -2 in FFMpeg options in advanced VLC options. It's under Tools>Preferences, then I click All under Show settings, click on Video codecs under Input / Codecs, then FFmpeg . So it's: Tools>Preferences>Video codecs>FFmpeg . Under FFmpeg I scroll down to under Encoding and I go to Strict standard compliance and I set it to -2 .

Partial log:

main debug: using sout chain=`transcode{vcodec=none,acodec=mp4a,ab=128,channels=2,samplerate=48000}:std{access=file,mux=mp4,dst='C:\Users\jonnydmxy\Desktop\tig.mp4'}'
main debug: stream=`std'

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 27 Jun 2013 15:54
by gepebril
@Mahal,

Thanks for the effort.
Thanks to your help and Google you can do it in the command line, adding --sout-ffmpeg-strict=-2
So it will be:

Code: Select all

"C:\Users\test\software\VideoLAN\VLC-2.0.7\vlc.exe" -vvv "E:\test10-sec.mpg" --sout-ffmpeg-strict=-2 --sout=#transcode{vcodec=h264,venc=x264{interlaced},vb=1500,fps="29.97",acodec=mp4a,ab=128,channels=2,samplerate=48000}:standard{access=file,mux=ts,dst="E:\test-interlaced.ts"}

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 15 Aug 2013 20:47
by dieten
Who translate this debug instructions for simple users . I can put the value of strictness to "2" but what else schould I do . It does not work anyway (returning to 2.0.5 doesn't solve anything either (is the installer on the FTP server another one than thew original because of license problems about the AAC encoder ????

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 15 Aug 2013 21:18
by dieten
Add the --avcodec-strict option to -2 (I don't remember the exact name).
the ffmpeg stictness can be put to 2 under precerences (all) encoders, videocodec under ffmpeg, but it does not change anything to the results: no AAC encoder !!

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 26 Aug 2013 08:22
by vel_tins
the ffmpeg stictness can be put to 2 under precerences (all) encoders, videocodec under ffmpeg,..... !!
Read exactly!
You have to set strictness to -2
It works!

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 29 Aug 2013 22:40
by pdbpdb
the option

--sout-ffmpeg-strict=-2

worked until 2.0.8, but it is not working in VLC 2.1.0-rc1 anymore

Is this a bug or there's another way to transcode audio into mp4a since 2.1.0?

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 02 Sep 2013 18:02
by Jean-Baptiste Kempf
We'll try to do something different.

Re: Has mp4a (aac) audio support been dropped in 2.0.7?

Posted: 07 Dec 2013 21:18
by foxkeys
Have same problem in 2.1.1 version.
Solution is: --sout-avcodec-strict=-2 command line parameter.
Usage sample: "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "I:\movie.mp4" --sout-avcodec-strict=-2 --sout=#transcode{vcodec=h264,acodec=mp4a}:standard{access=file,mux=mp4,dst="I:\converted\movie.mp4"}

Probable, this applicable to any VLC 2.1.x
For older versions (VLC 2.0.x) - use --sout-ffmpeg-strict=-2