motion and Full HD

Hmm. Anyone already solved this issue with “motion” capturing 1920×1080, i. e. Full HD, streams?

Jun 10 06:12:10 death motion: [5] Retrying until successful connection with camera
Jun 10 06:12:10 death motion: [5] netcam image height (1080) is not modulo 16
Jun 10 06:12:20 death motion: [5] Retrying until successful connection with camera
Jun 10 06:12:20 death motion: [5] netcam image height (1080) is not modulo 16

Hrmpft. This is really annoying.

TL-MR 3020 as a webcam server

Took me a while, but I’m now rather confident that the issues I was having with the MR3020 as a mjpg-streamer powered streaming webcam server are related to the camera(s) used, not (only) to the tiny box. As you can see below, “only” in daylight the images gets distorted:

As of now I assume that the framerate reported by the camera is responsible for this, as that cam is reporting only 30 fps for all resolutions. It’s working nicely on a SheevaPlug with full-blown Debian, but Sheeva is a different hardware to the MR3020 (and 3 to 5 times as expensive per box); I might try a Dockstar as the host for this cam, but time will tell.

Just FTR, with a quickly ordered Logitech C270 HD, the MR320 is serving just nicely as a streaming webcam server (cam reports 5 and 10 fps for 1280×720, I choose 5, which is sufficient for now):

Webcam server with TL-MR 3020?

Hmm. Previously, I build two nice webcam-servers out of Fonera 2.0g boxes (German posts: 1 & 2). cpuinfo of the Foneras is as follows:

root@cam-serv3:~# cat /proc/cpuinfo 
system type             : Atheros AR2315
processor               : 0
cpu model               : MIPS 4KEc V6.4
BogoMIPS                : 183.50
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

There I run two jobs, for /dev/video0 and /dev/video1, of mjpg_streamer -i input_uvc.so -f 10 -r 960x720 ..., which results in this top output:

Mem: 19836K used, 10080K free, 0K shrd, 1140K buff, 6096K cached
CPU:  19% usr  11% sys   0% nice   1% idle   0% io  31% irq  34% softirq
Load average: 2.57 2.51 2.45
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 1518  1064 root     R     8732  29%  33% mjpg_streamer -i input_uvc.so -d /dev
 1517  1060 root     R     8572  29%  26% mjpg_streamer -i input_uvc.so -f 10 -
 1065  1064 root     R     8732  29%  20% mjpg_streamer -i input_uvc.so -d /dev
 1061  1060 root     S     8572  29%   7% mjpg_streamer -i input_uvc.so -f 10 -
 1577  1520 root     R     1960   7%   6% top -d 2 
 1519   933 root     S     1996   7%   1% /usr/sbin/dropbear -p 22 
 1064  1058 root     S     8732  29%   0% mjpg_streamer -i input_uvc.so -d /dev
 1058     1 root     S     8732  29%   0% mjpg_streamer -i input_uvc.so -d /dev
 1067  1064 root     S     8732  29%   0% mjpg_streamer -i input_uvc.so -d /dev
 1060  1056 root     S     8572  29%   0% mjpg_streamer -i input_uvc.so -f 10 -
 1056     1 root     S     8572  29%   0% mjpg_streamer -i input_uvc.so -f 10 -
 1066  1060 root     S     8572  29%   0% mjpg_streamer -i input_uvc.so -f 10 -
 1055     1 root     S     1976   7%   0% udhcpc -t 0 -i ath0 -b -p /var/run/at
  520     1 root     S     1972   7%   0% udhcpc -t 0 -i eth0.1 -b -p /var/run/
[...]

Recently I joined the MR3020 hype, them being quite similar to the Fonera 2.0g systems, i. e. Atheros-based, supported by OpenWR, rather cheap (<30 EUR) and with USB; only drawback is the ridiculously small on-board Flash:

root@cam-serv5:~# cat /proc/cpuinfo 
system type             : Atheros AR9330 rev 1
machine                 : TP-LINK TL-MR3020
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0280, 0x05d0, 0x0630]
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

