Skip to contentSkip to conversation

Help with Osprey 230 cards - no sound.

DISCUSSION Jose Diaz 2 participants 5 messages Jan 9, 2009 – Jan 14, 2009 2 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore

Jose Diaz

author
#0 lore raw

Hi.

I need help using Osprey 230 cards. I did a huge research but not success.

I have a server with two Osprey 230 cards:

1) /dev/video0 with /dev/dsp1
2) /dev/video1 with /dev/dsp2

I am using VLC to stream a data and using VLM to manage the stream event.

The problem is that I cant mix the video and the audio from the Osprey 230 card because the audio is not recorded. I can stream the video but not with the audio. I tried using another pci sound card (/dev/dsp) and worked very well mixing the audio and the video.

I am using the RCA cables.

To create an evento I send to VLM this lines:

new evento0 broadcast enabled

setup evento0 input "v4l:///dev/video0:*adev=/dev/dsp* :audio=1:norm=1:frequency=-1:caching=300:fps=-1.000000:channel=0:tuner=-1:width=0:height=0:brightness=-1:colour=-1:hue=-1:contrast=-1:decimation=1:quality=100"

setup evento0 output

#transcode{vcodec=WMV1,vb=128,scale=1,width=320,height=240,fps=5,acodec=mp3,ab=128,channels=0,samplerate=44100}:duplicate{dst=std{access=http,mux=asf{title="EVENTO0-CAM0",author=MEMPET,copyright="INFORMACION PUBLICA"},dst=200.90.37.84:1234/evento0.asf}}

As you can see, "adev" parameter is the sound device used for the capture.

Do I have to set a parameter to the driver ?

Do I have to change with v4lctl something in the card ? .... I noticed that "mute" attribute is "On" but I cant change it to "off" using "setattr" with v4lctl.

