Page 1 of 1

Debian Sarge - video streaming great, but no audio ...

Posted: 09 Mar 2005 13:24
by DeanoDeano
Hi guys, I sucessfully compiled on Debian Sarge with --enable-ffmpeg-mp3lame after configuring ffmpeg accordingly. However, although 'mmsh' streaming appears to work OK, I get no sound!

# vlc -vvv /mnt/remote2/playlist/OSSpacePatrol.mpeg --sout '#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mpga,ab=32,channels=2}:standard{access=mmsh,mux=mp4,url=:9000}'

Doesn't matter if I use Win Media Player or VLC client, same result. The bitrate reported in the client matches the total of what I'm sending (vb+'abx2') and the server shows no errors, telling me it's creating an audio stream etc.

Any ideas? I've searched the forums but can't find anything remotely similar and - yes, I've tested my PC audio hardware ....

Rgds Deano

Posted: 09 Mar 2005 14:35
by dionoea
do you have any error messages saying it couldn't find the encoder for mpga ?

(if you don't know what to look for, just paste a copy of vlc's debug output)

Error Log

Posted: 26 Mar 2005 16:54
by h0ser
I get the same problem on Sarge - This is the tail of the problem, video streams fine - but no audio - please help! :)

[00000206] stream_out_transcode private debug: creating video transcoding from fcc=`mp4v' to fcc=`DIV3'
[00000247] main decoder debug: looking for decoder module
[00000247] main decoder debug: probing 17 candidates
[00000247] ffmpeg decoder debug: libavcodec initialized (interface 4748 )
[00000247] ffmpeg decoder debug: postprocessing disabled
[00000247] ffmpeg decoder debug: using direct rendering
[00000247] ffmpeg decoder debug: ffmpeg codec (MPEG-4 Video) started
[00000012] main module debug: using decoder module "ffmpeg"
[00000248] main encoder debug: looking for encoder module
[00000248] main encoder debug: probing 4 candidates
[00000248] ffmpeg encoder debug: libavcodec already initialized
[00000248] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3
[00000014] main module debug: using encoder module "ffmpeg"
[00000014] main module debug: unlocking module "ffmpeg"
[00000248] main encoder debug: looking for encoder module
[00000248] main encoder debug: probing 4 candidates
[00000248] ffmpeg encoder debug: libavcodec already initialized
[00000248] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3
[00000014] main module debug: using encoder module "ffmpeg"
[00000215] main private debug: adding a new input
[00000215] mux_asf private debug: adding input

[00000243] mpeg_audio packetizer: MPGA channels:2 samplerate:44100 bitrate:128
[00000205] main stream output debug: adding a new input
[00000206] stream_out_transcode private debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
[00000257] main decoder debug: looking for decoder module
[00000257] main decoder debug: probing 17 candidates
[00000072] main module debug: using decoder module "mpeg_audio"
[00000258] main encoder debug: looking for encoder module
[00000258] main encoder debug: probing 4 candidates
[00000258] ffmpeg encoder debug: libavcodec already initialized
[00000258] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2/3
[00000014] main module debug: using encoder module "ffmpeg"
[00000259] main private debug: looking for audio filter2 module
[00000259] main private debug: probing 1 candidate
[00000206] stream_out_transcode private debug: no audio filter found ( -> )
[00000072] main module debug: unlocking module "mpeg_audio"
[00000014] main module debug: unlocking module "ffmpeg"
[00000206] stream_out_transcode private error: cannot create audio chain
[00000243] main packetizer error: cannot create packetizer output

Oh

Posted: 26 Mar 2005 16:56
by h0ser
In case this helps - this is how im running it...

debian:~# vlc -vvv /file.avi --sout '#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080}'

Posted: 26 Mar 2005 19:31
by markfm
Just for kicks, have you tried ab=64?

And the .avi plays locally OK?

Posted: 26 Mar 2005 20:42
by h0ser
Yeah the avi plays fine locally - and ab=64 still gives same result. I have tried avi's and mpeg's...

Still nothin

Posted: 29 Mar 2005 11:15
by Grinder
Maybe this guide I wrote a few weeks back will help?

http://www.scs-computers.nl/sven/howto-vlcdebian.html

Since Debian doesnt have mp3lame standard included..

Posted: 22 Apr 2005 19:11
by mpe
I'm getting something similar with the following command.
video0:~# vlc -v v4l:/dev/video:norm=pal:size=320x240:channel=0:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=a52,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=udp,url=239.255.78.1}'

Which is taken from the HOWTO

The messages given are
[00000255] stream_out_transcode private debug: creating audio transcoding fromfcc=`s16l' to fcc=`a52 '
[00000312] main decoder debug: looking for decoder module: 21 candidates
[00000312] araw decoder debug: samplerate:44101Hz channels:2 bits/sample:16
[00000111] main module debug: using decoder module "araw"
[00000313] main encoder debug: looking for encoder module: 7 candidates
[00000313] ffmpeg encoder debug: libavcodec already initialized
[00000313] ffmpeg encoder error: cannot open encoder
[00000255] stream_out_transcode private error: cannot find encoder
[00000111] main module debug: unlocking module "araw"
[00000255] stream_out_transcode private error: cannot create audio chain
[00000275] main packetizer error: cannot create packetizer output

Which imply that the audio codec cannot be found or loaded.
Any ideas why this should be the case when there does not appear to be anything similar happening with the video codecs.

The instructions on http://www.scs-computers.nl/sven/howto-vlcdebian.html don't help much. Instead giving a version of VLC which is reluctant to multicast.