[Kwintv] Strange audio bug in qtvision (with a rage128 and isa TVfm card)

Brett Johnson kwintv@mail.kde.org
Wed, 30 Oct 2002 08:26:48 -0600 (CST)


> On October 28, 2002 20:42, Brett Johnson wrote:
>> Hi,
>>
>> First of all, I would like to say what a great job you guys are doing
>> with this project!
>
>   Thank you!
>
>> Now for my little bug, which I am not sure if it is realted to the
>> mute feature not being fully complete yet.
>>
>> I have an ATI rage 128 video card with the ISA TVfm tuner card. I do
>> have it all working with xawtv 3.76, but when I use qtvision, I
>> experience an audio bug similar to a bug I had  in earilier versions
>> on xawtv. When I resized the window (or change modes), I loose audio.
>> While resizing the window, the audio cuts in and out (in sync with the
>> video display, when the screen goes black, I can hear the audio, when
>> the picture comes back, I loose audio).
>
>   Which plugin are you using?  v4l or XVideo?

It appears to be XVideo, unless I am reading this incorrectly:

Change sources! dev=ATI Rage128 Video Overlay - XVideo port 55 has srcs? yes
KXv: Xv VideoMask port 55 was found.  Device is: ATI Rage128 Video Overlay.
KXv: Xv ImageMask port 55 was found.  Device is: ATI Rage128 Video Overlay.
Attributes for port 55
   -> XV_SET_DEFAULTS set Range: 0 -> 1
   -> XV_AUTOPAINT_COLORKEY get set Range: 0 -> 1
   -> XV_COLORKEY get set Range: 0 -> -1
   -> XV_DOUBLE_BUFFER get set Range: 0 -> 1
   -> XV_ENCODING get set Range: 0 -> 12
   -> XV_FREQ get set Range: 0 -> -1
   -> XV_TUNER_STATUS get Range: -1000 -> 1000
   -> XV_BRIGHTNESS get set Range: -1000 -> 1000
   -> XV_CONTRAST get set Range: -1000 -> 1000
   -> XV_SATURATION get set Range: -1000 -> 1000
   -> XV_COLOR get set Range: -1000 -> 1000
   -> XV_HUE get set Range: -1000 -> 1000
   -> XV_MUTE get set Range: 0 -> 1
   -> XV_SAP get set Range: 0 -> 1
Image formats for port 55
   0x32595559 (YUY2) Packed
   0x59565955 (UYVY) Packed
   0x32315659 (YV12) Planar
   0x30323449 (I420) Planar
KXv: Xv init completed.
QtVision XVideo plugin loaded successfully.
-->1 tuners detected
-->_tuners[ATI Rage128 Video Overlay - XVideo port 55] is true
KXv: Close Xv connection.
QtVision XVideo plugin unloaded.
DeviceWidgetImpl : Source Changed
KXv: Xv VideoMask port 55 was found.  Device is: ATI Rage128 Video Overlay.
KXv: Xv ImageMask port 55 was found.  Device is: ATI Rage128 Video Overlay.
Attributes for port 55
   -> XV_SET_DEFAULTS set Range: 0 -> 1
   -> XV_AUTOPAINT_COLORKEY get set Range: 0 -> 1
   -> XV_COLORKEY get set Range: 0 -> -1
   -> XV_DOUBLE_BUFFER get set Range: 0 -> 1
   -> XV_ENCODING get set Range: 0 -> 12
   -> XV_FREQ get set Range: 0 -> -1
   -> XV_TUNER_STATUS get Range: -1000 -> 1000
   -> XV_BRIGHTNESS get set Range: -1000 -> 1000
   -> XV_CONTRAST get set Range: -1000 -> 1000
   -> XV_SATURATION get set Range: -1000 -> 1000
   -> XV_COLOR get set Range: -1000 -> 1000
   -> XV_HUE get set Range: -1000 -> 1000
   -> XV_MUTE get set Range: 0 -> 1
   -> XV_SAP get set Range: 0 -> 1
