Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2000 17:49:00 -0500
From:      Randall Hopper <aa8vb@ipass.net>
To:        =?iso-8859-1?Q?Jukka_Simil=E4?= <juksi@iname.com>, Amancio Hasty <hasty@rah.star-gate.com>
Cc:        pstern stern <pstern@65north.com>, multimedia@FreeBSD.ORG
Subject:   Re: fxtv
Message-ID:  <20000216174900.A3659@ipass.net>
In-Reply-To: <004201bf7610$2a29ccc0$0100a8c0@sjukebox.home>
References:  <XFMail.000213220457.juksi@iname.com> <200002132013.MAA32560@rah.star-gate.com> <200002131950.LAA32333@rah.star-gate.com> <XFMail.000213220457.juksi@iname.com> <38A6C584.4382ADB6@iname.com> <200002131950.LAA32333@rah.star-gate.com> <38A6C584.4382ADB6@iname.com> <004201bf7610$2a29ccc0$0100a8c0@sjukebox.home> <200002131117.DAA06873@rah.star-gate.com> <004201bf7610$2a29ccc0$0100a8c0@sjukebox.home>

next in thread | previous in thread | raw e-mail | index | archive | help
Jukka Similä:
 |btw I wanted to ask a question, in case somebody is able to answer it:
 |what's the main difference between Hauppauge's own capture program and
 |fxtv's capture-option?
 |I mean, I can capture video @ 320x240, YUV9(?) , ~30fps + 44kHz mono sound
 |(windows) but in freebsd the frame rate falls down to 14. Is Hauppauge's
 |prog just better optimized?

Amancio Hasty:
 |Do you have dma enabled on your disk?
 |What is the video format that you are using to capture on FreeBSD?

Jukka Simila:
 |Well, after a reconfiguration I got 24fps with 320x240,YUV (the fps that
 |"Optimize" tells me). Does the fxtv limit the maximum fps to 24?  I noticed
 |it was 24 even with 160x120. 

I've used DMA on 3.0 since it came out.  Works great.  Jukka, something like:

   controller      wdc0    at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
   disk            wd0     at wdc0 drive 0
   disk            wd1     at wdc0 drive 1

   controller      wdc1    at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff
   disk            wd2     at wdc1 drive 0
   disk            wd3     at wdc1 drive 1

It's the 0xa0ffa0ff that does the trick, enabling it if the drives support it.

On boot, you should see something like:

   wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
   wdc0: unit 0 (wd0): <IBM-DHEA-38451>, DMA, 32-bit, multi-block-16
   wd0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
   ...

As to the FPS issue, I've never squeeked 30fps out of fxtv for 320x240 even
with DMA.  Though I've never bought AV drives, striped my disks, or some of
the common things that would beef up my disk bandwidth.  It's disk
bandwidth that's the issue.

Fxtv doesn't limit the maximum FPS to 24.  It picks that number by trying
some test frame captures to disk and seeing what the average write rate is.
If your process blocks on disk writes (buffer full, etc.) at all, it'll
take you down from 30fps.

Note that if you're fixing to encode an MPEG, mpeg_encode only supports
encoding at 24, 25, or 30fps.  So there's not much point in capturing at 26
for example.

Randall


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000216174900.A3659>