But to my big disappointment, running even only one process of mjpg_streamer, /usr/bin/mjpg_streamer --input input_uvc.so --device /dev/video0 --fps 1 --resolution 1280x720 ..., seems to max the system out, and anything above 1 fps, I tested 2, 5, 10, gives quite chopy images, distorted in odd ways. top says:

Mem: 25868K used, 3308K free, 0K shrd, 1412K buff, 5392K cached
CPU:   0% usr   0% sys   0% nic  97% idle   0% io   0% irq   0% sirq
Load average: 0.06 0.11 0.11 1/41 1542
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 1514     1 root     S    24424  84%   0% /usr/bin/mjpg_streamer --input input_
 1541  1431 root     R     1496   5%   0% top -d 2
 1430  1362 root     S     1216   4%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1431  1430 root     S     1504   5%   0% -ash
  592     1 root     S     1504   5%   0% /sbin/syslogd -C16
 1140     1 root     S     1504   5%   0% /sbin/udhcpc -t 0 -i wlan0 -b -p /var
...

So, it does not seem to be a CPU limitation; the CPU should be even more powerful than the Fonera’s, and the minor increase in resolution, 1280×720 instead of 960×720, should be compensated by far by the two USB cams served by the Fonera. Any opinions or tips?

Tweet-Einbindung in WP

Schon cool: »copy link« im Kontextmenü auswählen, ggf. das /#! wegwerfen, und schon stellt ein kleines lokales Plugin gemäß »Ottos« Blogeintrag einen Tweet samt Anhang dar — aus https://twitter.com/wusel/status/197085455915814912 wird:

https://twitter.com/wusel/status/197085455915814912

DAS ist letztlich der Grund, warum ich von SPHPBLOG auf WordPress mit einer fscking Datenbank gewechselt bin :-) (Aber warum wird »Wordpress« oben zu »WordPress«?)
#tw #fb

WordPress integrating with Twitter, FB … and Android?

What’s the suggested plugin, or shall I use multiple, for properly integrating my now WordPress-powered blog with Twitter and Facebook?

I want to be able to selectively post to Twitter and/or Facebook, and want to record external responses (replies/retweets on Twitter, comments on Facebook) in WordPress as well. Posting comments on FB-derived ones in WP will still break the discussion, but that I intend to think about after some trial period.

Furthermore I’m looking for a different Android-App than the one called ‘WordPress’ in the MarketPlayStore, since this one seems to break EXIF data on image upload :-(

So, my dear followers: Any hints appreciated on #tw and FB as well as on the blog :-)

Und nun mal ein Image per Web-Upload …

[exif id=”9593″]

… anstatt des Android-Clients. Bleiben da wenigstens die EXIF-Tags bestehen und werden die richtigen in die DB übernommen?

[Edit] Augenscheinlich ja. Demnach hat mich die EXIF-strippende WordPress-App für Android nun rund einen Tag auf Hexenjagd geschickt, warum denn keines der angeblich ach-so-geilen Plugins bei mir funktioniert. Su-per. #tw #fb [/EDIT]

WP and me …

… might never become frieds :-(

P1010411.JPG exceeds the maximum upload size for this site.

Holy shit, this is my bloody site and I do want to upload this 5.7 MB image. Gnampf! #tw

Too sober for mod_rewrite?

#fb #tw

I’m really a bit confused right now. I want to use apache2’s mod_rewrite to link from the previous blog (powerded by locally hacked SPHPBLOG) to my new, shiny, WordPress-driven one. Therefore old links like /index.php?entry=entry120414-202918 need to be redirected to http://v2.blogdoch.net/2012/04/ …

So, what I tried was:

RewriteRule     ^/index.php\?entry=entry([0-9][0-9])([0-9][0-9])([0-9][0-9])-202918   http://v2.blogdoch.net/20$1/$2/ [R,L]

Above does not fire at all. The followings does, but a bit unexpected:

RewriteRule     ^/index.*[^=](.*)$     http://v2.blogdoch.net/old/$1 [R=302,L]

I call "Location: http://v2.blogdoch.net/old/?entry=entry120414-202918” unexpected on a "wget http://blogdoch.net/index.php?entry=entry120414-202918” here. WTF is going on? I’d expect “entry120414-202918“, but not everything after, and including, “?” — is my regexp foo that rusty?!

Any hints appreciated ;)