Page 1 of 1

VLC 2.0 mp2a codec missing?

Posted: 23 Feb 2012 01:15
by bzbit
For a while I've been using VLC 1.1.11 to transcode videos to MPEG2. After updating to VLC 2.0 I get the following error:

[0161d420] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:mp2a). Take a look few lines earlier to see possible reason.
[0161d420] stream_out_transcode stream out error: cannot create audio chain
[020c8b80] main decoder error: cannot create packetizer output (mpga)

The command line to transcode I am using is the following:

"C:\Program Files\VideoLAN\VLC\vlc.exe" --sout "#transcode{vcodec=mp2v,fps=30,vb=7000,acodec=mp2a,ab=224,samplerate=48000,channels=2,deinterlace}:std{access=file,mux=ps,dst="output.mpg"}" --sout-transcode-width 720 --sout-transcode-height 480 "C:\Movies\big_buck_bunny_1080p_stereo.avi" "vlc://quit"

Is there a new codec for MPEG2 audio? Has the option changed? i tried changing the transcode to use 'mpga' instead of 'mp2a' but that only encodes to MPEG1 audio and I need MPEG2.
Thanks for any help on this.

Re: VLC 2.0 mp2a codec missing?

Posted: 23 Feb 2012 19:28
by Jean-Baptiste Kempf
Do you have the twolame plugin in your plugins window?

Re: VLC 2.0 mp2a codec missing?

Posted: 24 Feb 2012 00:05
by bzbit
Thanks for the prompt response.

A search of the Plugin Window shows the following plugin:

Libtwolame audio encoder

Re: VLC 2.0 mp2a codec missing?

Posted: 24 Feb 2012 01:22
by Jean-Baptiste Kempf
mpeg 1 audio and mpeg2 audio are the same

mpga gives layer 3 while mp2a gives layer 2.

Re: VLC 2.0 mp2a codec missing?

Posted: 24 Feb 2012 02:30
by bzbit
Thank you for the clarification. I need layer 2, mp2a...however I get the error I described above whenever I attempt to transcode to mp2a. It doesn't matter what type of source file I use.

should I not be using 'acodec=mp2a' in the transcode command line? The 'acodec=mp2a' worked fine in version 1.1.11 of VLC.

Re: VLC 2.0 mp2a codec missing?

Posted: 24 Feb 2012 08:00
by Jean-Baptiste Kempf
mp2a in 1.1.11 created layer3, you know ? :D
Anyway, file a bugreport and I will fix.

Re: VLC 2.0 mp2a codec missing?

Posted: 25 Feb 2012 00:31
by bzbit
Wow, that's confusing. :D

I will file a report. Thanks for the help!

Re: VLC 2.0 mp2a codec missing?

Posted: 25 Feb 2012 00:43
by bzbit
Report filed.

Ticket #6227 (for those who might want to check up on it and/or add more information)

I only have the capability to test on the windows platform. If anyone else can try this on other platforms and update the ticket that would be appreciated.

Thanks.

Re: VLC 2.0 mp2a codec missing?

Posted: 25 Feb 2012 23:27
by bzbit
After some research and much hair pulling in version 1.1.11 :lol: I have found that mp2a created mpeg audio version 1 layer 2 and mpga creates mpeg audio version 1 layer 3.

Re: VLC 2.0 mp2a codec missing?

Posted: 26 Feb 2012 00:56
by Jean-Baptiste Kempf
pff... ok :)

Re: VLC 2.0 mp2a codec missing?

Posted: 23 Mar 2012 23:46
by bzbit
I wanted to let you know that I recently made a rather large (for me anyway) donation to the project in the hope of increasing the priority on the resolution of this issue. Since the product is free you programmers deserve some reward.

Re: VLC 2.0 mp2a codec missing?

Posted: 26 Mar 2012 00:36
by Jean-Baptiste Kempf
Yes, I saw it and I am working on it.

Re: VLC 2.0 mp2a codec missing?

Posted: 27 Mar 2012 02:22
by bzbit
Awesome. Thank you very much.

Re: VLC 2.0 mp2a codec missing?

Posted: 06 Apr 2012 02:55
by Jean-Baptiste Kempf
Fixed for 2.0.2