Page 1 of 1

How to specify AMR audio encoding in VLC transcoding

Posted: 24 Jul 2007 07:12
by yinglcs
Hi,

Can you give me an example about how to use AMR audio encoding in VLC transcoding mentioned in this thread?

viewtopic.php?f=4&t=37261&start=0&st=0&sk=t&sd=a

Re: How to specify AMR audio encoding in VLC transcoding

Posted: 24 Jul 2007 09:33
by Teetrinker
It should work if you use this comand-line:

#transcode{ ... ,acodec="samr",ab="12.2",samplerate="8000",channels="1"}

Re: How to specify AMR audio encoding in VLC transcoding

Posted: 24 Jul 2007 17:44
by yinglcs
Thanks.

I have followed the steps here to compile AMR support in ffmpeg:

http://wiki.videolan.org/Win32CompileCy ... ptional.29

But when I try to 'reconfigure' ffmpeg, i get this errror:

Code: Select all

$ ./configure --enable-gpl --enable-pp --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-libamr-nb --enable-libamr-wb ERROR: libamrnb not found If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.err" produced by configure as this will help solving the problem.

and it the config.err:

Code: Select all

END /tmp/ffmpeg-conf--8271-.c gcc -fomit-frame-pointer -pthread -E -o /tmp/ffmpeg-conf--8271-.o /tmp/ffmpeg-conf--8271-.c /tmp/ffmpeg-conf--8271-.c:1:30: error: amrnb/interf_dec.h: No such file or directory ERROR: libamrnb not found
The wiki said I need to create these directories 'amr, amr_float and amrwb_float'

Why configure of ffmpeg looks for files in amrnb?

Thank you.

Re: How to specify AMR audio encoding in VLC transcoding

Posted: 24 Jul 2007 17:49
by dionoea
Note that default VLC binaries do not have AMR encoding (for licensing reasons). You'll have to compile one yourself.

Re: How to specify AMR audio encoding in VLC transcoding

Posted: 25 Jul 2007 05:26
by yinglcs
Okay, I have compile ffmpeg with amr enable, like this:

Code: Select all

./configure --enable-gpl --enable-pp --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-libamr-nb --enable-libamr-wb make
And then I 'make clean', and make again,

Code: Select all

./configure --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt --enable-wxwindows --enable-ncurses --enable-release --with-ffmpeg-tree=./extras/ffmpeg
But when I use vlc to transcode, i get this vlc error:

Code: Select all

[[32;1m00000001[0m] main libvlc debug: [0mchecking builtin modules[0m [[32;1m00000001[0m] main libvlc debug: [0mchecking plugin modules[0m [[32;1m00000001[0m] main libvlc debug: [0mloading plugins cache file /home/qtss/.vlc/cache/plugins-04041e.dat[0m [[32;1m00000001[0m] main libvlc warning: [33;1mcould not open plugins cache file /home/qtss/.vlc/cache/plugins-04041e.dat for reading[0m [[32;1m00000001[0m] main libvlc debug: [0mrecursively browsing `modules'[0m [[32;1m00000001[0m] main libvlc debug: [0mrecursively browsing `/home/yinglcs/vlc-bin/lib/vlc'[0m 0 1 0 0 0 0 0B 0 2007-07-24 22:11:02 [[32;1m00000001[0m] main libvlc warning: [33;1mcannot load module `/home/yinglcs/vlc-bin/lib/vlc/codec/libffmpeg_plugin.so' (/home/yinglcs/vlc-bin/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol: E_IF_exit)[0m [[32;1m00000001[0m] main libvlc debug: [0mrecursively browsing `plugins'[0m [[32;1m00000001[0m] main libvlc debug: [0mmodule bank initialized, found 227 modules[0m

Can you please tell me why i am getting this error:
[[32;1m00000001[0m] main libvlc warning: [33;1mcannot load module `/home/yinglcs/vlc-bin/lib/vlc/codec/libffmpeg_plugin.so' (/home/yinglcs/vlc-bin/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol: E_IF_exit)[0m


Thanks in advance for any help.

Re: How to specify AMR audio encoding in VLC transcoding

Posted: 26 Jul 2007 01:43
by yinglcs
Hi,

I have compile AMR libraries and then ffmpeg with AMR support. And recompile VLC.
But when I use VLC to transcode using AMR, I get 'can not open encoder'.

this the transcode parameter I used "#transcode{acodec=samr,samplerate=8000,channels=1,vcodec=mp4v,fps=15,vb=100}"

Can you please tell me what am i missing?

Code: Select all

[00000315] stream_out_transcode private debug: creating audio transcoding from fcc=`mp3 ' to fcc=`samr' [00000324] main decoder debug: looking for decoder module: 25 candidates [00000324] ffmpeg decoder debug: libavcodec initialized (interface 3352580 ) [00000324] ffmpeg decoder debug: ffmpeg codec (MPEG Audio layer 1/2/3) started [00000324] main decoder debug: using decoder module "ffmpeg" [00000325] main encoder debug: looking for encoder module: 7 candidates [00000325] ffmpeg encoder debug: libavcodec already initialized [00000325] ffmpeg encoder warning: bitrate not supported: use one of 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k (libamr_nb@0x836f290) [00000325] ffmpeg encoder error: cannot open encoder [00000315] stream_out_transcode private error: cannot find encoder ((null)) [00000324] ffmpeg decoder debug: ffmpeg codec (MPEG Audio layer 1/2/3) stopped [00000324] main decoder debug: removing module "ffmpeg" [00000315] stream_out_transcode private error: cannot create audio chain [00000323] main packetizer error: cannot create packetizer output (mp3 )