Streaming from Saa7134 with ALSA driver but no sound

About encoding, codec settings, muxers and filter usage
Thinker
New Cone
New Cone
Posts: 2
Joined: 11 Feb 2004 06:30

Streaming from Saa7134 with ALSA driver but no sound

Postby Thinker » 11 Feb 2004 06:37

Dear Gentlemen,

I have installed SAA7134 with V4L2 driver and Alsa driver with OSS emulation for the SIS Intel8x0 driver as streaming server. I try to stream the TV out thru LAN to the client PC's MS Media Player, but can only see video but no sound, the sound only on the server PC local speaker. Here is the log dump:

VideoLAN Client 0.7.0 Bond
[00000000] main root debug: VLC media player - version 0.7.0 Bond - (c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-release --enable-dvdread --enable-dvdplay --enable-dvbpsi --enable-v4l --enable-vcd --enable-mad --enable-pp --enable-ffmpeg --with-ffmpeg=/usr --enable-faad --enable-xvid --enable-dv --enable-flac --enable-theora --enable-x11 --enable-xvideo --disable-qte --disable-directx --enable-fb --enable-aa --without-wingdi --enable-oss --enable-esd --enable-arts --enable-fribidi --disable-waveout --enable-gtk --disable-familiar --enable-gnome --enable-qt --enable-kde --disable-opie --disable-macosx --disable-qnx --disable-intfwin --enable-ncurses --enable-xosd --enable-lirc --enable-pth --disable-st --enable-mozilla --disable-testsuite --enable-plugins --enable-fribidi
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 159 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000195] main playlist debug: Creating group Normal with id 1 at position 0
[00000195] main playlist debug: waiting for thread completion
[00000195] main playlist debug: thread 41376688 (playlist) created at priority 0 (src/playlist/playlist.c:98)
[00000196] main interface debug: looking for interface module
[00000196] main interface debug: probing 1 candidate
[00000102] main module debug: using interface module "hotkeys"
[00000196] main interface debug: interface initialized
[00000196] main interface debug: thread 59083696 (interface) created at priority 0 (src/interface/interface.c:161)
[00000195] main playlist debug: adding playlist item « v4l:/dev/video0:norm=pal:size=320x240:adev=/dev/dsp:audio=0 » ( v4l:/dev/video0:norm=pal:size=320x240:adev=/dev/dsp:audio=0 )
[00000195] main playlist debug: creating new input thread
[00000197] main input: playlist item `v4l:/dev/video0:norm=pal:size=320x240:adev=/dev/dsp:audio=0'
[00000197] main input debug: waiting for thread completion
[00000197] main input debug: access `v4l', demux `', name `/dev/video0:norm=pal:size=320x240:adev=/dev/dsp:audio=0'
[00000198] main stream output debug: stream=`transcode'
[00000199] main private debug: looking for sout stream module
[00000199] main private debug: probing 1 candidate
[00000198] main stream output debug: stream=`std'
[00000200] main private debug: looking for sout stream module
[00000200] main private debug: probing 1 candidate
[00000200] stream_out_standard private debug: creating `http/asf://10.0.1.200:8080'
[00000200] stream_out_standard private debug: extention is 200:8080
[00000200] stream_out_standard private debug: extention -> mux=(null)
[00000200] stream_out_standard private debug: using `http/asf://10.0.1.200:8080'
[00000201] main private debug: looking for sout access module
[00000201] main private debug: probing 1 candidate
[00000201] access_output_http private: creating new http daemon
[00000202] main private debug: looking for httpd module
[00000202] main private debug: probing 1 candidate
[00000197] main input debug: thread 69573552 (input) created at priority 0 (src/input/input.c:257)
[00000197] main input debug: cmd=state old=10 new=1
[00000197] main input debug: playing at normal rate
[00000204] main interface debug: looking for interface module
[00000204] main interface debug: probing 7 candidates
remote control interface initialized, `h' for help
[00000105] main module debug: using interface module "rc"
[00000204] main interface debug: interface initialized
[00000203] httpd private: httpd started
[00000203] main private debug: thread 84921264 (httpd thread) created at priority 0 (httpd.c:330)
[00000202] httpd private: http thread launched
[00000149] main module debug: using httpd module "httpd"
[00000040] main module debug: using sout access module "access_output_http"
[00000200] stream_out_standard private debug: access opened
[00000205] main private debug: looking for sout mux module
[00000205] main private debug: probing 1 candidate
[00000205] mux_asf private debug: Asf muxer opened
[00000204] main interface debug: thread 114490288 (manager) created at priority 0 (src/interface/interface.c:145)
[00000205] mux_asf private debug: meta data: title='' author='' copyright='' comment='' rating=''
[00000156] main module debug: using sout mux module "mux_asf"
[00000200] stream_out_standard private debug: mux opened
[00000172] main module debug: using sout stream module "stream_out_standard"
[00000199] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 187Kb/s
[00000199] stream_out_transcode private debug: codec video=WMV2 0x0 scaling: 1.000000 1000kb/s
[00000015] main module debug: using sout stream module "stream_out_transcode"
[00000197] main input debug: looking for access module
[00000197] main input debug: probing 8 candidates
[00000197] v4l input debug: WxH 320x240
[00000197] v4l input debug: main device=`/dev/video0'
[00000197] v4l input debug: V4L device KNC One TV-Station RDS / Typhoo 3 channels 0 audios 48 < w < 720 32 < h < 576
[00000197] v4l input debug: invalid audio, falling back with no audio
[00000197] v4l input debug: setting channel Television(0) 1 tuners flags=0x1 type=0x1 norm=0x0
[00000197] v4l input debug: v4l device uses frame size: 115200
[00000197] v4l input debug: v4l device uses chroma: I420
[00000197] v4l input debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000197] v4l input: v4l grabbing started
[00000034] main module debug: using access module "v4l"
[00000197] main input debug: looking for demux module
[00000197] main input debug: probing 20 candidates
[00000197] mp4 input warning: MP4 plugin discarded (not a valid file)
[00000197] avi input warning: avi module discarded (invalid header)
[00000197] v4l input debug: added new video es I420 320x240
[00000197] v4l input debug: new audio es 2 channels 44100Hz
[00000035] main module debug: using demux module "v4l"
[00000197] main input debug: selecting ES 0x1
[00000207] main packetizer debug: looking for packetizer module
[00000207] main packetizer debug: probing 22 candidates
[00000091] main module debug: using packetizer module "rawvideo"
[00000207] main packetizer debug: thread 124980144 (decoder) created at priority 0 (src/input/input_dec.c:166)
[00000197] main input debug: selecting ES 0x2
[00000208] main packetizer debug: looking for packetizer module
[00000208] main packetizer debug: probing 22 candidates
[00000164] main module debug: using packetizer module "packetizer_copy"
[00000208] main packetizer debug: thread 1083743152 (decoder) created at priority 0 (src/input/input_dec.c:166)
[00000198] main stream output debug: adding a new input
[00000199] stream_out_transcode private debug: creating video transcoding from fcc=`I420' to fcc=`WMV2'
[00000209] main encoder debug: looking for encoder module
[00000198] main stream output debug: adding a new input
[00000209] main encoder debug: probing 10 candidates
[00000209] ffmpeg encoder debug: libavcodec initialized (interface 4680 )
[00000209] ffmpeg encoder debug: found encoder Windows Media Video 2
[00000014] main module debug: using encoder module "ffmpeg"
[00000014] main module debug: unlocking module "ffmpeg"
[00000209] main encoder debug: looking for encoder module
[00000209] main encoder debug: probing 10 candidates
[00000209] ffmpeg encoder debug: libavcodec already initialized
[00000209] ffmpeg encoder debug: found encoder Windows Media Video 2
[00000014] main module debug: using encoder module "ffmpeg"
[00000205] main private debug: adding a new input
[00000205] mux_asf private debug: adding input
[00000199] stream_out_transcode private debug: creating audio transcoding from fcc=`s16l' to fcc=`mp3 '
[00000210] main encoder debug: looking for encoder module
[00000210] main encoder debug: probing 10 candidates
[00000210] ffmpeg encoder debug: libavcodec already initialized
[00000210] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2/3
[00000014] main module debug: using encoder module "ffmpeg"
[00000205] main private debug: adding a new input
[00000205] mux_asf private debug: adding input
[00000205] mux_asf private debug: adding mp3 header
[00000203] httpd private debug: new connection from 10.0.1.2
[00000203] httpd private debug: new request=

