Is there anything that can be done to get the ov51x-jpeg driver working on ps2linux?
Edit 24.01.2011
Got it to work!
Too bad it cannot be used sufficiently as the CPU usage is constantly 100%. Maybe framedroping or lower resolution can "fix" this. Also using the "-palette grey" option may speed up things.
ov51x-jpeg-0.5.3 source should be installed:
The archives are ZIP (I will upload tar.gz)
Code:
#install effectv binary to /usr/bin (this is only required to run the program)
#extract it
cd ov51x-jpeg-0.5.3
make
make install-2.4
modprobe ov519_decomp
# this will automatically load module "videodev" and "ov51x"
effectv -device /dev/ps2video0
# if it doesn't work then try "/dev/video*" "/dev/ps2video*" where "*" can be " ", "0", or "1"
use the up and down arrows on the kbd to change the effects.
Do "modprobe audio" to load usb audio driver.
Mplayer:
Video and audio.
!! This is terably slow. Cannot be conntrolled, very hard to stop the program.
Better use only video or only audio! - change one of "-ao none" "-vo none".
For some reason the audio is very bad.
Code:
mplayer -tv driver=v4l:width=640:height=480:outfmt=i420:device=/dev/ps2video0:forceaudio:adevice=/dev/dsp3 -vo sdl -ao sdl -framedrop tv://
# better change 640 to 320 and 480 to 240 to get better speed
#audio will most likely not work. To get it "partialy" working add the following after "/dev/dsp3":
:immediatemode=0
To get the audio from the mic in the camera to the speakers use:
Code:
dd if=/dev/dsp3 of=/dev/dsp
That works worse than the above. (probably more arguments are needed to controll the command)
Better do "cat /dev/dsp*" in terminal window before that to determine where is the audio device.
XawTV also works with this driver and the EyeToy but the image is "rather blue"(Much like the Avatar movie
). The same effect is observed on Ubnuntu 10 with kernel 2.6 - so the problem is in the app (probably wrong palette setting). Installation of xawtv is easy, compiling and installing goes without errors and the application works fine. (There are only some warnings on startup.)
Enabling audio device ("-C /dev/dsp3") causes very slow responce and eventualy jams up the PSTwo.
The "getjpeg" program in ov51x-1.65-1.1x-mark will not work with the ov519 decompressor - the getjpeg program may work if it's from later versin ex: 1.5.7 (I tried and it didn't work- file is created but cannot be oppened by jpeg picture viewer programs).
Capturing a picture with the EyeToy can be done with Mplayer - by setting "-vo" to "-vo jpeg".
INSTALLATION:
Kernel
Use the attached kernel 2.4.17 (vmlinux_v4l.gz) in KernelLoader.
Extract the "linux-2.4.17_ps2_v4l.tar.gz" to "/installs" directory (for example).
WARNING! Installing this will delete all previously installed modules!!!
You can make a backup of the "/lib/modules/2.4.17_mvl21" folder in the same directory and edit the modules.dep file in the newly installed folder, also adding the removed modules.
Code:
su
changeme
mkdir /installs
cd /installs
tar xjvf /where_the_file_is/linux-2.4.17_ps2_v4l.tar.gz
cd linux-2.4.17_ps2
make modules_install
This will take some time.
ov51x-jpeg-0.5.3 :
Extract ov51x-jpeg-0.5.3-e2.tar.gz to some directory on the root fs - for example /installs :
Code:
tar xzvf /where_the_file_is/ov51x-jpeg-0.5.3-e2.tar.gz
cd ov51x-jpeg-0.5.3
make
make install-2.4
# (edited after deba5er's post:)devices in /dev directory saometimes don't exist, so they have to be created:
mknod /dev/video0 c 81 0
mknod /dev/video1 c 81 1
mknod /dev/ps2video0 c 81 0
mknod /dev/ps2video1 c 81 1
cd /dev
./MAKEDEV
EffecTV
Code:
cd /
tar xzvf /where_effectv_is/effectv-0.3.9-bin.tar.gz
OR
Code:
cd /installs
tar xzvf /where_effectv_is/effectv-0.3.11_ps2.tar.gz
cd effectv-0.3.11_ps2
make clean #skip this
make #and this if you don't want to wait
make install
cp ./effectv /usr/bin
When the capture program is startder, linux sometimes complains about "char-major-81-0" Fix:
"vim /etc/modules.conf"
and add (or change)
Code:
alias char-major-81-0<TAB>ov51x
alias char-major-81-1<TAB>ov51x
-End of INSTALLATION-
Effectv 0.3.11 does not compile on ps2linux. It would be good if somebody fixes it, as it has more effects and the Changelog states that newer versions are optimized to run faster.
Edit:
Fixed it.
1. /effects/bluescreen.c :
All the variables for which there is an error "undeclared" should be declared right after the lines:
Code:
int k;
int d;
RGB32 *bg=bgimage;
RGB32 *bs_min=bluescreen_min;
RGB32 *bs_max=bluescreen_max;
2. /utils.c :
Change "trunc" to "trunc_" at all 4 places in the file.
3. /
When "make install" is run, effectv binary doesn't gets installed at /usr/local/bin (there is a file there but it doesn't work) - Wrong - the file is working, but cannot be started from /usr/local/bin - copy it to /usr/bin
Code:
cp ./effectv /usr/bin
The attached file "effectv-0.3.11_ps2.tar.gz" works on ps2linux.
The camera works when connected through a USB hub.
deba5er uploaded a compiled ecasound to 4shared:
ecasound-2.3.0-ps2.tar.bz2 - 4shared.com - online file sharing and storage - download
*That program is huge 
Extract to /home/adent , then:
Code:
su
changeme
cd /home/adent/ecasound-2.3.0
make install
Running:
(Run in another terminal, in the background.)
Code:
ecasound -i /dev/dsp3 -o /dev/dsp
All Windows users can experience all of EffecTV's effects with EffecTV Download :: Open Source Programs and Software for Windows (I think there are more effects in this version than in 0.3.11). (Windows EyeToy drivers: http://psx-scene.com/forums/f20/diff...cameras-75088/ (Difference between PS2 EyeToy cameras) )
For linux users : "apt-get install effectv" .