bttv+scsi writing => corrupted frames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have couple of problems. Let's start with the biggest/strangest.

I get garbage in captured frames while writing to SCSI disk.
This happens even when using overlay (ie. bttv writes directly to video
card memory, as far as I understand). And it happens only when writing
to the disk, reading is not a problem. And it happens only with SCSI disk,
read/write with IDE disk is OK.

It looks like when SCSI disk is writing data, bttv loses all data and does
not write it to system memory (and I will see old data from previous frames
in buffers at those scanlines).

Here's example picture, captured with Gimp using overlay capturing:
http://www.ee.oulu.fi/~tuukkat/tmp/brokenframe.png

It's a big problem because I want to record to the same SCSI disk :(

I've dual PentiumIII 933 MHz, Adaptec AIC7899 (integrated to motherboard),
Matrox G400 AGP video, CS46xx audio. BTTV should not share interrupts with
anything else, Adaptec does. However, I tried playing with BIOS settings
without help. Specifically, I tried lowering SCSI transfer rate down to 4
MB/s (usually it does over 50 MB/s) without help. I also tried running
single CPU kernel without audio or any other unnecessary drivers. No
change. I'm using reiserfs.

The TV card is MagicTView CPH06X (card=24 tuner=0 bttv878).

I tried mencoder, streamer, and xawtv, same problem with all. Capture
method doesn't seem to matter (overlay/Xvideo/disk).

I also looked from list archives and Google, didn't find anything
similar to my problem (some people had hangs when Adaptec shares IRQs...
I don't).

---

Another inconvenient problem is that if I record uncompressed yv12 video at
full resolution and rate to the SCSI disk with streamer, it says often
"fifo audio is full" and the audio will go out of sync with the video. With
compressed mjpeg video no problem. Why this happens? I would guess the
video requires too much bandwidth, but the disk can go at 50 MB/s
(according to hdparm) but the video needs only about 16 MB/s.
I tried both ALSA and OSS.

Is there any better capture program which can record to uncompressed (yv12)
mov (quicktime)? I'd like to use Mplayer but it can record only AVIs which
aren't understood by Broadcast2000 (would Cinelerra read it?).
Is there any I420 AVI -> yv12 QuickTime conversion program?




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux