ffmpeg encoder error: cannot find encoder AMR narrow band

About encoding, codec settings, muxers and filter usage
sp02
New Cone
New Cone
Posts: 4
Joined: 21 Mar 2007 00:03

ffmpeg encoder error: cannot find encoder AMR narrow band

Postby sp02 » 22 Mar 2007 21:39

I appreciate any help.

I'm trying on Fedora 6 to stream AMR encoded audio on HTTP port, please readon...

I've built vlc-0.8.6a
Here is my VLC config options:
./configure --enable-x11 --enable-xvideo --without-contrib --disable-gtk --disable-libmpeg2 --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-amr_nb --enable-mad --enable-libdvbpsi --enable-a52 --enable-dts --enable-dvdnav --enable-faad --enable-debug --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=/usr/lib/ --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt --enable-wxWidgets --enable-ncurses --enable-release

I've ffmpeg built with amr_nb support.
ffmpeg config options:
./configure --prefix=/usr --incdir=/usr/include/ffmpeg --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --arch=x86 --extra-cflags=-O2 --enable-libogg --enable-libvorbis --enable-amr_nb --enable-liba52bin --enable-pp --disable-static --enable-shared --enable-gpl --disable-debug --disable-opts --disable-strip

How do I make sure ffmpeg has AMR NB support?
Here are the two things I verified:

nm /usr/lib/libavcodec.so | grep -i amr
00358e40 t Decoder_amr
003587d0 t Decoder_amr_reset
00355fc0 t amr_nb_decode_close
00355f20 t amr_nb_decode_frame
00355fe0 t amr_nb_decode_init
0041dac0 D amr_nb_decoder
00355dd0 t amr_nb_encode_close
00355e10 t amr_nb_encode_frame
00355e60 t amr_nb_encode_init
0041db00 D amr_nb_encoder
0035ee90 t cod_amr_rese
ffmpeg -formats (I don't know what the DEA flags stand for ?)
DEA adpcm_yamaha
D A alac
DEA amr_nb
DEV D asv1
DEV D asv2
D V D avs

When I try to stream in AMR format I get the following error

[00000371] ffmpeg decoder debug: ffmpeg codec (Windows Media Audio 2) started
[00000371] main decoder debug: using decoder module "ffmpeg"
[00000372] main encoder debug: looking for encoder module: 10 candidates
[00000372] ffmpeg encoder debug: libavcodec already initialized
[00000372] ffmpeg encoder error: cannot find encoder AMR narrow band
[00000318] stream_out_transcode private error: cannot find encoder ((null))
[00000371] ffmpeg decoder debug: ffmpeg codec (Windows Media Audio 2) stopped
[00000371] main decoder debug: removing module "ffmpeg"

I'm using these options for streaming:
:sous=#transcode{acodec="samr",ab=12.2,samplerate="8000",channels=1}:duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:1234}}

Thanks,
sp02

tipok
Blank Cone
Blank Cone
Posts: 38
Joined: 29 Sep 2005 22:28
Location: Kiev, Ukraine
Contact:

Re: ffmpeg encoder error: cannot find encoder AMR narrow ban

Postby tipok » 06 Apr 2007 17:23

How do I make sure ffmpeg has AMR NB support?
Try to encode some audio to amr using ffmpeg first.
ffmpeg -formats (I don't know what the DEA flags stand for ?)
DEA amr_nb
It meens: Decoding Encoding Audio
I'm using these options for streaming:
:sous=#transcode{acodec="samr",ab=12.2,samplerate="8000",channels=1}:duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:1234}}
I'm using this string:
...acodec=samr,ab="7.95",samplerate=8000,channels=1...

Maybe it helps you.
Комп не выключать!!!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 20 guests