[streaming] Problem Streaming with Osprey210

Francisco Sanchez Del Amo francisco.sanchezamo at gmail.com
Wed Oct 10 13:06:23 CEST 2007


Hello

Im a novice with vlc and i having problems with the streaming of a signal.
I'm running Debian Etch with a 2.6.18 kernel and i have an Osprey 200 series
capture card with  audio and video inputs from other device.

# lspci | grep Multimedia
00:1e.2 Multimedia audio controller: Intel Corporation 82801G (ICH7 Family)
AC'97 Audio Controller (rev 01)
04:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
04:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
(rev 11)

# dmesg
.
.
.

Linux video capture interface: v2.00
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 16 (level, low) -> IRQ 169
bttv0: Bt878 (rev 17) at 0000:04:00.0, irq: 169, latency: 64, mmio:
0xf0001000
bttv0: detected: Osprey-200 [card=88], PCI subsystem ID is 0070:ff01
bttv0: using: Osprey 200/250 [card=88,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: osprey eeprom: card=89 name=Osprey 210/220/230 serial=5390443
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
ACPI: PCI Interrupt 0000:00:1e.2[A] -> GSI 23 (level, low) -> IRQ 50
PCI: Setting latency timer of device 0000:00:1e.2 to 64
bt878: AUDIO driver version 0.0.0 loaded
intel8x0_measure_ac97_clock: measured 58292 usecs
intel8x0: clocking to 48000
bt878: Bt878 AUDIO function found (0).
ACPI: PCI Interrupt 0000:04:00.1[A] -> GSI 16 (level, low) -> IRQ 169
bt878_probe: card id=[0xff010070], Unknown card.
Exiting..
ACPI: PCI interrupt for device 0000:04:00.1 disabled
.
.
.


I'm executing the next command to stream the signal in a address different
of 192.168.43.30 but in the same local net.

#vlc -vvv v4l:/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2
--sout='#transcode{vcodec=mp2v,vb=2048,acodec=mpga,ab=256}:standard{access=udp,mux=ts,dst=
192.168.43.30:1234}'

