Archive for April, 2011

Any network related issues..

Re-streaming sopcast with linux to ipad / iphone using ffserver ffmpeg and segmenter.


iPhone what is calaccessd?!


iPhone iOS5 poor battery life


Using powershell to search for files with date and owner criteria


Find/Search for VMWare guests mac address on ESX 4 and ESXi 4 hosts onwards


Port mirroring on nortel 5520 switch stack


Source based routing on Checkpoint SPLAT


CheckPoint R65 ndb_open: database ‘magic number’ corrupted(/opt/CPsuite-R65/fw1/database/fwauth.NDB) error


Google urchin analytics session error unable to call default routine.


VMWare ESX 4.0 iscsi volume problems.


Fedora 13 Network interface alias problems


Changing the user IIS runs as Windows 2008 IIS 7.5


Authenticating against a domain cifs share from a non domain server in IIS7.5 2008


troubleshooting activesync with exchange 2003 for iPhones


iPhone slow to wake / slide to unlock – three network


setting up replication with mysql – slave / master


How to increase your iPhone battery life – a few tips.


VMWare ESX4 guests loosing network connectivity briefly.


Howto: extract files from a .msi file


Hyperterminal / command line modem calls


Checkpoint fw monitor to debug and trace traffic.


Checkpoint FW HA debugging.


Pure-ftpd unable to list more than 2000 files.


Windows 2000/2003/2008 server Auto Admin logon


VMWare ESX4i guests power on automatically when host restarts.


Business Objects Xi3 error – The Central Management Server has failed to start. Press ‘Retry’ to attempt to start it again or ‘Cancel’ to skip any actions dependendent on the Central Management Server. (STU000213)


Find vmware guest using the MAC Address on ESX


mysql error error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’


How to speed up web servers and apache using DEFLATE.


Removing files with odd names dashes etc.. linux


Checkpoint anti-spoofing problems.


samba guest access


Windows 7 Graphics very slow refresh etc..


VMWare ESX3 Errrors after storage or host failure. Could not power on VM: No Swap File. Failed to power on VM


VMWare vSphere / virtual centre on Windows 7


File and printer sharing in Windows 7 inc admin c$ share.


Configuring VMWare ESX4i / vSphere for SNMP


Configuring sendmail for TLS certificate communication.


Enabling SNMP on VMWare ESX hosts


How to check how busy your VMWare esx cluster hosts are.


Adding category index to wordpress.


How to check sendmail is STARTTLS enabled


Change sort order of blogroll from name in wordpress


Checkpoint R60 VPN Debugging and killing IPSec / IKE Tunnels


MailScanner 4.77 process defunct and looping.


Google sitemaps appearing in russian!


Stop ARP responses for loopback adapters for loadbalancing.


Business Objects Xi3 Services not starting.


Killing VPN Tunnels in Checkpoint (IKE etc.)


Problem with show_image_in_imgtag.php in virtuemart missing images.


Finding duplicate files in Windows


Enabling SSH in VMWare ESX4i and making it permanent


VMware converter session not authenticated error


iplayer on Nokia E66


Joomla Metamod positioning problem


xrandr / xorg / laptop additional monitor setup (IBM X60)


Capturing and decoding POST data using tcpdump / wireshark


USB on VMWare ESX 3.5i console


Adding virtual interfaces and routes to Macbook Air


Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1) IP Policy issue


Intro


Re-streaming sopcast with linux to ipad / iphone using ffserver ffmpeg and segmenter.

I wanted to find a way to watch sopcast streams on my ipad, however there currently is no native ipad app for this.

Available for linux is the sopcast command line player – sp-sc-auth which works just fine, so all I needed to go was get this to my ipad. Fairly straight forward I thought as sopcast listens on a chosen port for you to connect a media application to – I tried it on my ipad with xyzplayer which worked fine for a standard def video stream, but with HD streams the picture would be in slow motion.

I tried a number of other players, but they all had the same problem. So I figured if I could re-stream the stream as h264 I could get quicktime to play it on my ipad, and that would sort the issue.

However – easier said than done!

I was able to get ffserver and ffmpeg to take the stream from sopcast and re-stream but again slow motion issues.

So I definitely needed to re-stream into a quicktime compatable stream.

So I started looking at the use of the open source conversion of apples segmenter. Looked great but had a nightmare trying to get live_segmenter.c to compile on my fedora system.

However after some digging it seemed the majority of my issues were with my version of ffmpeg.

Using these instructions I managed to get it to compile correctly:

wget http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2
tar -xvjf ffmpeg-export-snapshot-2009-12-02.tar.bz2
cd ffmpeg-export-2009-12-01/
./configure --enable-gpl --enable-nonfree  --enable-libfaac\
 --enable-libmp3lame --prefix=/tmp/old_ffmpeg