Please, I really need some help ... this card is very expensive here and Viewcast says that its compatible with linux :(

Thanks a lot.

Jose.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw
Quoted 1 line · Jose Diaz

I need help using Osprey 230 cards. I did a huge research but not success.

You might try the driver at http://linuxtv.org/hg/~tap/osprey

I have not updated it for 15 months so it will probably not work with a 2.6.28 kernel. Probably better off with something from around 2.6.25.

Some Osprey cards support multiple audio sampling rates via an extern ADC and some cards also have a volume control chip. I know these features are supported for the 440, but I'm not sure what features the 230 has and what is supported on that card.

Quoted 2 lines

The problem is that I cant mix the video and the audio from the Osprey 230 card because the audio is not recorded. I can stream the video but not with

Try recording the audio with arecord. Don't worry about vlc until you have that working.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

author
#3 lore raw
In reply to a message not in the archive

Thank you very much Trent for your help.

I have tried a lot of things, even installing a new sound card and usb sound card but I dont like it because I think I have to enable the input audio from the osprey 230 card.

Let me share with you some info:

The lists of devices recognized by "arecord" are:

root@zsrvvids:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI
DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI
IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB  AUDIO  ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

A you can see the PC have:

1. PCI Sound card.
2. USB Sound card.
3. Analog and digital sound inputs for Osprey 1.
4. Analog and digital sound inputs form Osprey 2.

The v4lctl tool tells me:

For Osprey 1:

root@zsrvvids:~# v4lctl -v 0 -c /dev/video0 list
attribute  | type   | current | default | comment
-----------+--------+---------+---------+-------------------------------------
norm       | choice | NTSC    | PAL     | PAL NTSC SECAM PAL-Nc PAL-M PAL-N
NTSC-JP PAL-60
input      | choice | Composi | Composi | Composite0 S-Video
bright     | int    |   32768 |   32768 | range is 0 => 65535
contrast   | int    |   32768 |   32768 | range is 0 => 65535
color      | int    |   32768 |   32768 | range is 0 => 65535
hue        | int    |   32768 |   32768 | range is 0 => 65535
volume     | int    | -1208350688 |   65535 | range is 0 => 65535
Balance    | int    |   32768 |   32768 | range is 0 => 65535
Bass       | int    |   32768 |   32768 | range is 0 => 65535
Treble     | int    |   32768 |   32768 | range is 0 => 65535
mute       | bool   | on      | off     |
chroma agc | bool   | off     | off     |
combfilter | bool   | off     | off     |
automute   | bool   | on      | off     |
luma decim | bool   | off     | off     |
agc crush  | bool   | on      | off     |
vcr hack   | bool   | off     | off     |
whitecrush | int    |     207 |     207 | range is 0 => 255
whitecrush | int    |     127 |     127 | range is 0 => 255
uv ratio   | int    |      50 |      50 | range is 0 => 100
full luma  | bool   | off     | off     |
coring     | int    |       0 |       0 | range is 0 => 3

And for Osprey 2:

root@zsrvvids:~# v4lctl -v 0 -c /dev/video1 list
attribute  | type   | current | default | comment
-----------+--------+---------+---------+-------------------------------------
norm       | choice | NTSC    | PAL     | PAL NTSC SECAM PAL-Nc PAL-M PAL-N
NTSC-JP PAL-60
input      | choice | Composi | Composi | Composite0 S-Video
bright     | int    |   32768 |   32768 | range is 0 => 65535
contrast   | int    |   32768 |   32768 | range is 0 => 65535
color      | int    |   32768 |   32768 | range is 0 => 65535
hue        | int    |   32768 |   32768 | range is 0 => 65535
volume     | int    | -1208842208 |   65535 | range is 0 => 65535
Balance    | int    |   32768 |   32768 | range is 0 => 65535
Bass       | int    |   32768 |   32768 | range is 0 => 65535
Treble     | int    |   32768 |   32768 | range is 0 => 65535
mute       | bool   | on      | off     |
chroma agc | bool   | off     | off     |
combfilter | bool   | off     | off     |
automute   | bool   | on      | off     |
luma decim | bool   | off     | off     |
agc crush  | bool   | on      | off     |
vcr hack   | bool   | off     | off     |
whitecrush | int    |     207 |     207 | range is 0 => 255
whitecrush | int    |     127 |     127 | range is 0 => 255
uv ratio   | int    |      50 |      50 | range is 0 => 100
full luma  | bool   | off     | off     |
coring     | int    |       0 |       0 | range is 0 => 3

As you can see, "mute" is "on". I tried to change it doing:

root@zsrvvids:~#v4lctl -v 2 -c /dev/video0 setattr "mute" "off"

And the debug says at the end:

...
ioctl: VIDIOC_G_CTRL(id=9963785;value=-1208768480): ok
cmd: "setattr" "mute" "off"
ioctl: VIDIOC_S_CTRL(id=9963785;value=0): ok
v4l2: close

However the value keeps in "On".

Let me play with the "arecord" and will tell the results.

Thank you very much for your help, you are the first and only person who has help me in 3 months of fight :(

If you need something from Caracas, Venezuela just let me know :)

Jose.

P.D.: Where are you from?

2009/1/12 Trent Piepho <[email protected]>

Quoted 13 lines · Jose Diaz
Quoted 1 line

I need help using Osprey 230 cards. I did a huge research but not

success.

You might try the driver at http://linuxtv.org/hg/~tap/osprey<http://linuxtv.org/hg/%7Etap/osprey>

I have not updated it for 15 months so it will probably not work with a 2.6.28 kernel. Probably better off with something from around 2.6.25.

Some Osprey cards support multiple audio sampling rates via an extern ADC and some cards also have a volume control chip. I know these features are supported for the 440, but I'm not sure what features the 230 has and what is supported on that card.

Quoted 8 lines
Quoted 1 line

The problem is that I cant mix the video and the audio from the Osprey

230

Quoted 1 line

card because the audio is not recorded. I can stream the video but not

with

Try recording the audio with arecord. Don't worry about vlc until you have that working.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

author
#4 lore raw
In reply to Trent Piepho

Hi Trent.

Right now I have no access where the PC with the Osprey 230 cards are but I did some tests with arecord.

The "arecord -l" command shows:

root@zsrvvids:/proc/asound/card2/pcm1c/sub0# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI
DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI
IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB  AUDIO  ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I did:

arecord -D plughw:Bt878,1 -f S16_LE xxx.wav

It created a file about 11MB before I "ctrl+c".

During the creation of the file .wav file checked:

root@zsrvvids:/proc/asound/card2/pcm1c/sub0# cat status
state: RUNNING
trigger_time: 1231710873.654398475
tstamp      : 1231710903.575688298
delay       : 0
avail       : 0
avail_max   : 2046
-----
hw_ptr      : 3823974
appl_ptr    : 3823974
root@zsrvvids:/proc/asound/card2/pcm1c/sub0# cat status
state: RUNNING
trigger_time: 1231710873.654398475
tstamp      : 1231711014.243391671
delay       : 0
avail       : 0
avail_max   : 2046
-----
hw_ptr      : 17970018
appl_ptr    : 17970018

The tstamp variable changed. Does it means that osprey 230 card is capturing and recording?

I brought to my PC via scp the xxx.wav file (about 11Mb) and try to play it with "play" command. It was a silence as I espected because there is nothing connected right now to the RCA input of the Osprey card.

Monday morning I will go to test in place the recordings.

What do you think until now ?

Thanks a lot!

Jose.

2009/1/12 Trent Piepho <[email protected]>

Quoted 14 lines · Jose Diaz
Quoted 1 line

I need help using Osprey 230 cards. I did a huge research but not

success.

You might try the driver at http://linuxtv.org/hg/~tap/osprey<http://linuxtv.org/hg/%7Etap/osprey>

I have not updated it for 15 months so it will probably not work with a 2.6.28 kernel. Probably better off with something from around 2.6.25.

Some Osprey cards support multiple audio sampling rates via an extern ADC and some cards also have a volume control chip. I know these features are supported for the 440, but I'm not sure what features the 230 has and what is supported on that card.

Quoted 8 lines
Quoted 1 line

The problem is that I cant mix the video and the audio from the Osprey

230

Quoted 1 line

card because the audio is not recorded. I can stream the video but not

with

Try recording the audio with arecord. Don't worry about vlc until you have that working.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

author
#6 lore raw
In reply to a message not in the archive

Hi Etienne.

I havent recorded any audio from Osprey 230 card.

I have two cards and they are referenced:

/dev/dsp1

and

/dev/dsp2

It has been very frustrating for me.

A friend of mine told me to check the IRQ used for the cards.

I'll keep testing and praying :-)

Please, let me know if you record any audio.

In the other hand, you wrote Osprey 230 cards works in which version of Linux ?

I could change my OS just to make them work and try to compare with Debian Etch installation.

Thanks a lot!

José Gregorio.

2009/1/15 Etienne Noreau-Hebert <[email protected]>

Quoted 150 lines

Hi Jose, hi Trent,

I'm also having sound capture issues with the Osprey 230 cards.

I've been trying with the snd-bt87x driver included in the RHEL5U2 kernel (2.6.18-92 x86_64) and with snd-bt87x and btaudio from
http://linuxtv.org/hg/~tap/osprey <http://linuxtv.org/hg/%7Etap/osprey> . With snd-bt87x, the card is properly detected and "arecord -l" reports :

card 0: Bt878 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Bt878 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

But when recording with "arecord -D plughw:Bt878,1 -f S16_LE sample.wav" only silence is captured from the Analog device, even though I have audio signals coming in the XLR and RCA inputs.

Have you guys been able to record something?

Attempts with the btaudio drivers have also been unsuccessful, as recording attempts with sox and gstreamer osssrc are blocking, not even recording silence and yielding an empty file with headers. My next step is to track down whats going on with the btaudio driver, as I've been successfully capturing sound with a previous version of it under RHEL4U4 (2.6.9-42).

Thanks,

Etienne

Quoted 3 lines · Jose Diaz

Hi Trent.

Right now I have no access where the PC with the Osprey 230 cards are but

I

Quoted 16 lines

did some tests with arecord.

The "arecord -l" command shows:

root@zsrvvids:/proc/asound/card2/pcm1c/sub0# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI
DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI
IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB  AUDIO  ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
Quoted 8 lines
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Bt878 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x

Digital]

