Page 1 of 1

audio encoder not found

Posted: 14 Dec 2003 22:44
by Heinz
hi!

i've compiled ffmpeg from cvs with --enable-pp --enable-a52 --enable-mp3lame and then compiled vlc also from cvs (--enable-v4l)

when i try to stream from my tv-card
vlc -vvv v4l:/dev/video:norm=pal:frequency=543:size=640x480:channel=E6:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=a52,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=192.168.0.6:1234}'

i get the picture on my client, but no sound. and the output of vlc is:

[00000342] ffmpeg encoder debug: libavcodec initialized (interface 4696 )
[00000342] ffmpeg encoder error: cannot open encoder
[00000342] ffmpeg encoder debug: libavcodec already initialized
[00000342] ffmpeg encoder error: cannot open encoder
[00000335] stream_out_transcode private error: cannot open encoder
[00000335] stream_out_transcode private error: cannot create audio chain

analog if i try to use acodec=mp3:

[00000342] ffmpeg encoder debug: libavcodec initialized (interface 4696 )
[00000342] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
[00000342] ffmpeg encoder debug: libavcodec already initialized
[00000342] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3

streaming VCD and MP3 works perfect!

what have i done wrong?????

ciao
H.

Posted: 15 Dec 2003 01:24
by Guest
Try with acodec=mpga

If this works it would mean that in fact your ffmpeg is not compiled with mp3lame and a52 support (maybe because you have an old libavcodec.a laying around which takes precedence over the new one).

audiocodec not found

Posted: 16 Dec 2003 01:18
by Heinzi
hi!

same result with mpga.

and i also get the same result on a freshly installed fedora-system, i got video-images on the client, but no video-sound, always "cannot open encoder"

where should the encoder-files reside???

yours
H.

Re: audiocodec not found

Posted: 16 Dec 2003 10:45
by Heinzi
hi!

since i do not get these error messages when i try to encode a local file by

./vlc --sout '#transcode{vcodec=mp4v,acodec=a52,vb=1500,ab=256,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=192.168.0.6:1234}' /data2/Video/AVSEQ01.MPG

i think that the problem is my TV-card and there is a problem on reading from /dev/dsp as audio-input?!?

seems that i have to buy a hauppauge PVR instead ....

best regards
H.

Posted: 16 Dec 2003 10:59
by Gibalou
Hmmm. might be a problem with the samplerate of your soundcard input.
Try to play with the "samplerate=" option in the v4l input options.

Re: audiocodec not found - partly solved

Posted: 16 Dec 2003 16:21
by Heinzi
hi!

perfect tipp!!!! with samplerate=48000 i get no more error messages, but sound on the client. although there is a difference in time (between video- and audio-signal), but i think i have to play around with further settings.

thanks for your great help!!!!!

ciao
H.