Friday 19 July 2013

raspberry pi tvheadend

Tvheadend Updates

  • Firmware updated:Linux raspberrypi 3.6.11+ #502
  • tvheadend: old 3.5.201~g2a9ccdd, new 3.5.232~g7ac5542
Seems much better.

Flash drive and SD card Read timing


pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads:  44 MB in  3.02 seconds =  14.59 MB/sec
pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/root

/dev/root:
 Timing buffered disk reads:  46 MB in  3.10 seconds =  14.86 MB/sec
pi@raspberrypi /media/usbstick/recordings $ 

Wifi Timings

The Passenger.ts 100% 1873MB 339.5KB/s 1:34:11 The Portrait of a Lady.ts 100% 1759MB 588.4KB/s 51:01 Still requires burstmode off

Thursday 11 July 2013

Ralink RT5370 chip

To find chipset: lsusb -v
Devices with RT5370 chipset do not work out of the box in Ubuntu 11.10 to 12.04. They work automatically in Ubuntu 12.10. 
https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M

 http://ubuntuforums.org/showthread.php?t=1800178&highlight=rt5370sta

Wednesday 12 June 2013

Raspberry pi firmware update

New  version (was #371)
Linux raspberrypi 3.6.11+ #464 PREEMPT Thu Jun 6 18:17:55 BST 2013 armv6l GNU/Linux
Also set
gpu-mem=128
Then trying TVheadend with XBMC
http://myatus.com/p/watching-tv-on-your-android-via-a-raspberry-pi/

XMBC PVR addiin via  http://michael.gorven.za.net/raspberrypi/xbmc#comment-636

Decoder: PCTV Systems DVB-T2 290e nanoStick HD TV Tuner

I tried to install the 290e driver on the T42 with lubuntu. Produced the error:

 CC [M]  /home/andy/media_build/v4l/v4l2-async.o
  CC [M]  /home/andy/media_build/v4l/v4l2-of.o
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_parse_csi_bus':
/home/andy/media_build/v4l/v4l2-of.c:38:4: error: implicit declaration of function 'of_prop_next_u32' [-Werror=implicit-function-declaration]
/home/andy/media_build/v4l/v4l2-of.c:38:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_next_endpoint':
/home/andy/media_build/v4l/v4l2-of.c:172:3: error: implicit declaration of function 'of_get_child_by_name' [-Werror=implicit-function-declaration]
/home/andy/media_build/v4l/v4l2-of.c:172:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_remote_port_parent':
/home/andy/media_build/v4l/v4l2-of.c:237:2: warning: passing argument 1 of 'of_parse_phandle' discards 'const' qualifier from pointer target type [enabled by default]
include/linux/of.h:230:28: note: expected 'struct device_node *' but argument is of type 'const struct device_node *'
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_remote_port':
/home/andy/media_build/v4l/v4l2-of.c:261:2: warning: passing argument 1 of 'of_parse_phandle' discards 'const' qualifier from pointer target type [enabled by default]
include/linux/of.h:230:28: note: expected 'struct device_node *' but argument is of type 'const struct device_node *'
cc1: some warnings being treated as errors
make[3]: *** [/home/andy/media_build/v4l/v4l2-of.o] Error 1
make[2]: *** [_module_/home/andy/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-48-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/andy/media_build/v4l'
make: *** [all] Error 2
build failed at ./build line 452.

This suggests  http://pastebin.com/48W5Da20 that  Building a vanilla kernel 
is the way to go, but that looks to much for now.

Saturday 1 June 2013

Android Star s5: installing debian and java

Following my adventures with the Raspberry Pi, I decided it was time for a new phone. I went for:

Star One S5 5.0 inch (1280*720) HD capacitive 720P screen Android 4.2 OS 3G Smart Phone MTK6589 1.2GHz Quad Core 1G RAM 8G ROM 12MP back camera.

Looking good so far:

 Here is the result running BaseX via vnc:



Monday 27 May 2013

photos to velvet

 Updates pics
Number of files: 15306
Number of files transferred: 14379
Total file size: 29500109603 bytes
Total transferred file size: 29500109603 bytes
Literal data: 29500109603 bytes
Matched data: 0 bytes
File list size: 296644
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 276934
Total bytes received: 29510922538

sent 276934 bytes  received 29510922538 bytes  1088110.89 bytes/sec
total size is 29500109603  speedup is 1.00

Sunday 28 April 2013

Wireless router performance settings

Trying some new router settings to try and solve persistent drop out/speed problems. New settings taken from http://www.pcmag.com/article2/0,2817,2405997,00.asp

Old settings

Sunday 21 April 2013

Notes on photo tags

A collection of 7587 images; mainly photos from a couple of different cameras. Processed using Apache Tika to extract the metadata.
307 different tags were found as below.

The interesting/useful ones are: 
  • the "Chroma Palette PaletteEntry" entries are from some BMP files.
  •  Width fields: "tiff:ImageWidth" and "ImageWidth" and  "Exif Image Width" and "width"
  • Taken date: "Creation-Date" "meta:creation-date" and "dcterms:created"
  • geo:lat and geo:lng
  • tiff:Model
  • meta:keyword dc:subject
OccuranceField
34865 Chroma Palette PaletteEntry
7586 tiff:ImageWidth
7586 tiff:ImageLength
7586 Content-Type
7586 Content-Length
7586 resourceName
7248 tiff:BitsPerSample
6824 Data Precision
6824 Y Resolution
6824 Component 1
6824 Compression Type
6824 X Resolution
6824 Image Width
6824 Number of Components
6824 Image Height
6820 Component 2
6820 Component 3
5993 Exif Version
5944 Exif Image Width
5944 Exif Image Height
5920 Creation-Date
5920 meta:creation-date
5920 dcterms:created
5903 Date/Time Digitized
5903 Resolution Unit
5901 meta:save-date
5901 Last-Save-Date
5901 Last-Modified
5901 modified
5901 Date/Time
5901 dcterms:modified
5901 date
5899 Model
5899 tiff:ResolutionUnit
5899 tiff:Model
5899 tiff:XResolution
5899 FlashPix Version
5899 Color Space
5899 tiff:Make
5899 tiff:YResolution
5899 Make
5864 YCbCr Positioning
5864 Components Configuration
5843 Date/Time Original
5827 Focal Plane X Resolution
5827 Focal Plane Resolution Unit
5827 Focal Plane Y Resolution
5804 Thumbnail Compression
5801 Thumbnail Length
5801 Thumbnail Offset
5755 exif:DateTimeOriginal
5746 File Source
5735 Metering Mode
5735 Flash
5735 Exposure Bias Value
5735 Focal Length
5735 exif:FocalLength
5735 exif:FNumber
5735 F-Number
5735 exif:Flash
5712 Aperture Value
5712 Shutter Speed Value
5700 Max Aperture Value
5695 Compressed Bits Per Pixel
5671 Interoperability Version
5661 Interoperability Index
5625 Sensing Method
5426 White Balance
5403 Sharpness
5400 Quality
5400 Focus Mode
5400 Flash Mode
4800 Exposure Time
4800 exif:ExposureTime
4743 Exposure Mode
4739 White Balance Mode
4739 Scene Capture Type
4739 Custom Rendered
4360 Software
4360 tiff:Software
4094 Orientation
4066 tiff:Orientation
3811 Related Image Width
3811 Related Image Length
3581 Resolution Units
3215 Unique Image ID
2948 Scene Type
2937 Copyright
2937 exif:IsoSpeedRatings
2937 Exposure Program
2937 ISO Speed Ratings
2876 Brightness Value
2838 User Comment
2794 Digital Zoom Ratio
2787 Firmware Version
2764 Firmware Revision
2764 Control Mode
2764 Date Stamp Mode
2764 Long Focal Length
2764 Iso
2764 Macro Mode
2764 Thumbnail Image Valid Area
2764 Valid AF Point Count
2764 My Colors
2764 Auto Rotate
2764 Camera Temperature
2764 Measured EV 2
2764 Self Timer Delay
2764 AF Image Height
2764 Auto ISO
2764 AF Point Selected
2764 AF Points in Focus
2764 AF Points in Focus Count
2764 Saturation
2764 Auto Exposure Bracketing
2764 Self Timer 2
2764 Flash Output
2764 Flash Guide Number
2764 Owner Name
2764 AEB Bracket Value
2764 Target Aperture
2764 Contrast
2764 ND Filter
2764 Flash Activity
2764 Target Exposure Time
2764 AF Area Height
2764 Easy Shooting Mode
2764 Image Type
2764 AF Point Count
2764 Exposure Compensation
2764 Focus Distance Lower
2764 Image Number
2764 Focus Distance Upper
2764 Image Size
2764 Canon Model ID
2764 Camera Info Array
2764 Focal Units per mm
2764 AF Area Y Positions
2764 Digital Zoom
2764 Flash Details
2764 Optical Zoom Code
2764 Continuous Drive Mode
2764 Primary AF Point 1
2764 Primary AF Point 2
2764 Base ISO
2764 AF Area X Positions
2764 Camera Type
2764 Bulb Duration
2764 AF Image Width
2764 Short Focal Length
2764 Focus Type
2764 F Number
2764 Sequence Number
2764 Slow Shutter
2764 Flash Exposure Compensation
2764 AF Area Width
2764 Measured EV
2685 Makernote Version
2659 Macro
2636 AE Warning
2636 Flash Strength
2636 Picture Mode
2636 Blur Warning
2636 Continuous Taking Or Auto Bracketting
2636 Slow Synch
2636 Focus Warning
2244 Color Saturation
2121 IPTC-NAA record
1944 Keywords
1944 meta:keyword
1944 dc:subject
1944 subject
1907 Subject Distance Range
938 Application Record Version
937 Caption digest
934 Enveloped Record Version
934 Coded Character Set
762 Compression CompressionTypeName
762 height
762 width
654 GPS Version ID
651 GPS Altitude Ref
651 GPS Longitude
651 GPS Latitude Ref
651 geo:lat
651 GPS Latitude
651 GPS Longitude Ref
651 geo:long
608 Author
608 creator
608 dc:creator
608 meta:author
597 By-line
425 GPS Altitude
424 Data BitsPerSample
398 Dimension HorizontalPhysicalPixelSpacing
398 Dimension VerticalPhysicalPixelSpacing
398 Dimension PixelAspectRatio
380 Artist
338 Data SampleFormat
338 Chroma NumChannels
338 ImageDescriptor
338 Dimension VerticalPixelOffset
338 GraphicControlExtension
338 Compression Lossless
338 Dimension ImageOrientation
338 Chroma BlackIsZero
338 Dimension HorizontalPixelOffset
338 Chroma ColorSpaceType
338 Compression NumProgressiveScans
336 LocalColorTable ColorTableEntry
205 dc:description
205 description
167 Caption/Abstract
161 Spatial Frequency Response
148 Chroma Palette
134 Flags 1
134 DCT Encode Version
134 Color Transform
134 Flags 0
72 Resolution Info
72 Print flags
72 Print flags information
70 Color transfer functions
70 Color halftoning information
62 Transparency TransparentIndex
61 Red Colorant
61 XYZ values
61 Profile Size
61 Class
61 Media White Point
61 Red TRC
61 Green TRC
61 Blue TRC
61 Profile Connection Space
61 Media Black Point
61 Color space
61 Green Colorant
61 CMM Type
61 Profile Description
61 Blue Colorant
61 Primary Platform
61 Signature
61 Device manufacturer
61 Tag Count
61 Profile Date/Time
61 Comments
61 w:comments
61 comment
60 Viewing Conditions Description
60 Device model
60 Viewing Conditions
60 Technology
60 Device Mfg Description
60 Measurement
60 Device Model Description
60 Luminance
53 Jpeg Comment
47 Component 4
46 Noise
42 JPEG quality
42 Copyright flag
42 Sub-Sec Time Original
42 Sub-Sec Time Digitized
42 Grid and guides information
38 Sub-Sec Time
38 Image Description
26 Mac Print info
23 Jpeg Quality
23 Special Mode
23 Camera Id
23 Data Dump
23 Pict Info
23 DigiZoom Ratio
21 ApplicationExtensions ApplicationExtension
18 dc:title
18 Windows XP Title
15 Windows XP Keywords
10 Seed number
10 Global Angle
9 Thumbnail Data
8 CommentExtensions CommentExtension
8 Text TextEntry
6 Windows XP Author
4 Date Created
4 Time Created
3 Print Scale
3 Pixel Aspect Ratio
3 Subject Distance
3 tiff:SamplesPerPixel
3 LocalColorTable
3 Object Name
3 Lens
3 URL List
3 XML Data
3 Serial Number
3 Firmware
3 Global Altitude
3 Version Info
3 Lens Information
3 Slices
2 Photoshop 4.0 Thumbnail
2 Grayscale and multichannel halftoning information
2 Grayscale and multichannel transfer function
1 Originating Program
1 Layer state information
1 Layers group information

Monday 1 April 2013

Apache virtual hosts and proxypass

...what I wanted was to setup a new VirtualHost entry on Apache to handle the new domain but also make use of the ProxyPass and ProxyReversePass directives to have Apache transparently pass-through traffic from the VirtualHost domain to Tomcat running in the background on some non-conflicting port, like port 80.
thebuzzmedia.com
<VirtualHost *:80>
    ServerAdmin john@doe.com
    ServerName <my domain>.com
    ServerAlias www.<my domain>.com
    ProxyPass / http://localhost:8080/<web-app context root>/
    ProxyPassReverse / http://localhost:8080/<web-app context root>/
    ErrorLog logs/<my domain>.com-error_log
    CustomLog logs/<my domain>.com-access_log combined
</VirtualHost>


Following these instructions for the  ReadyNas  I was able to
map from a dynamic domain name from http://www.noip.com/ through ReadyNas1 to a BaseX instance on velvet


<VirtualHost *:80>
    SSLEngine  off 
    ServerName test-apb.zapto.org
  ProxyPass / http://192.168.1.8:8984/
  ProxyPassReverse / http://192.168.1.8:8984/
</VirtualHost> 
 

Related

retain original request url on mod proxy redirect 

XML Prague

It was a long time ago now, but before winter finally ends I should record a couple of  links.

I gave a talk at the BaseX pre-conference   http://files.basex.org/xmlprague2013/. The slides are also on slideshare. The video never made it out but Eric van der Vlist took some photos.
Some related work by others in the same areas:

Sunday 6 January 2013

ubuntu remote mount

#usermod -a -G fuse andy
#sshfs root@velvet:/c/media/Pictures Pictures

remove
fusermount -u Pictures