Quoted 36 lines

Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Bt878_1 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

I did:

arecord -D plughw:Bt878,1 -f S16_LE xxx.wav

It created a file about 11MB before I "ctrl+c".

During the creation of the file .wav file checked:

root@zsrvvids:/proc/asound/card2/pcm1c/sub0# cat status
state: RUNNING
trigger_time: 1231710873.654398475
tstamp      : 1231710903.575688298
delay       : 0
avail       : 0
avail_max   : 2046
-----
hw_ptr      : 3823974
appl_ptr    : 3823974
root@zsrvvids:/proc/asound/card2/pcm1c/sub0# cat status
state: RUNNING
trigger_time: 1231710873.654398475
tstamp      : 1231711014.243391671
delay       : 0
avail       : 0
avail_max   : 2046
-----
hw_ptr      : 17970018
appl_ptr    : 17970018
Quoted 1 line

The tstamp variable changed. Does it means that osprey 230 card is

capturing

Quoted 3 lines

and recording?

I brought to my PC via scp the xxx.wav file (about 11Mb) and try to play

it

Quoted 1 line

with "play" command. It was a silence as I espected because there is

nothing

Quoted 4 lines

connected right now to the RCA input of the Osprey card.

Monday morning I will go to test in place the recordings.

Quoted 16 lines

What do you think until now ?

Thanks a lot!

Jose.

2009/1/12 Trent Piepho <[email protected]>

Quoted 7 lines · Jose Diaz
Quoted 3 lines

I need help using Osprey 230 cards. I did a huge research but not

success.

You might try the driver at http://linuxtv.org/hg/~tap/osprey<http://linuxtv.org/hg/%7Etap/osprey>

<http://linuxtv.org/hg/%7Etap/osprey>

Quoted 5 lines
Quoted 5 lines

I have not updated it for 15 months so it will probably not work with a 2.6.28 kernel. Probably better off with something from around 2.6.25.

Some Osprey cards support multiple audio sampling rates via an extern

ADC

Quoted 1 line
Quoted 1 line

and some cards also have a volume control chip. I know these features

are

Quoted 1 line
Quoted 1 line

supported for the 440, but I'm not sure what features the 230 has and

what

Quoted 5 lines
Quoted 5 lines

is supported on that card.

Quoted 2 lines

The problem is that I cant mix the video and the audio from the Osprey

Quoted 7 lines
Quoted 7 lines

230

Quoted 2 lines

card because the audio is not recorded. I can stream the video but not

with

Try recording the audio with arecord. Don't worry about vlc until you

Quoted 12 lines

have

Quoted 6 lines
Quoted 3 lines

that working.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]

?subject=unsubscribe

Quoted 2 lines

https://www.redhat.com/mailman/listinfo/video4linux-list

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list