Image formats for port 55
   0x32595559 (YUY2) Packed
   0x59565955 (UYVY) Packed
   0x32315659 (YV12) Planar
   0x30323449 (I420) Planar
KXv: Xv init completed.
QtVision XVideo plugin loaded successfully.
device() loaded a new plugin
ATI Rage128 Video Overlay - XVideo port 55
QtVision::setMuteVolume(): Tuner says volume is Muted
Saving Picture settings for device: ATI Rage128 Video Overlay - XVideo
port 55
  for source: ntsc-tuner
brightness = 32767 colour = 32767 hue = 32767 contrast = 32767
KXv: Close Xv connection.
QtVision XVideo plugin unloaded.
QColor::setRgb: RGB parameter(s) out of range
ntsc-tuner
QtVision::startCapture()
Loading Picture Settings for device: ATI Rage128 Video Overlay - XVideo
port 55
  for source: ntsc-tuner
brightness = 32767 colour = 32767 hue = 32767 contrast = 32767
QTVision::startCapture() : Setting attributes
brightness = 32767 colour = 32767 hue = 32767 contrast = 32767
QtVision::setChannel(): emit channel changed
QtVision::setChannel() to frequency: 391250
QtVision::startCapture() -- starting video now!
XvPutVideo: 0x8065648 55 52428851 0x8152a38 0 0 640 240 0 0 433 320

>
>> This is similar to what xawtv used to do during channel changes.
>> Durning the channel change, I would hear the audio, when the change
>> was complete, the audio would not be there. It took several builds
>> before they finally got it worked out, but I was never sure what they
>> did to fix it.
>>
>> Now, I know I am using the right mixer channel, as I can get the audio
>> to work properly, if I go into configure qtvision, change the source
>> to something other than ntsc tuner, apply the settings, then change it
>> back to ntsc tuner, and apply settings. But, if I try and resized the
>> window (or switch modes), the problem comes back.
>>
>> I currently run slackware 8.1, xfree86 4.2 with the special ati.2 Rage
>> theater drivers from gatos.sourceforge.net. I was using the kernel
>> ess1371 drive, then I switched to the alsa drivers (ens1371 -
>> sb64/128). I have even downloaded the oss drivers, and tested those.
>> They all exhibit the same problems.
>>
>> I just wanted to get this out there, if it is realted to the mute bug,
>> then I apologized for the long winded explanation.
>
>    What does kmix look like when this happens?  Is it in the proper
> setting?
> I'm trying to narrow down which is the problem - the tuner mixer or the
> audio  mixer.

When I resize, the kmix video slider does not move, I loose audio, but
still have a picture.

When I switch sources, the slider goes all the way down to zero (the mute
position, I assume), then back to the current position, and I get both
audio and picture.

When I exit, the slider goes all the way to the mute position.

Here is what I get when I resize:
QtVisionView::resizeEvent()
haze font resized to 29
haze font resized to 29
QtVisionView::resizeEvent()
haze font resized to 30
haze font resized to 30
XvPutVideo: 0x8065648 55 41943091 0x81ba848 0 0 640 240 0 0 453 348
XvPutVideo: 0x8065648 55 41943091 0x81ba848 0 0 640 240 0 0 453 348

I hope this helps to narrow it down,

Thank you :-)
Brett

>
> --
>
> George Staikos
>
> _______________________________________________
> kwintv mailing list
> kwintv@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kwintv



Random Thought:
--------------
If you have received a letter inviting you to speak at the dedication of a
new cat hospital, and you hate cats, your reply, declining the invitation,
does not necessarily have to cover the full range of your emotions.  You must
make it clear that you will not attend, but you do not have to let fly at cats.
The writer of the letter asked a civil question; attack cats, then, only if
you can do so with good humor, good taste, and in such a way that your answer
will be courteous as well as responsive.  Since you are out of sympathy with
cats, you may quite properly give this as a reason for not appearing at the
dedication ceremonies of a cat hospital.  But bear in mind that your opinion
of cats was not sought, only your services as a speaker.  Try to keep things
straight.
		-- Strunk and White, "The Elements of Style"