How to specify AMR audio encoding in VLC transcoding

About encoding, codec settings, muxers and filter usage
yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

How to specify AMR audio encoding in VLC transcoding

Postby yinglcs » 24 Jul 2007 07:12

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

Teetrinker
Cone that earned his stripes
Cone that earned his stripes
Posts: 174
Joined: 16 Aug 2004 16:12

Re: How to specify AMR audio encoding in VLC transcoding

Postby Teetrinker » 24 Jul 2007 09:33

It should work if you use this comand-line:

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

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Re: How to specify AMR audio encoding in VLC transcoding

Postby yinglcs » 24 Jul 2007 17:44

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.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How to specify AMR audio encoding in VLC transcoding

Postby dionoea » 24 Jul 2007 17:49

Note that default VLC binaries do not have AMR encoding (for licensing reasons). You'll have to compile one yourself.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Re: How to specify AMR audio encoding in VLC transcoding

Postby yinglcs » 25 Jul 2007 05:26

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.

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Re: How to specify AMR audio encoding in VLC transcoding

Postby yinglcs » 26 Jul 2007 01:43

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 )


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests