This text describes the Linux Video Studio *), bigphysarea patch, Xawtv and Motv installation process in ASPLinux9 (full RedHat9 compatible) with 2.4.20-9 kernel version for Pinnacle Studio DC10 Plus video capture card ( zoran 36060 , 36067 and saa711 chipsets). A standard installation of ASPLinux9 (developer environment) is assumed to complete the installation descibed here. *)Linux-based GPL video processing tool. Installation of Pinnacle Studio DC10 Plus card requires the driver-zoran-0.9.4.tar.gz to be downloaded from mjpeg.sf.net/driver-zoran/ and unpacked. Afterwards (in the case of RedHat kernel at least), in the zoran_driver.c file in the 4512-th line
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)should be replaced by
#if 0Then you should install the kernel source-code and in the /usr/src/[linux-version]/Makefile on the 4-th line replace
EXTRAVERSION = -9aspcustomwith
EXTRAVERSION = -9asptest
or any other value. The point of this action is the removal of the substring "custom". Otherwise the driver shall not load.
After that run
make oldconfig dep clean bzImage modules modules_install install
In the Module section of
/etc/X11/XF86Config write a line that would load
video4linux on the X-server:
Load "v4l" # Video4Linux
After kernel installation go to the driver-zoran-0.9.4 directory and run "make" and "./update dc10plus PAL" subsequently. The standard videocard drivers shall be loaded. Having the driver loaded you will have to restart the X-server (or achieve automatic driver load before the X-server starts) with help of Ctrl+Shift+BackSpace.
If you need to use xawtv or
motv for video capture and grab screenshots in
the overlay mode (no blue screens , it's necessary to install the
bigphysarea patch.
During the compilation of the patched kernel (having THOROUGHLY read
the README supplied with the kernel patch) there must be a warning message,
telling you that in a certain file (shall be specified) you should replace
malloc.h with slab.h in the
#define section. By running
mem=xxxM bigphysarea=4096
during kernel load you will free (or allocate?) some
extra memory. To find out how to add this command to the "auto-load scenario
or startup list", read the zoran_driver manual.
In the case of ASPLinux9 you
may use the following (exerpts from /etc/aspldr.conf):
[linux1067443216@Linux(2.4.20-20.9observ)]
icon linux
kernel /boot/vmlinuz-2.4.20-20.9observ mem=235M bigphysarea=4096
root=/dev/hda6 ro
initrd /boot/initrd-2.4.20-20.9observ.img
where xxxM is the difference between full
RAM-size and the size of the
memory
you wish to allocate (reserve) for video capture operations.
bigphysarea=4096
means that the kernel will reserve 16Mb of RAM for video capture
buffering.
Having the system started correctly you may check the memory availability:
[user@host user]$ cat /proc/bigphysarea
Big physical area, size 4096 kB
free list: used list:
number of blocks: 1 0
size of largest block: 4096 kB 0 kB
total: 4096 kB 0 kB
[user@host user]$
To autostart before the X, you must explicitly specify the buffer
size in /etc/modules.conf:
options zoran card=2 v4l_bufsize=4096
alias char-major-81-0 zoran
alias char-major-81 zr36067
You may experience problems like
tail -f /var/log/messages:
Oct 19 16:54:52 host kernel: DC10plus[0]: v4l_set_format() - video
buffer size (128 kB) is too small
using the bigphysarea=4096 kernel boot option
To avoid this error, use extra mem=xxxM option with bigphysarea=4096.
However, Ronald Bultje (rbultje[at]ronald[dot]bitfreak[dot]net Linux
Video/Multimedia developer), the developer of the latest dc10plus driver
release suggests that
>> However, you need to "make clean && make" in the
>> driver sources to recompile it with bigphysarea support, too.
i.e. this error (preventing you from making screenshots in overlay mode of
Xawtv and Motv)
may be caused by the fact that compiling the kernel with
bigphysarea support you also need to recompile the
zoran_driver, as is has been compiled
for
the previous kernel.
3) XawTv and Motv.
To install Xawtv and Motv you will first have to remove the native
ASPLinux xawtv
as it does not contain motv. Then you should download the latest
version
of XawTv from the developer's site (motv included in the source) and install
it.
Installing the native xawtv may require the
sys/asoundlib.h library, which
can
be found in the alsa-lib-devel package supplied with
ASPLinux9 (RedHat9) (the
second package is required for compatibility):
[root@host video1]# rpm -Uhv alsa-lib-devel-0.9.6-1asp.i386.rpm
alsa-driver-headers-0.9.6-1.9asp.i386.rpm
оНДЦНРНБЙЮ... ########################################### [100%]
1:alsa-driver-headers ########################################### [ 50%]
2:alsa-lib-devel ########################################### [100%]
[root@host video1]#
This is what it looks like:
| XawTV | Motv |
![]() |
![]() |
4) To install the Linux Video Studio(http://ronald.bitfreak.net/) you will have to install jpeg-mmx-0.1.4.tar.gz first.
After ./configure and make you should say
make install, and then (that's important as the
jpeg-mmx setup doesn't copy
the jpegint.h to /usr/local/include/ that is required by libmovtar that is
required
for mjpegtools, necessary for the Linux Video Studio to operate):
cp jpegint.h /usr/local/include/
Then you will need to install libmovtar-0.1.3.tar.gz and mjpegtools-1.6.1.90.tar.gz consecutively.
Having the above listed actions performed you can install linuxvideostudio-0.1.7 linuxvideostudio-0.1.7 and let the Linux video capture and video editing fun begin.
The described above will probably work for other versions of Linux too.
To start broadcasting over the network (whether local or internet) you may use, e.g. the palantir software. The Linux and Windows server installations included.
Serguei Miridonov, the developer of the zoran chip driver writes that you can use two programs for overlay and to capture video to a file.
>> Is it possible to assign two video capture programs to >> a single capturing device simultaneously? >> Suppose one of them writing to a file, while the other >> performing overlay to control what is being written to the disk, >> that is to start xawtv and lavrec at the same time as an example? >> Maybe you have already seen such things? > > > My driver at > http://www.cicese.mx/~mirsev/Linux/DC10plus/ allows such > operations, though I cannot guarantee that nothing will ever fail > It was a sort of dirty hack there. It worked for me... > You need to start xawtv to Нbserve first, and then the > lavrec. The very same way you could watch (playback) video from a disk > > There is a new driver at > http://mjpeg.sourceforge.net/driver-zoran/ now. I didn't participate > in it, so there's nothing I can say about it definitely. Actually, I > haven't tried it yet. Although, unless my memory fails me, such an > ability must have been included, thus it must have been developed > more carefully. So I advise you to try. > > Moreover, my driver may not be working with new kernels. > > Sergey.
The Linux Video Studio looks like this:
Thanks for Alexey Krasheninnikov for english version of this howto.