Hi there I got a few altivec-related errors if I try to compile it (in both 2.6.7-r1 and 2.6.8). In both versions, the errors occurs in: mpeg2dec/libmpeg2/motion_comp_altivec.c So I replaced this mpeg2dec/libmpeg2/motion_comp_altivec.c and also mpeg2dec/libmpeg2/idct_altivec.c by newer ones (I tried the ones of mpeg2dec-0.4.0b, grabbed here: http://svn.mplayerhq.hu/mplayer?view=rev&revision=12933). The result is, it compiles fine without problems.
If I start it, I got: az@ibook ~ % electricsheep please be patient while the first sheep is downloaded... X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 141 (XVideo) Minor opcode of failed request: 19 () Serial number of failed request: 251 Current serial number in output stream: 251 zsh: terminated /usr/bin/electricsheep
As I have media-libs/libmpeg2 installed, I try to link against it. So I removed now the complete subdir mpeg2dec of the source and I changed the Makefile.am: Remove mpeg2dec from SUBDIRS => SUBDIRS = flam3 Add -lmpeg2 => electricsheep_voter_LDADD = @X_LIBS@ -lX11 -lmpeg2 @X_EXTRA_LIBS@ I also had to update the electricsheep-voter.c a little bit: Remove bad include-line: #include "mpeg2dec/libvo/vroot.h" This changes also results in a fine compilation.
This time, I got the following: az@ibook ~ % electricsheep mpeg2dec_onroot: No such file or directory zsh: terminated electricsheep This should be the result from removing the mpeg2dec-part from the package... I tried a workaraound: I created the file /usr/bin/mpeg2dec_onroot with the following content: #!/bin/bash echo $@ mpeg2dec -o x11 Now, I got the following: az@ibook ~ % electricsheep -f 23 -w -1 mpeg2dec-0.4.0 - by Michel Lespinasse <walken@zoy.org> and Aaron Holtzman 22 frames in 1.68 sec (13.10 fps), 7 last 0.51 sec (13.73 fps) At least, I see some of the sheeps now. If I try out other vidoe output modes of mpeg2dec, I got the same X-BadMatch-error in case of xv/xv2 and sdl behavior is very strange, the output is very fast, it seems too fast and very often, the screen got blank and only got a picture back if the window losts the focus and got it back. Seems not to be perfect, but perhaps, this is libmpeg2-related or a misconfigured Xorg by myself (but everything else is working fine, also Xv (for example used my mplayer)). I also thin the interaction with the voter-system doesn't work, but this should be fixable. Perhaps, my first try with mpeg2dec builtin will have better results if I managed this X-BadMatch-error, but this should be manageable. Perhaps, I will take a closer look at the code soon.
Reopen when you've found a viable solution; replacing files by ones from another project is really not one ;)