Encoding AAC with VLC on Debian

*nix specific usage questions
Oele
New Cone
New Cone
Posts: 4
Joined: 03 Mar 2007 19:56

Encoding AAC with VLC on Debian

Postby Oele » 03 Mar 2007 20:31

Hello,

My apologies if this question is already answered somewhere on the forum; i tried to use the search function, but it gives an "expression too complex"-SQL error.

I'm trying to transcode an internet radio stream to mp4, and stream it to a mobile device via DSS on Debian 3.1.

FAAC 1.24 and FFmpeg SVN-r8205 are installed. FFMpeg is configured with "--enable-libfaac --enable-libfaad --enable-gpl". Converting an mp3 file to aac with ffmpeg-command line goes fine.

VLC is built with "--enable-live555 --enable-faad --enable-real --enable-realrtsp --with-ffmpeg-faac --disable-wxwidgets --disable-skins2 --enable-pp".

I've tried this with and without "--with-faac", which isn't in the "configure --help", but does show up on some forum posts.

Now, when i run this:

$ vlc -I dummy -vvv http://sc1.abacast.com:8105/ --sout "#transcode{ab=32,channels=2,acodec=mp4a,samplerate=22050}:rtp{dst=85.214.86.191,port=6554,sdp=file:///usr/local/movies/teststream.sdp}" --sout-rtp-mp4a-latm

I get:

[00000259] packetizer_mpeg4audio packetizer: AAC channels: 1 samplerate: 22050
[00000249] main input debug: selecting program id=0
[00000260] main packetizer debug: looking for packetizer module: 15 candidates
[00000260] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetizer
[00000260] packetizer_mpeg4audio packetizer debug: AAC 22050Hz 1024 samples/frame
[00000260] main packetizer debug: using packetizer module "packetizer_mpeg4audio"
[00000249] main input debug: stream out mode -> no decoder thread
[00000251] main stream output debug: adding a new input
[00000252] stream_out_transcode private debug: creating audio transcoding from fcc=`mp4a' to fcc=`mp4a'
[00000261] main decoder debug: looking for decoder module: 21 candidates
[00000261] main decoder debug: using decoder module "faad"
[00000262] main encoder debug: looking for encoder module: 4 candidates
[00000262] ffmpeg encoder debug: libavcodec initialized (interface 3351552 )
[00000262] ffmpeg encoder error: cannot find encoder MPEG AAC Audio
[00000252] stream_out_transcode private error: cannot find encoder ((null))
[00000261] main decoder debug: removing module "faad"
[00000252] stream_out_transcode private error: cannot create audio chain
[00000260] main packetizer error: cannot create packetizer output (mp4a)


After reading this forum thread: viewtopic.php?p=92612, i installed the slackware binary of VLC 0.8.5, which works. The only problem is, that it only accepts mono audio sources. If i try a stereo stream, i get:

[00000276] stream_out_transcode private error: no audio filter found for mixing from 2 to 1 channels

... even if i specify 'channels=2' or don't specify the amount of channels. It makes me wonder how VLC decides that it needs to transcode to mono...?

According to this thread: viewtopic.php?p=97615 , upgrading to a newer version of VLC might solve it, but the newest available slackware binary is 0.8.5. This means that i'll need to compile the 0.8.6a source myself, which brings me back on my original problem ("cannot find encoder MPEG AAC Audio").

Please help! :)

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests