You should check the MJPEG project homepage for the drivers.
Subject: Miro Dc10 (new) and Debian
From sebfrance@(...).com Sat Jan 24 16:36:18 2004
To: mjpeg-users@(...).net
Date: Sat, 24 Jan 2004 16:36:18 +0100

Hello,
I had promised Ronald I'd write a small guide for using this driver under 
Debian, so here it is :
I'd like to be published because some people can probably find it useful, 
please append a nospam- to my email address if you decide to put it 
somewhere.
I didn't know if you used sgml so I quickly wrote it, I can always reformat it 
later...
Let me know if you find it useful,
Thanks
seb



Setting up the modules
-------------------------------------

First of all, you'll probably need to compile the drivers yourself, the 
kernels available in Sarge (currently known as "testing") are 2.4.2X, the 
'dc10' driver didn't work for me.

For some reasons I ignore, these drivers requires 
/lib/modules/`uname -r`/build to point to the directory where your kernel was 
built 
It's a symbolic link here:

# ls /lib/modules/`uname -r`/build -l    
lrwxrwxrwx    1 root     root           14 2004-01-04 18:21 /lib/
modules/2.4.20-3-k7/build -> /usr/src/linux

Then you should download the modules' sources there:
http://prdownloads.sourceforge.net/mjpeg/driver-zoran-0.9.4.tar.gz?download
# tar -zxf driver-zoran-0.9.4.tar.gz
# cd driver-zoran-0.9.4
# make
# make install

now you need to add an entry to your modules.conf, we'll do this using 
modutils:
create a file /etc/modutils/video containing :
	alias char-major-81 zoran
	options zoran card=1 v4l_bufsize=2048
	pre-install zoran (modprobe saa7110; modprobe adv7175; modprobe zr36060)

then run update-modules to regenerate /etc/modules.conf

- card=1 is because I have a new model, you can find the appropriate number 
for other versions there :
http://mjpeg.sourceforge.net/driver-zoran/cards.php

- v4l_bufsize=2048 indicates the size of the reserved bigphys buffer, it's 
enabled by default in Debian kernels (CONFIG_BIGPHYS_AREA=y), 
so all you need to do is to add to your append line in /etc/lilo.conf a 
bigphysarea parameter with the buffer size, this way the kernel will reserve 
this amount of memory as video buffer

More informations about bigphysmem can be found here :
http://www.polyware.nl/~middelink/En/hob-v4l.html#bigphysarea

here's mine :
append="hdc=ide-scsi hdd=ide-scsi max_scsi_luns=1 bigphysarea=2048"

Don't forget to run lilo again, and reboot, because the kernel seems to need 
this to reserve memory.
statistics are available there :
# cat /proc/bigphysarea 
Big physical area, size 8192 kB
                       free list:             used list:
number of blocks:             1                      0
size of largest block:     8192 kB                   0 kB
total:                     8192 kB                   0 kB

(I have no clue why it looks bigger)

This will enable you to capture stills JPEG using xawtv for example.



Video playback in real time
--------------------------------------------

mplayer has a feature which will let you play your videos directly to the tv, 
which was supposed to be impossible unless you used a MJPEG codec
all you need to do is to get mplayer here :

http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-0.92.tar.bz2

# tar xjvf MPlayer-0.92.tar.bz2
# cd MPlayer-0.92
# ./configure --enable-zr
# make
# make install

then you can run mplayer with the special video output :
# mplayer -vo zr somefile.avi

you can also scale it to remove "black lines" :
# mplayer -vo zr -sws 0 -vop scale=384:204 file.avi
see man mplayer for further informations