[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file
/root/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 214 modules
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.vlc/vlcrc does not exist
yet
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE
SSE2 FPU
[00000001] main private debug: looking for memcpy module: 1 candidate
[00000001] main private debug: using memcpy module "memcpy"
[00000279] main playlist debug: waiting for thread completion
[00000279] main playlist debug: thread 3078278064 (playlist) created at
priority 0 (playlist/playlist.c:184)
[00000280] main private debug: waiting for thread completion
[00000280] main private debug: thread 3069885360 (preparser) created at
priority 0 (playlist/playlist.c:210)
[00000281] main interface debug: looking for interface module: 1 candidate
[00000281] main interface debug: using interface module "hotkeys"
[00000281] main interface debug: thread 3061468080 (interface) created at
priority 0 (interface/interface.c:231)
[00000283] main interface debug: looking for interface module: 1 candidate
[00000283] main interface debug: using interface module "screensaver"
[00000283] main interface debug: thread 3053067184 (interface) created at
priority 0 (interface/interface.c:231)
[00000279] main playlist debug: adding playlist item
`v4l:/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2' (
v4l:/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2 )
[00000285] main interface debug: looking for interface module: 5 candidates
[00000285] skins2 interface error: Cannot open display
[00000285] skins2 interface error: cannot initialize OSFactory
[00000285] main interface debug: using interface module "rc"
[00000285] main interface debug: thread 3041708976 (manager) created at
priority 0 (interface/interface.c:216)
[00000279] main playlist debug: creating new input thread
[00000289] main input debug: waiting for thread completion
[00000289] main input debug: creating statistics handler
[00000291] main stream output debug: stream=`transcode'
[00000292] main private debug: looking for sout stream module: 1 candidate
[00000291] main stream output debug: stream=`standard'
[00000295] main private debug: looking for sout stream module: 1 candidate
[00000295] main private debug: set sout option: sout-standard-access to udp
[00000295] main private debug: set sout option: sout-standard-mux to ts
[00000295] main private debug: set sout option: sout-standard-dst to
192.168.43.30:1234
[00000295] stream_out_standard private debug: creating
`udp/ts://192.168.43.30:1234'
[00000295] stream_out_standard private debug: extension is 47:1234
[00000295] stream_out_standard private debug: extension -> mux=(null)
[00000295] stream_out_standard private debug: using
`udp/ts://192.168.43.30:1234'
[00000297] main private debug: looking for sout access module: 1 candidate
[00000289] main input debug: thread 3033316272 (input) created at priority 0
(input/input.c:266)
[00000297] main private debug: net: connecting to 192.168.43.30 port 1234
[00000299] main private debug: thread 3024858032 (sout write thread) created
at priority 0 (udp.c:268)
[00000297] access_output_udp private debug: udp access output opened(
192.168.43.30:1234)
[00000297] main private debug: using sout access module "access_output_udp"
[00000295] stream_out_standard private debug: access opened
[00000300] main private debug: looking for sout mux module: 1 candidate
[00000300] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
[00000300] main private debug: using sout mux module "mux_ts"
[00000291] main stream output debug: muxer support adding stream at any time
[00000295] stream_out_standard private debug: mux opened
[00000295] main private debug: using sout stream module
"stream_out_standard"
[00000292] main private debug: set sout option: sout-transcode-vcodec to
mp2v
[00000292] main private debug: set sout option: sout-transcode-vb to 2048
[00000292] main private debug: set sout option: sout-transcode-acodec to
mpga
[00000292] main private debug: set sout option: sout-transcode-ab to 256
[00000292] stream_out_transcode private debug: codec audio=mpga 0Hz 0
channels 256Kb/s
[00000292] stream_out_transcode private debug: codec video=mp2v 0x0 scaling:
1.000000 2048kb/s
[00000292] main private debug: using sout stream module
"stream_out_transcode"
[00000289] main input debug:
`v4l:/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2' gives
access `v4l' demux `' path
`/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2'
[00000289] main input debug: creating demux: access='v4l' demux=''
path='/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2'
[00000301] main demuxer debug: looking for access_demux module: 1 candidate
[00000301] v4l demuxer debug: WxH 720x576
[00000301] v4l demuxer warning: unknown option
[00000301] v4l demuxer debug: main device=`/dev/video0'
[00000301] v4l demuxer debug: V4L device BT878 video (Osprey 210/220/230 2
channels 1 audios 48 < w < 924 32 < h < 576
[00000301] v4l demuxer debug: setting channel Composite0(0) 0 tuners
flags=0x2 type=0x2 norm=0x0
[00000301] v4l demuxer debug: v4l device uses brightness: 32768
[00000301] v4l demuxer debug: v4l device uses colour: 32768
[00000301] v4l demuxer debug: v4l device uses hue: 32768
[00000301] v4l demuxer debug: v4l device uses contrast: 32768
[00000301] v4l demuxer debug: v4l device uses frame size: 1244160
[00000301] v4l demuxer debug: v4l device uses chroma: RV24
[00000301] v4l demuxer debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000301] v4l demuxer debug: v4l grabbing started
[00000301] v4l demuxer debug: added new video es RV24 720x576
[00000289] main input debug: selecting program id=0
[00000301] v4l demuxer debug: new audio es 2 channels 44100Hz
[00000301] main demuxer debug: using access_demux module "v4l"
[00000303] main packetizer debug: looking for packetizer module: 17
candidates
[00000303] main packetizer debug: using packetizer module "rawvideo"
[00000303] main packetizer debug: thread 2999225264 (decoder) created at
priority 0 (input/decoder.c:159)
[00000309] main packetizer debug: looking for packetizer module: 17
candidates
[00000309] main packetizer debug: using packetizer module "packetizer_copy"
[00000309] main packetizer debug: thread 2989116336 (decoder) created at
priority 0 (input/decoder.c:159)
[00000289] main input debug: starting in sync mode
[00000289] main input debug:
`v4l:/dev/video0:norm=pal:size=720x576:adev=/dev/dsp:channels=2'
successfully opened
[00000291] main stream output debug: adding a new input
[00000292] stream_out_transcode private debug: creating video transcoding
from fcc=`RV24' to fcc=`mp2v'
[00000335] main decoder debug: looking for decoder module: 24 candidates
[00000291] main stream output debug: adding a new input
[00000335] main decoder debug: using decoder module "rawvideo"
[00000336] main encoder debug: looking for encoder module: 9 candidates
[00000336] ffmpeg encoder debug: libavcodec initialized (interface 3345152 )
[00000336] ffmpeg encoder debug: found encoder MPEG-2 Video
[00000336] main encoder debug: using encoder module "ffmpeg"
[00000336] main encoder debug: removing module "ffmpeg"
[00000292] stream_out_transcode private debug: creating audio transcoding
from fcc=`s16l' to fcc=`mpga'
[00000354] main decoder debug: looking for decoder module: 24 candidates
[00000354] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16
[00000354] main decoder debug: using decoder module "araw"
[00000355] main encoder debug: looking for encoder module: 9 candidates
[00000355] ffmpeg encoder debug: libavcodec already initialized
[00000355] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2
[00000355] main encoder debug: using encoder module "ffmpeg"
[00000300] main private debug: adding a new input
[00000300] mux_ts private debug: adding input codec=mpga pid=68
[00000300] mux_ts private debug: new PCR PID is 68
[00000292] stream_out_transcode private debug: decoder aspect is
576000:432000
[00000292] stream_out_transcode private debug: source pixel aspect is
1.066667:1
[00000292] stream_out_transcode private debug: scaled pixel aspect is
1.066667:1
[00000292] stream_out_transcode private debug: source 720x576, crop 720x576,
destination 720x576, padding 720x576
[00000292] stream_out_transcode private debug: encoder aspect is
576000:432000
[00000336] main encoder debug: looking for encoder module: 9 candidates
[00000336] ffmpeg encoder debug: libavcodec already initialized
[00000336] ffmpeg encoder debug: found encoder MPEG-2 Video
[00000336] main encoder debug: using encoder module "ffmpeg"
[00000300] main private debug: adding a new input
[00000300] mux_ts private debug: adding input codec=mpgv pid=69
[00000300] mux_ts private debug: new PCR PID is 69
[00000356] main private debug: looking for crop padd module: 1 candidate
[00000356] ffmpeg private debug: input: 720x576 RV24 -> 720x576 I420
[00000356] ffmpeg private debug: libavcodec already initialized
[00000356] main private debug: using crop padd module "ffmpeg"

My problem is the next:
When i connect an vlc client to watch the signal of streaming i have video
but not audio, really i have bad audio...more than audio is noise.
Both signals,video and audio, came from the same device and i listen the
audio from it and its seems to be ok.
Listening the audio output from Osprey card it sounds ok too.
I've comprobed net stats and there's no problem and the target machine is in
the same local net of the machine that capture the signals.
I've comprobed that conections are ok on the source so i suppose it would be
a problem of the device im using in vlc command.
I have probed too the next devices instead of /dev/dsp but i didnt have good
results:
/dev/adsp
/dev/audio
/dev/snd
/dev/mixer

I dont know what more devices i could probe:
# ls /dev
adsp     hpet     loop6    ptyp0  ptypd  ram4    sg1       tty11  tty23
tty35  tty47  tty59  ttyp4  ttyS1           usbdev5.1_ep81  vcsa4
agpgart  initctl  loop7    ptyp1  ptype  ram5    shm       tty12  tty24
tty36  tty48  tty6   ttyp5  ttyS2           vbi0            vcsa5
audio    input    MAKEDEV  ptyp2  ptypf  ram6    snapshot  tty13  tty25
tty37  tty49  tty60  ttyp6  ttyS3           vcs             vcsa6
bus      kmem     mapper   ptyp3  ram0   ram7    snd       tty14  tty26
tty38  tty5   tty61  ttyp7  urandom         vcs1            video0
cdrom    kmsg     mem      ptyp4  ram1   ram8    sndstat   tty15  tty27
tty39  tty50  tty62  ttyp8  usbdev1.1_ep00  vcs2            xconsole
console  log      mixer    ptyp5  ram10  ram9    sr0       tty16  tty28
tty4   tty51  tty63  ttyp9  usbdev1.1_ep81  vcs3            zero
core     loop     net      ptyp6  ram11  random  stderr    tty17  tty29
tty40  tty52  tty7   ttypa  usbdev2.1_ep00  vcs4
disk     loop0    null     ptyp7  ram12  scd0    stdin     tty18  tty3
tty41  tty53  tty8   ttypb  usbdev2.1_ep81  vcs5
dsp      loop1    port     ptyp8  ram13  sda     stdout    tty19  tty30
tty42  tty54  tty9   ttypc  usbdev3.1_ep00  vcs6
dvd      loop2    ppp      ptyp9  ram14  sda1    tty       tty2   tty31
tty43  tty55  ttyp0  ttypd  usbdev3.1_ep81  vcsa
fd       loop3    psaux    ptypa  ram15  sda2    tty0      tty20  tty32
tty44  tty56  ttyp1  ttype  usbdev4.1_ep00  vcsa1
fd0      loop4    ptmx     ptypb  ram2   sda5    tty1      tty21  tty33
tty45  tty57  ttyp2  ttypf  usbdev4.1_ep81  vcsa2
full     loop5    pts      ptypc  ram3   sg0     tty10     tty22  tty34
tty46  tty58  ttyp3  ttyS0  usbdev5.1_ep00  vcsa3

I installed alsa-base,alsa-utils and alsa-tools and i execute alsaconf but
all still the same.

Someone could help or guide me to solve my problem????

Thanks
Francisco Sanchez del Amo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20071010/9de12f78/attachment.htm 


More information about the streaming mailing list