and the command line:

vlc -vv v4l:/dev/video0:norm=pal:size=320x240:adev=/dev/dsp:audio=0 --sout '#transcode vcodec=WMV2,acodec=mp3,vb=1024,scale=1,vt=80000,ab=192,channel=2}:std{access=http,mux=asf,url=10.0.1.200:8080}' --ttl 12


Can anyone tell me what is going wrong?

maladjusted

Postby maladjusted » 24 Apr 2006 18:32

I had similar problem and it disappeared after launching the gnome mixer and marked 'v' in the "record" box for line-in column. (also for capture card)
my audio out of the capture card is connected to line-in of the onboard (nforce2) sound card.

Chronos

Postby Chronos » 24 Apr 2006 22:27

I had same problem. VLC didn't play sound from TV card but xawtv did. I found that i have to switch tunner parameter called MUTE by execute "v4lctl audio mute off". You can show current setting by invoking "v4lctl list".

But I have another problem now. Sound is playing directly by both CD-in and Line-in but VLC don't want to get sound from audio source for network streaming purpose. I tryed :v4l-adev=/dev/dsp, :v4l-adev=/dev/audio, :v4l-adev=/dev/mixer but withou succes. I dont know how VLC is obtaining audio from ALSA. Which device I should select and with which parameters?

User avatar
blueice_haller
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Jul 2008 02:57
VLC version: 3.0.21 Vetinari
Operating System: Windows / Android
Location: Germany

Re: Streaming from Saa7134 with ALSA driver but no sound

Postby blueice_haller » 20 Jul 2008 03:02

Hello,

try /dev/audio2 . This worked in my case. I believe, this will grab the audio direct from card.
A nice feature would be, to select the channels in vlc with preview, like in kdetv or any other application.
Mit freundlichen Grüßen/Best regards, blueice_haller


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests