update - changing palette from YUYV to BA81 at 352x288 has removed horizontal breakup in capture on kworld usb2800. (Not tried; higher resolutions/ easycap device yet )
discovered this;
http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/48009
which leads to;
http://www.mail-archive.com/linux-media<at>vger.kernel.org/msg28200.html
Subsequently changed "height >>= norm_maxh(dev)" to "height = norm_maxh(dev) >> 1" to /linux/drivers/media/video/em28xx/em28xx-core.c in my media-build tree from linuxtv.org. Did a make all and a make install (not ./build which gets new sources) and a reboot. Refer to the links above for a fuller explanation.
I have a choppy picture (horizontal blocking and artefacts/lines) with an Easycap DC60 on my Raspberry Pi, but at least it's a picture.
The KWorld USB2800 is producing some pictures too. Similar patterns of break up.
This is the unofficial development blog of Bufocam, the toad tunnel camera system for monitoring the use of wildlife tunnels and culverts by amphibians.
Friday, 29 June 2012
Wednesday, 27 June 2012
Hauppauge USB 2 live
There's something about a regression patch here, but i don't really understand how to apply this... and it's over a year old.
http://www.mail-archive.com/linux-media@vger.kernel.org/msg34771.html
It seems to concern the hauppauge usblive2 definition in cx231xx-cards.c
the kernellabs version of this file looks like;
http://kernellabs.com/hg/~dheitmueller/polaris4/file/8d1cbe46f97f/linux/drivers/media/video/cx231xx/cx231xx-cards.c#l374
mine looks like this one - from the linuxtv, media-build;
http://lxr.free-electrons.com/source/drivers/media/video/cx231xx/cx231xx-cards.c#L378
I'm a bit confused - but I suppose the changes are in the current driver now, and I should ignore the regression business - as this page states; it should just work now anyway. (19th May)
https://www.thecraag.com/USB_Live2_Video_Capture_Card_on_legacy_kernels
Except it isn't.
adding
deb http://www.deb-multimedia.org wheezy main non-free
to
/etc/apt/sources.list
it complained
W: GPG error: http://www.deb-multimedia.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
so i get the key
gpg --keyserver hkp://pgpkeys.mit.edu --recv-keys 07DC563D1F41B907
gpg --armor --export 07DC563D1F41B907 | apt-key add -
trying an update and an upgrade... lots of things from the debian repository, and a couple of files from the above. Rebooting...
...no change.
Trying the change from
https://www.thecraag.com/USB_Live2_Video_Capture_Card_on_legacy_kernels
and
http://www.mail-archive.com/linux-media@vger.kernel.org/msg34773.html
In the file: linux/drivers/media/video/cx231xx/cx231xx-avcore.c from the media-build.git repository of linuxtv.org; this is at best optimistic.
Change '(1<<7)' to '(0<<7)'
and
msleep(PWR_SLEEP_INTERVAL);
http://www.mail-archive.com/linux-media@vger.kernel.org/msg34771.html
It seems to concern the hauppauge usblive2 definition in cx231xx-cards.c
the kernellabs version of this file looks like;
http://kernellabs.com/hg/~dheitmueller/polaris4/file/8d1cbe46f97f/linux/drivers/media/video/cx231xx/cx231xx-cards.c#l374
mine looks like this one - from the linuxtv, media-build;
http://lxr.free-electrons.com/source/drivers/media/video/cx231xx/cx231xx-cards.c#L378
I'm a bit confused - but I suppose the changes are in the current driver now, and I should ignore the regression business - as this page states; it should just work now anyway. (19th May)
https://www.thecraag.com/USB_Live2_Video_Capture_Card_on_legacy_kernels
Except it isn't.
debian multimedia - acts of desperation
adding
deb http://www.deb-multimedia.org wheezy main non-free
to
/etc/apt/sources.list
it complained
W: GPG error: http://www.deb-multimedia.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
so i get the key
gpg --keyserver hkp://pgpkeys.mit.edu --recv-keys 07DC563D1F41B907
gpg --armor --export 07DC563D1F41B907 | apt-key add -
trying an update and an upgrade... lots of things from the debian repository, and a couple of files from the above. Rebooting...
...no change.
Trying the change from
https://www.thecraag.com/USB_Live2_Video_Capture_Card_on_legacy_kernels
and
http://www.mail-archive.com/linux-media@vger.kernel.org/msg34773.html
In the file: linux/drivers/media/video/cx231xx/cx231xx-avcore.c from the media-build.git repository of linuxtv.org; this is at best optimistic.
Change '(1<<7)' to '(0<<7)'
and
msleep(PWR_SLEEP_INTERVAL);
to
msleep(PWR_SLEEP_INTERVAL * 10);
msleep(PWR_SLEEP_INTERVAL * 10);
the ./build method advocated on linuxtv updates all the files before compiling, and consequentially repairs my changes, so i'm using make all - as per the INSTALL directions.
Tuesday, 12 June 2012
composite video input
useful?
25th June 2012
KWorld 2800USB capture device;lsusb
Bus 001 Device 006: ID eb1a:2860 eMPIA Technology, Inc.
another green screen
trying
options em28xx card=8
in a file
/etc/modprobe.d/em28xx.conf
After a reboot, the card now comes up as kworld, but doesn't work.
Video resolution looks a bit strange...
THERE IS NO TUNER EITHER!?
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[1] Thread 1 started
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "em28xx"
[1] cap.card: "Kworld USB2800"
[1] cap.bus_info: "usb-bcm2708_usb-1.2.3"
[1] cap.capabilities=0x05010051
[1] - VIDEO_CAPTURE
[1] - VBI_CAPTURE
[1] - TUNER
[1] - READWRITE
[1] - STREAMING
[1] Test palette YUYV (720x576)
[1] Adjusting resolution from 720x576 to 360x576.
[1] Using palette YUYV (360x576) bytesperlines 720 sizeimage 414720 colorspace 00000001
[1] mmap information:
[1] frames=4
[1] 0 length=414720
[1] 1 length=414720
[1] 2 length=414720
[1] 3 length=414720
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] httpd - Read from client
[0] httpd - Read from client
[0] httpd - Read from client
[0] httpd - Read from client
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
21st June 2012
...second time lucky and I have a kernel with em28xx and cx321xx. The latter appears to crash everything horribly. em28xx is given me a /dev/video0 device but motion is stalling during startup.lsusb
Bus 001 Device 006: ID eb1a:2861 eMPIA Technology, Inc.
dmesg
[ 8.953890] em28xx #0: chip ID is em2860
[ 9.169704] em28xx #0: board has no eeprom
[ 9.345597] em28xx #0: found i2c device @ 0x4a [saa7113h]
[ 9.462853] em28xx #0: Your board has no unique USB ID.
[ 9.494434] em28xx #0: A hint were successfully done, based on i2c devicelist hash.
[ 9.609985] em28xx #0: This method is not 100% failproof.
[ 9.617972] em28xx #0: If the board were missdetected, please email this log to:
[ 9.940237] em28xx #0: V4L Mailing List <linux-media@vger.kernel.org>
[ 10.108901] em28xx #0: Board detected as EM2860/SAA711X Reference Design
[ 10.468909] em28xx #0: Identified as EM2860/SAA711X Reference Design (card=19)
[ 10.580113] em28xx #0: Registering snapshot button...
[ 10.588279] input: em28xx snapshot button as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.3/input/input2
[ 10.824968] em28xx #0: Config register raw data: 0x10
[ 10.929124] em28xx #0: AC97 vendor ID = 0x83847652
[ 10.989135] em28xx #0: AC97 features = 0x6a90
[ 10.996094] em28xx #0: Sigmatel audio processor detected(stac 9752)
[ 11.748736] em28xx #0: v4l2 driver version 0.1.3
[ 13.290930] em28xx #0: V4L2 video device registered as video0
[ 13.299452] em28xx #0: V4L2 VBI device registered as vbi0
[ 13.307861] em28xx audio device (eb1a:2861): interface 1, class 1
[ 13.330587] em28xx audio device (eb1a:2861): interface 2, class 1
[ 13.358893] usbcore: registered new interface driver em28xx
[ 13.366915] em28xx driver loaded
motion startup;
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[1] Thread 1 started
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "em28xx"
[1] cap.card: "EM2860/SAA711X Reference Design"
[1] cap.bus_info: "usb-bcm2708_usb-1.3.3"
[1] cap.capabilities=0x05020051
[1] - VIDEO_CAPTURE
[1] - VBI_CAPTURE
[1] - AUDIO
[1] - READWRITE
[1] - STREAMING
[1] Test palette BA81 (720x576)
[1] Using palette BA81 (720x576) bytesperlines 720 sizeimage 414720 colorspace 00000001
[1] mmap information:
[1] frames=4
[1] 0 length=414720
[1] 1 length=414720
[1] 2 length=414720
[1] 3 length=414720
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
bit of a pause...
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
Looking at the posts in response to the new wheezy beta, it looks like there might be an issue with ffmpeg?
Compiled ffmpeg sources, make install, no change...
Installed the drivers from; http://git.linuxtv.org/media_build.git
Now I have a green screen with ezcap, and haupauge usb2 freezes (at the point ezcap did before).
'green screen ezcap dc60' seems to turn up a few hits, but it's bedtime now.
19th June 2012
this time typed;cd /lib/modules/3.1.9+/build
make menuconfig
I turned on I2C in the kernel and em28xx and cx231xx are now visible. Put 'M' next to both, saved it, did;
make
and went to bed...
Father's day 2012
Trying to get em28xx and cx231xx drivers working on Raspberry Pi.
Ignore everything below... it doesn't work. Lots of errors that look like;
[url]https://gist.github.com/2902291[/url]
So I think I might be on a hiding to nothing for now.
Although I have found em28xx and cx231xx on the fedora SD card image (that seems to have vanished) I could not get them to work - tried 'modprobe' and 'insmod' and gave up as it was probably a long shot anyway.
This is an experiment to get a working composite video input. It begins with "FATAL: Module em28xx not found"
using 2012_06_10_spindle_wheezy_public_alpha.img disc image.
device I am using is easycap DC60 - em2861 eMPIA Technology, Inc
This is supposedly in the kernel... just not the kernel I have?
did apt-get update && apt-get upgrade
trying to get em28xx into kernel...
get sources (is any of this right?)
apt-get install linux-source
cd /usr/src
tar xjf /usr/src/linux-source-3.2.tar.bz2
tar xjf /usr/src/linux-source-3.2.tar.bz2
zcat /proc/config.gz > .config <-to get the present config
make menuconfig <- expected to find em28xx in here?
Can't see a em28xx anything in the V4L devices. Time for bed.
Lets try to get http://www.hauppauge.com/site/products/data_usblive2.html to work using
http://www.kernellabs.com/blog/?p=1445&cpage=1
Linuxtv says;
http://www.linuxtv.org/wiki/index.php/Hauppauge_USB-Live-2
another popular hit, (hope?)
http://radialmind.blogspot.co.uk/2010/08/hauppauge-usb-live-2-ubuntu.html
Trying make gives File not found: /lib/modules/3.1.9+/build/.config
I think I expected that.
Looks like this might help from; http://www.raspberrypi.org/phpBB3/viewtopic.php?t=6171&p=80833
sudo apt-get install git
git clone –depth 1 https://github.com/raspberrypi/linux.git
sudo mv linux /lib/modules/3.1.9+/build
cd /lib/modules/3.1.9+/build
make mrproper
gzip -dc /proc/config.gz > .config
make modules_prepare
Friday, 8 June 2012
3G modem - some links
...to pages that I am too tired to read right now.
https://wiki.archlinux.org/index.php/USB_3G_Modem
https://wiki.archlinux.org/index.php/Huawei_E1550_3G_modem
Not a priority but useful for remote access to files and to set the clock.
https://wiki.archlinux.org/index.php/USB_3G_Modem
https://wiki.archlinux.org/index.php/Huawei_E1550_3G_modem
Not a priority but useful for remote access to files and to set the clock.
Wednesday, 6 June 2012
Logitech 270
Logitech camera works. Easier to disassemble than the Lifecam. Seems to chug along at 640x480 native resolution with no trouble. None of the image chopping that i (and perhaps nobody else) have seen.
Images seem B/W - driver issue? Not an issue for IR images however.
Images seem fine now - user issue?
Board is wider than than the lifecam - may cause issues mounting it. I doubt it will fit in tunnel climate vents. Have stripped camera body and lens, heavy duty USB cable wired, with cables for external power to drive IR LEDS. The 'external power' will drive the camera and lights from the 12v, rather than taking power from the USB socket - which is fused at approx 100mA. The micro USB that drives the RPi will also come off this regulator.
08/07/12
I have wired the RPi and and USB camera to a 5v reg and 12v supply... and will see how long it stays up. 352x288 at 2 fps. I dropped the resolution again - after dropping the swapfile it crashed on a motion event this evening.
Problems with maintaining a swapfile;
Rapid file swapping on an SD card is going to have a negative effect on it's lifespan. However, a USB hard disk is going to use more power - potentially about 600ma from what little research I have done - so i moderate increase in performance is going to carry hefty price in additional battery power.
09/07/12
Camera still up, but it's 00:47. Time for bed.
10/07/12
Camera still going 14:07
Brightness and colour have been doing some strange things. The picture seems to have stayed green during daylight, and the brightness has been steadily ramping up. Will swap back to Lifecam when I get a chance and see what that is does over 24hrs.
Images seem fine now - user issue?
Board is wider than than the lifecam - may cause issues mounting it. I doubt it will fit in tunnel climate vents. Have stripped camera body and lens, heavy duty USB cable wired, with cables for external power to drive IR LEDS. The 'external power' will drive the camera and lights from the 12v, rather than taking power from the USB socket - which is fused at approx 100mA. The micro USB that drives the RPi will also come off this regulator.
08/07/12
I have wired the RPi and and USB camera to a 5v reg and 12v supply... and will see how long it stays up. 352x288 at 2 fps. I dropped the resolution again - after dropping the swapfile it crashed on a motion event this evening.
Problems with maintaining a swapfile;
Rapid file swapping on an SD card is going to have a negative effect on it's lifespan. However, a USB hard disk is going to use more power - potentially about 600ma from what little research I have done - so i moderate increase in performance is going to carry hefty price in additional battery power.
09/07/12
Camera still up, but it's 00:47. Time for bed.
10/07/12
Camera still going 14:07
Brightness and colour have been doing some strange things. The picture seems to have stayed green during daylight, and the brightness has been steadily ramping up. Will swap back to Lifecam when I get a chance and see what that is does over 24hrs.
Sunday, 3 June 2012
Panda notes
Looking at the pandaboard for better performance.
http://pandaboard.org/
http://uk.farnell.com/circuitco/pandaboard-es/pandaboard-es-omap4460-arm-cortex/dp/2098930?ref=lookahead
It comes with a price, but this looks hopeful;
http://adventuresinsilicon.blogspot.de/2011/03/pandaboard-using-webcam-as-security.html
08/07/12
For the +£100 difference, it may be worth hanging in there with the RPi for a bit. I think there are still gains to be made. Have a class 10 card to try... may experiment with swapfiles on USB HHDs.
http://pandaboard.org/
http://uk.farnell.com/circuitco/pandaboard-es/pandaboard-es-omap4460-arm-cortex/dp/2098930?ref=lookahead
It comes with a price, but this looks hopeful;
http://adventuresinsilicon.blogspot.de/2011/03/pandaboard-using-webcam-as-security.html
08/07/12
For the +£100 difference, it may be worth hanging in there with the RPi for a bit. I think there are still gains to be made. Have a class 10 card to try... may experiment with swapfiles on USB HHDs.
Saturday, 2 June 2012
Friday, 1 June 2012
Network Storage
Creating the network storage
The remaining free space on the SD card was partitioned and formatted as FAT32. This was performed on another linux machine to save time.
On the RPi, fdisk -l was used to find the name of the partition.
Then added the partition by adding the following line to /etc/fstab
/dev/mmcblk0p4 /media/data vfat defaults 0 0
Trying the NAS instructions on http://elinux.org/R-Pi_NAS#Configure_a_public_storage_area_on_the_RPi
updated the instructions with pdbedit -a -u bufo to add the user 'bufo' to samba, as per;
http://linuxcommand.org/man_pages/pdbedit8.html
The private share is working, but public isn't.
Trying again with these instructions http://www.debuntu.org/guest-file-sharing-with-samba - it seems to work ok.
A man called Jeremy has this working with lightpd on Archlinux, his notes may be more ledgible too;
http://jeremyblythe.blogspot.co.uk/2012/06/battery-powered-wireless-motion.html
Useful stuff about getting the RPi online;
http://jeremyblythe.blogspot.co.uk/2012/05/python-freedns-client-on-raspberry-pi.html
Hexxeh-rc3
Hexxeh-rc3
Hexxeh-rc3 is a "raspbian" disk image available from http://www.raspbian.org/HexxehImages.Raspbian based on debian and optimized for best performance on the Raspberry Pi. Importantly, the hexxeh-rc3 image also supports UVC webcams, such as the lifecam cinema. I have performed the following changes to the installation. It seems to run
remove the desktop
apt-get remove xorg
apt-get remove lxde
set the time
apt-get install ntp fake-hwclock
update the system (requires reboot)
apt-get update && apt-get dist-upgrade
rpi-update
load the software
apt-get install ffmpeg
apt-get install motion
apt-get install samba
apt-get install rcconf
N.B. rcconf didn't do it on it's own; had to edit /etc/default/motion
apt-get install rcconf
N.B. rcconf didn't do it on it's own; had to edit /etc/default/motion
Linux notes
Renew ssh key
ssh-keygen -R 192.168.1.80
Make the disk image (mac)
diskutil list
dd if=/Users/michael/Desktop/RaspberryPi/Images/2012-06-18-wheezy-beta.img of=/dev/disk1 bs=1m
Create new user
su
useradd bufopasswd bufo
mkdir /home/bufo
chown bufo:users /home/bufo
Subscribe to:
Posts (Atom)