[spook-l] New option in configure file

Nathan Lutchansky lutchann at litech.org
Thu Jan 5 16:59:19 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 5 Jan 2006, Mischung wrote:

> I have problems adding a new option to the spook configure file.
> 
> There's a little students project I'm working on and we try to change the
> resolution of the stream spook creates by using an option in the config
> file. The video comes from a firewire camera IIDC. Even if there is more
> than one camera all should have the same resolution in the end.
> 
> Is there a simple way to realize this because there's not that much time
> left and I'm not really able to get into the code at the moment.

I'm about to head out of town again (21 hours between trips--busy time of
year), but wanted to give you some pointers.

Getting into the code wouldn't be that bad; everything you need to change 
is confined to the input-dc1394.c file.  In the cam_setup() function, 
there's a call to dc1394_dma_setup_capture() that has the cam resolution 
hard-coded in it, so you just have to select 640x480 instead, and probably 
bump down the framerate as Vlad said.

If you want to get fancy and add a config option, here's a patch from 
Caskey Dickson that demonstrates how to do that.  It adds an FPS config 
option to the DC1394 file.

http://www.technocage.com/~caskey/spook/spook-dc-enhanced.patch

Hope this helps.  -Nathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDvZa5TviDkW8mhycRAgCgAJwNUgMsv6YgT0CPyUV5BxFuWWfjRQCghIe+
DC2SIScvx9a/1E5Nix7Xv2Y=
=YT3y
-----END PGP SIGNATURE-----



More information about the spook-l mailing list