Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2001 02:26:32 -0500 (EST)
From:      Protius <protius@bobdbob.com>
To:        pmckenna@qwest.net, protius@bobdbob.com
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Video capture
Message-ID:  <200103080726.f287QWM34169@teryx.bobdbob.com>
In-Reply-To: <20010307000411.A41216@otto.oss.qwest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>On Tue, Dec 12, 2000 at 12:41:47AM -0500, Tommy Johnson wrote:
>> >Tommy Johnson wrote:
>> >> 
>> >> >Is it possible to capture video on FreeBSD into MPEG with just a BT8x8
>> >> >based capture card?  Has anybody successfully captured video and or
>> >> >coverted the video to DivX ;-) (MPEG4v2)?
>... 
>> The tarball can be found at http://www.bobdbob.com/~protius/software/video.tgz
>... 
>> This is /extremely/ alpha quality, its more the proof-of-concept code than
>> anything.  I use it every week to digitize a public access TV show a friend
>> of mine does though.  The way the last month has been, attempting to get
>> around to cleaning it up would result in just too long of a delay.
 
Peter McKenna wrote:
>thanks for posting this, I think I have it close to working, but am 
>wonder how you told the BT8x8 card what input to use.
>I can capture and it seems happy but I end up with a blue screen.
>What input options are set by default ? and where are they.
>I'm trying to capture from the s-video in mostly.

The default input is 0, which is composite in.  videocat takes a whole
pile of arguments, specificly: 
filename width height count brightness contrast input field

filename is where to put the video
width and height are in pixels
brightness and contrast are 0 to 255, where 127 is the middle of the range

input is:
0 = device 0
1 = device 1
2 = device 2
3 = device 3
4 = RGB
5 = svideo

and field is a flag, if there is an argument at all, it will capture only
the even field only.

my normal capture command is:
videocat somefile.ppm 352 240 57000 130 127 0 foo

Then you can pull individual frames out with getframe:
getframe somefile.ppm 53100 1 | xv -

The numbers are the same as on getaudio, below.

getframe produces only grayscale images...  long story...

extract the audio with:
getaudio somefile.ppm 100 1000 | someplaybackprogram

The first number is the frame to start on, the second number is how many
frames of audio to extract.  (NTSC frames)  If you extract multiple images,
the image data is just concatenated.

Or, make an mpeg stream with compressit:
compressit somefile 100 53100

The first number is the start frame, the second number is the end frame.
Note that there is no extension on the filename passed to compressit.

-Tommy     "Are you alright?"  "I am allergic to steel."
protius@bobdbob.com
KE4ILZ

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?200103080726.f287QWM34169>