make
make install
cd
git clone git://github.com/ePirat/HTTP-Live-Video-Stream-Segmenter-and-Distributor.git
gcc -v -Wall -g live_segmenter.c -o live_segmenter \
    -lavformat -lavcodec -lavutil -lvorbis -ltheora\
    -lbz2 -lm -lz -lfaac -lmp3lame \
    -I/tmp/old_ffmpeg/include \
    -L/tmp/old_ffmpeg/lib
rm -rf /tmp/old_ffmpeg
rm -rf ffmpeg-export-2009-12-01
rm ffmpeg-export-snapshot-2009-12-02.tar.bz2

I would love to credit the author but im unable to find a way too! So if you read this thanks, and drop me a mail for credit :-)

 

After getting this to compile, I followed the instructions http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/

 

Well couldnt get the script to work so stripped it out to manually run ffmpeg and pipe it into live_httpstreamer – however turns out my m3u8 index wasnt being created and my files were not able to be encoded as I didnt have x264 installed correctly.

So took this https://sites.google.com/site/linuxencoding/install-script to get the x264 support installed.

Manually created my own m3u8 index just to test that it would actually work.

Ended up with it all working, although the audio is going out of sync, but i’ll look at that at some point..

My final command, assuming I have created the m3u8 file with just 2 hours worth of segments, is…

/home/user/Linux.Encoding.install/bin/ffmpeg -i http://127.0.0.1:7070 -f mpegts -acodec libmp3lame -ar 32000 -ab 48k -async 1 -s 600×480 -vcodec libx264 -b 1200k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 110k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 4:3 -r 30 -g 90 -async 2 – | /home/user/segmenter/live_segmenter 10 /var/www/html/video/ stream ipad

Any questions please feel free to post comments, I have pulled this together quickly so might well have missed something…

 

iPhone what is calaccessd?!

On the new iOS5 while debugging my poor battery life I came across a process on my iPhone called calaccessd which was hogging lots of CPU time and I felt it was responsible for my poor battery life – although no hard evidence yet.

Much googling turned up nothing however playing around I found that the daemon died immediately when I turned calendar off of notification centre and back to alerts rather than banner alert. I am hopeful that this will help the massive battery drain I have been experiencing and I will report back on this post.

Whilst it is nice to have my calendar stuff in the notification centre with the imminent release of intelliscreenX I can live without it for the moment if it gives me better battery life.

Cheers

iPhone iOS5 poor battery life

I recently updated my iPhone 4 to iOS5 but suffered from very poor battery life around 50% worse than previous on 4.3.3.

I put it down to spotlight re-indexing etc and ignored it for a few days, but after a week of still being rubbish I did some digging.

Although not conclusive, I noticed a process – calaccessd which was using about 40% of the cpu time all the time – obviously cpu time equates to battery drain.

After some more digging I discovered its related to the calendaring functions (yes slightly obviously given the name). Doing some debugging, I went into my calendars and unticked the iCloud calendar from my views – this immediately made the calaccessd drop cpu use to next to nothing.

So im hopeful this might have a significant effect on my battery life and put it somewhere back to where I expect it to be..

Any comments on this i’d be interested to hear.

Cheers!

 

update1 – checked my running processes a few hours later and irritatingly calaccessd was back using lots of cpu, so this time I have switched calendar off completely from my iCloud mail settings – this so far has stopped any resurgence of calaccessd using lots of cpu.

update2 – this has fixed the cpu runaways, but still experiencing very poor battery life, and very jerky and slow performance from the phone as a whole. Going for a full restore to see how it fairs after that..

update3 – did the full restore, again had fun and games with stupid itunes not recognizing my backup, but battery life is now back to normal, if not better! I had never noticed but each time i pick up the phone now it actually feels cold, which must be a good thing as if its warm its obviously using battery up!

I did choose to not install a couple of items I had previously installed, and have removed a couple of calendars also so not conclusive but its got to be one of the following :

poweralerter, sbsettings, iCloud syncing calendars etc, multiple exchange calendars from the same account (I had 4 calendars on my 1 exchange account, which I have trimmed down to 1 now)

So its either 1 of the above or just the restore, but either way im considering this case closed. Its also worth noting that its performing lovely too, the jerkyness has gone and its nice and nippy. All in all im happy :-)

update4 not happy again :-( as per the above update I thought it was sorted, however it seems not. See post what is calaccessd for a further update.

update5 – post on calaccessd gives full info on the bug on ios 5, however updating to ios 5.0.1 fixes this issue.