Mostly work related stuff which I would've entered into my "Log book". Instead of hosting it on an intranet site, outsourcing the hosting to blogger!
Saturday, December 31, 2011
CSV list for phplist mailing list
Thursday, December 29, 2011
More CDNs
Akamai offered minimum commit of Rs. 1.5 lakhs per month.
$2000 for 2000 GB, around $1 per GB till 10 TB.
Internap offered a free unlimited streaming account till Dec 30th, but pricing was minimum commit $1000 with traffic charged at $2 per GB. Also, using their test account, found:
- the sample flash player provided by internap was crashing in Safari
- the sample flash player also did not allow the hiding of controls - controls were always visible onscreen
- we were unsuccessful in getting jwplayer to work with the internap stream, even after the suggested setting of rtmp.subscribe flashvar to true.
Wednesday, December 28, 2011
converting stereo wav files to mono
In Sound Forge: To mute only one channel, move the cursor to the top quarter (or bottom quarter) of the screen. The cursor will get a small subscript of L or R (for left or right channel). Select the area you want to mute - only the L (or R) side will get selected. Now if you choose Process -> Mute, only that channel will get muted.
After going through this process of muting out unnecessary parts in L and R channels separately, you can bring the whole wav back to mono using Process -> Channel Convertor. You should use the built-in preset
Stereo to Mono use both channels 50% (no faders)
in the Channel convertor drop-down list for this.
Tuesday, December 13, 2011
shutting down a Windows server remotely
type "Are you sure you want to shut down the server? Press any key to continue"
Pause
shutdown -m \\servername -t 10 -c "Shutting down server in 10 seconds"
To start up the server, I mentioned Wake up On Lan to them, but their BIOS had another option for timed startup, so that is what they are using - starts up at a particular time.
Monday, December 12, 2011
counting number of files in folder
ls -lR | grep ^- | wc -l
Saturday, December 10, 2011
capturing DV on old PowerMac G5
iMovie for MacOS X 10.4 Tiger - iMovie HD (obtained with a torrent) seemed to be the last working version - iMovie 8 did not run on this machine.
iMovie was capturing the video as .dv files, and the files were being hidden inside the project "file" which was actually a "Package" - so in Finder you right-click and "Show Package Contents" to see the Media folder inside. To convert .dv to .mov without re-encoding, used MPEG Streamclip.
Edit: Finally this solution was abandoned - the .mov produced in this manner still needed rendering on FCP at the Studio. Then tried capturing in an old version of FCP, that worked without rendering.
Thursday, December 01, 2011
stream not working with jplayer
Wednesday, November 30, 2011
changing the default player on radiosai.org
Edit: Most problems have a brute-force solution! Resized the images by a factor of half, halved all the pixel values in the css, et voila - a half-sized player! That was too small, so multiplied again by 1.4 to get the size we want.
Wednesday, November 23, 2011
setting up live video streaming - resource usage
When the Wowza streaming server was serving at around 600 Mbps, that is around a 1000 clients, top reported the following usage of memory and cpu:
Since this is a quad-core machine, probably top reports 100% as maxing out a single core. So, we have plenty of cpu to spare, and could easily max-out the 1 Gbps port. (And that's what we did .... running video at 800 kbps per instance.)
disk full on saiwaves
Later, P removed around 70 GB (!) of old database backups.
Sunday, November 20, 2011
mysql database error
#1 - Can\'t create/write to file \'#sql_abc_0.MYD\' (Errcode: 17)
Reported it to nettigritty support, they restarted the service, everything became fine.
Saturday, November 19, 2011
setting up live video streaming - aspect ratio and timezone
P wanted the timezone on the server to be set to IST, for ease of recognizing recorded files etc. Did it with dpkg-reconfigure tzdata
which is the Ubuntu way of doing it at present.
Then: the flv video which we saved on the server seemed to have an NTSC flag set somewhere. Probably originating from the Adobe FMLE (Flash Media Live Encoder). So, the video was being seen with a skewed aspect ratio even though it was square pixels 400x224 25 fps. Finally solved it at the client side using stretching:"exactfit" as a parameter for the jwplayer.
setting up live video streaming - recording on the server
There are different ways of recording.
1. using live-record as stream type in Wowza. This does not give us control over when recording starts - recording starts as soon as the source gets connected.
2. using the LiveStreamRecord addon module, we can choose when to start recording and when to stop.
So, we used the latter, set up a password protected page on our website for the record enable form which is included with the module. We set it up not to overwrite (so it would create a new file like myStream.sdp_2.flv etc increasing the number to _3, _4 etc.) Also set it to start on keyframe and record data. (Metadata, I suppose.)
First we tried setting up http pseudo-streaming with mp4 on Apache. After setting up the module for streaming video the seeking was not working properly for parts of the video which had not yet been downloaded - jwplayer was playing the beginning of the video after the seek.
Then the audio and video were coming out of sync on the recorded mp4 file. It looks like many people have faced this issue.
So we tried recording as flv files instead. With that, the audio-video sync problems were solved. But since the module for flv seek over http uses Lighttpd - setting it up was a bit of a pain - we fell back to providing the video over rtmp using Wowza's vod application. That, of course, worked perfectly.
Friday, November 18, 2011
Argument list too long
http://www.linuxjournal.com/
setting up live video streaming - download links
Setting up a download link - I tried to do this by adding the .htaccess file like in dl.radiosai.org with the lines
ForceType application/octet-stream
Header set Content-Disposition attachment
But this did not work, even when I modified the config file again, as in
https://help.ubuntu.com/
adding the line
AllowOverride AllSo, did it by editing the config file:
http://www.jtricks.com/howto/
AllowOverride All
ForceType application/octet-stream
Header set Content-Disposition attachment
Wednesday, November 16, 2011
setting up live video streaming - iPad and iPhone
After setting up Wowza server as per my earlier post, tried to get the live stream to work on iOS devices - iPad, iPhone, iPod touch etc.
To make the stream work with iphone, the encoder settings have to be tweaked. Format has to be H.264 and AAC audio. Otherwise the device gives the message, "This video cannot be played."
AAC settings should be low complexity - I found 22050 Hz, mono, 32 Kbps to work OK.
H.264 settings have to be Baseline 3.0
(set by clicking on the spanner icon next to Format: H.264 in Adobe Flash Media Live Encoder)
When this is done, the following url works for iOS devices, when entered into Safari on iPhone, for eg.:
http://server1.radiosai.org:1935/live/myStream.sdp/playlist.m3u8
(entering this URL on a normal computer does not work).
In order to make this work with the jwplayer, which we can embed in a page which will work for desktop browsers as well as iOS devices, the player had to be updated to the latest version - 5.8. Then the sample code for embedding worked fine.
local recording along with live streaming
There are several possible solutions, which we can try out.
1. Use a DV hub, record DV on another computer, encode offline after the event, then upload. This will result in best quality.
2. Record on DV tape on the DV VCR which you are using as source, capture and encode after the event. The tape has to start before the stream starts, and the tape has to last for the entire event, because stopping the tape causes the stream to restart.
3. Recording on the same machine which is doing the broadcasting - seems to require some funky workaround like
http://forums.adobe.com/
but may be possible. To open multiple instances of FMLE you have to use this technique:
http://osxdaily.com/2011/05/
4. Using Quicktime broadcaster instead of FMLE is also probably possible, wowza server supports QT broadcaster also as a source. But broadcaster also seems to have the same limitations - setting up the entire chain for it separately seems to be a waste of effort.
(Finally the solution chosen was 1.)
Tuesday, November 15, 2011
setting up live video streaming - C++ RTMP server
First attempt was to replicate my earlier test, and set up the C++ RTMP server. That involved re-compiling from source, since the binary did not seem to run on the Ubuntu machine.
1. Checking cpu type:
cat /proc/cpuinfo shows it is
Intel(R) Xeon(R) CPU X3330 @ 2.66GHz
2. so trying crtmpserver-690-Ubuntu-10.10-i386.tar.gz
3. Procedure as in my earlier test
4. Gave error "no such file or directory" when tried to run the executable.
ia32-libs recommeded by this launchpad post.
5. apt-get install ia32-libs and then tried. Then the executable runs, but seems to have some error, since the console doesn't come up. Tried with the 64 bit binary also, still no go. So, tried the sources from http://www.rtmpd.com/downloads/
6. For that, while following the instructions to install at the rtmpd site.... had to install lots of stuff.
set CMAKE_CXX_COMPILER to a valid compiler path or name -> apt-get install gcc
and
apt-get install g++
OPENSSL_INCLUDE_PATH-NOTFOUND -> as per this forum post,
apt-cache search libssl
grep SSL
Then I installed apt-get install libssl-dev
Finally worked. Binary is in /root/crtmpserver-690/builders/cmake/crtmpserver folder.
But....
C++ RTMP server does not have the nifty features of Wowza, does not automatically make the http pseudo-streaming chunks for streaming to iPad etc. So, decided to go for Wowza server after all.
Monday, November 14, 2011
google analytics code
Actually a related topic, checking if the analytics code is working:
http://www.rachaelarnold.com/
this method uses Firebug, with the Net panel enabled. We should be able to see requests starting with _utm.gif? - and the params tab gives the info being sent to Google.
streaming video and quality
Ted talk quality, for eg.
www.ted.com/talks/ken_
- wireshark clocked it at 0.415 Mbps - let's say 400 kbps.
(Ted uses variable bit rate streaming - bitrate changes with scene as well as with bandwidth availability)
Youtube video at 360p -
http://www.youtube.com/watch?
21.6 MB for 8 minutes 45 sec
21.6 MB/525 seconds
= 0.0411 MB/s
= 0.329 Mbps, close to 300 kbps.
But these are all offline encoded videos. For live encoder, quality will be somewhat lower for the same bitrates.
Saturday, November 12, 2011
TFD internal error
rsObject.Open strQuery,objConn,adOpenKeyset,adLockOptimistic
The last two, adOpenKeyset,adLockOptimistic were the ones added to the line.
Friday, November 11, 2011
gimp batch process gui
Allows operations on the entire image, like blur etc. Quite fast, even for large images. Is perhaps faster than doing it in Irfanview - though I did not try a comparison. But not really a replacement for Actions on Photoshop. For that, scripting is required, I suppose. Perl, anyone?
Thursday, November 10, 2011
iPhone 3G jailbreak and unlock
Version : 4.2.1 (8C148)
Modem Firmware: 05.15.04
Carrier : AT&T 9.0
Model : MB702LL
Jailbreakme.com does not work with 3G - only with 3GS and above, I think. I gave him a link to pwnagetool, but he did it with redsn0w instead. He noted the following:
1. Could not download - redsn0w 0.9.6b6 managed with redsn0w_win_0.9.6rc16
2. http://www.idownloadblog.com/
from apple's site.
3. redsn0w_win_0.9.6rc16 kept crashing. This forum post helped with the following suggestion, which made it work.
After couple of minutes Redsnow just shuts down (disappears)4. Could not add source http://repo.ultrasn0w.com to cydia
what cause this problem ?
first install only cydia. don't tick the update baseband
after jailbreaking then you can fetch baseband tick only update baseband.
followed the alternate repository given at http://nabtron.com/ultrasn0w-
Tuesday, November 08, 2011
finding the first played date and displaying it
finally used this technique,
Monday, November 07, 2011
Made search results sortable
Changed default to show newest files instead of oldest results.
Made search results sortable using javascript, by using the sorttable javascript library from
http://www.kryogenix.org/code/
Tuesday, November 01, 2011
email not reaching Google apps mailbox
Checking the GA help center as suggested in that page, this page seems to indicate that signing out of the account instead of remaining signed in all the time solves the issue. We'll try doing that.
This could also be an issue with freenet.de - because the other complaints listed on Google's forums are also from freenet.de customers. So if you get a bounce message like that, you could try sending the email from another email id instead of the freenet.de id.
Saturday, October 22, 2011
exporting mobile contacts and upgrading .NET
Friday, October 21, 2011
Blender QA with Ron Proctor
Ron Proctor is a respected planetarian, and Blender enthusiast, releasing Blender-produced free planetarium shows like Sizing up Space, Expanded View, etc. I asked him some questions over email, and he graciously replied promptly.
Hello Ron,
I'm just starting out with Blender for show production, and tried out your ""Starball"" and fisheye rig at http://webersci.org/blendheads/?p=13
Just wondering - in Blender 2.4, there is an option in Camera settings for Panorama. Is this there somewhere in 2.5 also? Can this be used instead of your fisheye rig?
Thanks for your time.
The panorama setting was moved to the camera properties.
Unfortunately, it does not produce correct fisheye images. A native fisheye camera would be great.
Presently, the only ways to get fisheye out of Blender are:
- Fisheye Camera Rig (Reflective Hemisphere)
- 5 (or 6) camera frustum + external stitcher (such as Paul Bourke's cube2dome).
- Third party renderer (I have no experience with these).
You are welcome to use our fisheye camera rig under the terms of the provided license.
Good luck in your work.
Thanks for the quick reply, Ron.
Are the 3D models of objects like Chandra / Hubble / Voyager spacecraft etc available somewhere? I suppose we could roll our own Planets using spheres and textures.....
You might start at the NASA 3D Repository. Celestia Motherlode also has some resources, but make sure the source data are ok for use.
I've tried to put background images to the rendered scenes using the Blender World -> Texture , choosing Global Co-ordinates for the World Texture.
(details and pictures are at https://hnsws.blogspot.com/2011/10/blurry-background-for-video-on-fulldome.html )
Do you have any other preferred way to add background images to a scene rendered with your fisheye camera rig?
Also - the Blender Game Engine seems to have a Dome mode, with a Fisheye dome camera,
http://wiki.blender.org/index.
Since I'm using exactly the same technique from Paul Bourke
( http://hnsws.blogspot.com/
was wondering if there is some way in which I can get these warped dome images directly rendered to files from the Game Engine and not just interactively displayed using the game engine?
Thanks in advance.
I prefer to use a big UV sphere
Tuesday, October 18, 2011
adding a background image for fulldome images in Blender
This was the background image, and after using it, the result was like this:
Well, not too bad. Perhaps if I fiddled around with the background image, making it bigger, it might improve things? Anyway, the method of using the Alpha channel as given in the tutorial here doesn't work too well because of the fisheye camera rig. When rendered with the fisheye camera, the alpha channel includes the whole circle - since that is what is being reflected on the fisheye rig's mirror. So, the scene when rendered will not include the background image inside the circle at all - only in the corners, which is not useful at all.
One of the comments in the above tutorial mentioned simply using a paper sky in World settings, and then enable Horizon in Influence settings. That works well with normal cameras, but had a problem with the reflection from the fisheye rig - with a ring around the horizon of the fulldome - it looked like this:
Anyway, going through the Blendercookie/CGcookie tutorial was a good learning experience, especially since it took me to his previous tutorial, and I learnt the reason for the scale - dimension problem I noted earlier. Apparently if you change the dimensions of an object in Object mode, the scale goes out of whack. To correct it, he does Ctrl A, and chooses Scale. Then - et voila - the scale goes back to 1.0 and the dimensions are preserved.
Monday, October 17, 2011
blurry background for video on fulldome using Blender
HD video file on fulldome with fisheye camera in Blender
https://blender.stackexchange.com/questions/174750/how-to-make-fisheye-lens-for-camera
Rotation - X = 125, Y = 0, Z = 0
Location - X = 0, Y = 0, Z = 1.3
This gave an effect similar to the video part in the TSPOG show - probably I need to add some blurring on the blank black area outside the video window like in that show. Rendering took around 1 minute per frame with two threads, and 2 minutes per frame with a single thread. Sample fulldome frame was like below.
Saturday, October 15, 2011
ebook using instapaper
rudimentary planet in Blender, also video texture
Things to remember:
- UV mapping means wrapping the texture around the object - U and V are used to describe the 2D mesh since X and Y are already taken!
- For the planet, the mapping used was Co-ordinates = Object, Object = Sphere, Projection = Sphere. (Not Co-ordinates = UV!)
- Smooth shading: as given in Ron Proctor's tip here, using smooth shading makes the sphere look much better. Accessed from Object tools - T after selecting the object.
- The plane could be of the same dimensions as the movie, so for a 4:3 movie, a plane of dimensions x=4 and y=3 is good.
- In such a case, the texture mapping to use is Co-ordinates = Generated, Projection = Flat, and Extension = Clip.
- For ease of placement of camera(s) and the plane, the N key which brings up the properties allows numerical entry of values.
- As mentioned before, Emit=1 and Specular=0 are good for video textures.
- In some tutorials like this one, the rotation animation is done by entering a value like 3600 degrees for 10 turns. But when I tried entering a value of 360 for rotating the camera a full circle, it did nothing. When I tried 340 or 370, the camera moved only by 20 or 10 degrees respectively. So I settled for 180 degrees in my test.
Friday, October 14, 2011
NASA models and more in Blender
- Textures need to be in UV mapping mode for them to be displayed properly in this model - Mapping -> Co-ordinates -> UV - and I had to manually map the texture bitmaps to the relevant materials in the model.
- Blender's Textured Viewport shading only works if object has a UV mapped texture (in general).
- Imported model was extremely large as seen in default Blender view. Scaling it down was easier than moving the camera and lights out.
- Ctrl Alt Numpad 0 puts Camera to current view.
Wednesday, October 12, 2011
getting started with Blender
Today, I dove a bit deeper, to take the first baby steps towards making our own fulldome show. Printed out the cheat sheet from qubodup and went through the first few getting started tutorials again to refresh my memory.
- Right-click to select an object.
- Middle-click and drag to move around in the view-port, with Shift and Ctrl as modifiers for pan and zoom respectively.
- Shift+A to add an object
- N to numerically adjust location and size
- S R and G for Scale, Rotate and Grab, with X Y Z for constrained motion along those axes.
- TAB to toggle Edit mode and Object mode
- Shift+F10 Image Editor (where rendered output is seen)
- Shift+F5 3D viewport
- Numpad 7 1 3 for Top Front Right views, 4 6 8 2 for rotate, 5 for toggling perspective and orthogonal views.
- Numpad . for Zoom to object.
Problems faced:
- Extrude tool seems to Extrude only along the natural face of the object - some sort of constraint somewhere.
- When I change dimensions of an object using N and then render using F12, it is going back to its original dimensions!
Next steps:
Would probably want to make a set of stills or videos move around the dome as in the IBEX show.
Tuesday, October 11, 2011
using Digital Universe to create fulldome content
But maybe instead I can use the video they give for download.
Monday, October 10, 2011
Zalip internet radio and TeluguStream
Sunday, October 02, 2011
iphone 3GS update restore saga
Googling various terms, the first thing I tried was to use TinyUmbrella to kick the phone out of recovery mode, as given here. That did not work. TinyUmbrella was not able to see any info on the phone, not even ECID.
Gathered info including ECID using USBview as given here.
This particular forum post seemed promising - Did I ruin my 3GS . As suggested there, tried the untethered jailbreak with sn0wbreeze, with the tutorial given at this page. Making a bulleted list of the many trials I did - the last two are the successful ones:
- I tried first with the later version of sn0wbreeze, using OS version 4.3.2 instead of 4.2.1. After creating the custom IPSW with sn0wbreeze, iTunes did not allow the update - I thought it was because TinyUmbrella's TSS server was not running. Making a custom IPSW was taking around 5 minutes on my phone.
- At this point, TinyUmbrella was not able to save any blobs - it was not seeing any blobs on the phone. Running iTunes with the TSS server also did not work, it ended with error 1602. The update process in iTunes was taking around 5 minutes.
- The solution for that was to run sn0wbreeze till the end - I thought the phone was already in DFU mode, black screen - but it needed to put the phone in a pwned DFU mode.
- Running sn0wbreeze till the end where it uses iReb to avoid the 16-- errors, the update went till the very end, but then error 37 in iTunes.
- In the above trials, I had chosen New Boot Rom within sn0wbreeze. Perhaps that was the culprit. So made another IPSW with sn0wbreeze, chosing Old Boot Rom.
- This time it went through, iTunes declared it successful, but phone did not boot. It remained in DFU mode even after reboot.
- TinyUmbrella was able to save some blobs now, and it showed 4.1 and 5.0 beta blobs. So tried the same update, with the TSS server running this time. Same result - iTunes success, but phone doesn't boot.
- Tried New Boot Rom IPSW with TSS server - again error 37.
- Tried New Boot Rom IPSW without TSS server - error 3194 this time. "This device is not eligible for the requested build" - so probably I should go with Old Boot Rom and not New.
- Back to making an Old Bootrom IPSW, on a different usb port, without TSS. Stuck at preparing iphone for restore.
- Tried a different tack - since 4.1 blobs are seen in TinyUmbrella, why not try with that one. For this, downloaded sn0wbreeze 2.1. This time, it worked like a charm - running iTunes with TinyUmbrella's TSS server on. The phone booted up. But it is not unlocked yet.
- To unlock 4.1, this page points to this guide - just need to add repo666.ultrasn0w.com to the sources in Cydia (it was already there) and install ultrasn0w using Cydia Search. Did so, rebooted, and the phone is unlocked, working fine.
Wednesday, September 28, 2011
enabling NTP on our servers
sudo apt-get install ntp
I guessed that the firewall might cause problems, and sure enough, checking the status with
ntpq -p
found that the peer was not being contacted, the reach was 0. Added a firewall rule for NTP for the DMZ, and all was well.
krishna bounce processing again
Monday, September 26, 2011
creating DiscourseStream schedule
Steps:
1. Added new BC Broadcast Center Name: DiscourseStream Bcid: 9
2. Modified the changeover time from 5:00AM to 7:00AM to avoid import issues for the schedule database
3. Modified Playlist import script for Discourse Stream and commented out Asiastar
4. Added SIGNATURE_TUNE to the beginning of playlist files that were already created.
5. Modified the cron for changeover in the remote server from 5:00AM to 7:00AM
6. Added two hrs of DD to today's playlist so that the changeover takes place tomorrow without a break and reuploaded.
7. Modified the csv script to generate csv for Discourse stream
8. Skipped the instrumentals being listed in the csv for DD
9. Modified the schedule database for discourse stream to have the changeover @ 1:30 GMT (7:00 am IST)
10. Added a single program item to start the 27th csv import (NOTE: It can be done only through IE)
11. Uploaded the csv for 27th Sep 2011
12. Modified the DD making script to add signature tune in the beginning of the playlist.
Monday, September 19, 2011
fixing problems with Listen Now page and IE
in the body, put
in the head of the document.
Saturday, September 17, 2011
more about the iphone and farewell to it as well
Coming back to this iphone, installed the following from iTunes on the PC:
Battery Magic - uninstalled due to a startup screen which could not be removed due to non-working touchscreen portion
Planets
Compass Free - uninstalled as the iPhone 1st gen doesn't have GPS
Remote Desktop Lite
GPS Tracker - uninstalled as the iPhone 1st gen doesn't have GPS
Battery LED!
Teamviewer
APPZILLA
EasyWriter
iTalk Recorder - uninstalled as phone call recording needs paid service.
Got Veency in Cydia installed through iSpirit which was mentioned at this forum page. Then onwards it was fairly straightforward to do anything on the phone, since the VNC client could click even in the places where the touchscreen wasn't working. Mobile Terminal was one of the nice apps loaded through Cydia.
Saturday, September 10, 2011
working around a broken iphone
Trying to get ebooks into it. SSH not working - probably not installed, though Cydia is present. Trying to install SSH gave an error message in Cydia about being unable to download files - probably an old repository. But cannot click on the OK button for the message. That was in the bad portion, and landscape mode is not available for that screen.
Tried to use the Kindle app - it needs registration, and in portrait mode, which does not work with the keypad. I did not try copy-pasting the username and pw - that might have worked. But anyway, went on to try iBooks. Unfortunately iBooks needs iOS 3.2 and higher, and this is a 1st gen iPhone with iOS 3.1.3. Then tried Stanza, that one works.
Transferring files to Stanza - all the methods seem to need Stanza to pop up a confirmation dialog asking if I want to download - and the Download confirmation button comes up in the non-working part of the screen! Finally got books to transfer using iPhone Explorer.
Tuesday, September 06, 2011
DD-WRT and Dlink DIR615 revE4
Quite simple procedure as given at the dd-wrt wiki. Ours was E4 and not E3. Read somewhere on the forums that changing the last number from 0 to 1 in the E3 firmware with a hex editor makes it work with E4. Tried that, it works. Did the Hex editing of the firmware using Free Hex editor Neo on Windows. The firmware labelled as E4 in the dd-wrt site has 5 as the last digit - that apparently makes it not compatible with our E4 version.
But plugging it in our network, it didn't work. At first I thought it might be a MAC address caching issue, and tried cloning the old router's MAC address. That also did not work. Then did some tests and found that it was just not routing - logging into the router, ping works in both directions LAN and WAN. But the LAN can't ping the WAN and vice-versa.
Tried posting on the dd-wrt forums, here and here, but finally did not get any solution. Assuming that some hardware limitation prevents it from working as a router without NAT. And the google answers page recommended routers seem to be scarce. The Linksys WRT54G is superseded by the WRT54GH which doesn't support routing mode, for example.
Sunday, August 28, 2011
access to audio files from macs at Studio
FileZilla -> Preferences -> Connection -> SFTP
Saturday, August 27, 2011
burning cds on the mac
Friday, August 26, 2011
router failure and fail-over
The router which failed yesterday - DLINK DFL-210 - cost around Rs. 22,000
Both these models are no longer available. DFL-260 is a possible replacement, PB checking Indian market cost found it to be around Rs. 50,000.
Wednesday, August 24, 2011
live video streaming test
First downloaded Wowza server with a free developer license and tested after installing it with the documentation given at wowza forums.
Then tested by copying the same html file mentioned above to another system.
Then tried stopping Wowza and starting the C++ RTMP server. It asked for a username and pw for the encoder to connect, found that it was located in users.lua
Entered suitable values and the encoder connected without problems. Next, tried on the other system with the same test file supplied with Wowza, and it worked.
Next step was an flv player embedded in the website.
Downloaded JWPlayer's latest version, first tried the quick-start method given in the downloaded pdf. That did not work. Reason was wrong path. Even giving full path did not work, since our server was configured not to serve .mp4 - it gave access denied. Anyway, the player was coming up embedded on the page.
Next, followed the docs at
http://www.longtailvideo.com/
With streamer address given as a private ip address 192.168.2.2, it did not work. Configured the router to use a virtual server at the Macbook, port 1935 for rtmp, and it worked with the public ip - used the domain name, actually.
Later, tried out the private ip address also - that also worked. The player on the remote server does not need to contact the streamer directly. Only the client needs to contact the streamer. The first time the private ip address did not work was because of other issues with embedding the player - the player itself was not appearing.
Monday, August 22, 2011
automatic email scripts
On saiwaves :
playlist_import.sh
lame*sh
On colinux :
test_playlist_sgh_africa.sh
test_playlist_sgh_america.sh
test_playlist_sgh_asia.sh
test_playlist_sgh_discourse.sh
test_playlist_sgh_bhajan.sh
Thursday, August 18, 2011
problem with ftp upload using php ftp_connect
This page says that with some firewalls you should connect to the firewall and then connect to the host etc. Tried that, doesn't work.
I suspect that the problem is with the way in which php handles ftp commands. When a put command is sent on our system, cyberoam responds saying delayed due to scanning, and then uploads.
STOR /httpdocs/program/csv/AmeriStream20110818.csv
150-Scanning file for viruses
150-There'll be a delay while we scan for viruses
150 Data connection already open; Transfer starting.
221-Scanning for virus
221 Transfer complete.
I think php's ftp library does not handle the ftp 150 commands, hence it fails.
I have currently commented out the ftp upload part in the mkcsv php script.
ERROR: duplicate key value
This causes some files not to be entered into database, so when importing playlist, it complains that some fids are NULL
Wednesday, August 17, 2011
setting up vnc
Tuesday, August 16, 2011
procedure for telugu broadcasts
2. Copy relevant m3u file to ~/playlist directory.
3. cd to playlist directory and run the sed script modifying the commmandline to relevant date, which converts the extended m3u to simple m3u and appends the audio directory path.
4. run ~/scr*/lame_encoder2422.sh
5. Open playlist from step 2 in kwrite and change / to \, save as m3u
6. Open the m3u playlist in Winamp after lame finishes, to check that all files are present - total duration should be 24 hours and a bit, and it should not show a + symbol after the total duration.
If playlist generation is desired, additional steps:
7. Run scr*/main_ftp.sh which takes files from ~/ftp folder
8. upload files from ~/ftp folder to dl.radiosai.org
9. Run scr*/playlist_import.sh
10. Update missing descriptions from localhost/SGHDescription as with sgh database, if necessary copy-pasting from sgh database
11. Make csv and upload from localhost/mkcsv
bug in our playlist import script
to 2011-08-16 06:30:00+05:30 during the import process. So, verify if the correct timestamp should be 00:00:00+05:30 and then edit the entry manually from 06:30:00+05:30 to 00:00:00+05:30 .
The point to be noted is that the problematic entry may not be adjacent to the actual 06:30 signature tune file, it could be at midnight also.
Saturday, August 06, 2011
updating MBV download filenames
1. In sgh database on saiwaves run the following query:
select 'UPDATE file_id SET download_filename=' || '"' ||download_filename|| '"' || ' WHERE filename="' || filename || '"' from file_id where filename ilike 'MBV%' \t \o update_mandirbhajans.sql ;
First row of the result set looks like:
UPDATE file_id SET download_filename="MBV_04_
2. Save the result set to a file update_mandirbhajans.sql
3. Replace double quotes with single quotes in update_mandirbhajans.sql
4. In sghtelugu database on saiwaves execute the saved update_mandirbhajans.sql (through phpPgAdmin interface)
5. upload the updated csv files / run the update sql statements on the schedule database through the cpanel
Friday, August 05, 2011
stellarium night sky on our mirrordome
View Settings Window -> Sky tab -> Absolute scale = 2 makes everything bigger and hence brighter, and Relative scale = 0.2 or so makes the stars uniform in size instead of brighter stars being as big as oranges! This makes the night sky much better to look at, more like a "starball" effect.
viewing panoramas on fulldome - simple technique
When I tried it with a pan of the SSSIHMS, a hi-res version of this picture, found that it looks squished on the dome - need original to be more squarish? Also, building is too far above the horizon. Need more sky and less ground. So, probably the solution would be to take a pan with the interesting parts near the bottom edge of the pic, and clone the sky to make it square instead of distorting it by simply resizing.
Friday, July 29, 2011
download users as csv in Google Apps
This post seemed to have the solution:
http://www.google.com/support/
So, sign in, and then use the following url for the csv file:
https://www.google.com/a/
where you must change the date 20110727 for the relevant date. We also have to remember that google servers use US time, so today is still 28 July for them and not 29 July.
Wednesday, July 27, 2011
Telugu stream playlist - Extended m3u to simple m3u
cat 26th_JULY.m3u | sed /^#/d | tr '\\' '\n' | tr '\r' '\n' | sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
sed /^#/d Remove the lines starting with #
tr '\\' '\n' The windows path backslash (\) is changed to line feed
tr '\r' '\n' The Carriage return is changed to line feed
sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
Added tr '\r' '\n' on 26th July 2011.
The line used to end with both \r\n which made ices fail to start the playlist.
\r - Carriage Return - 0D in Hex
\n - Line feed - 0A in Hex
Saturday, July 16, 2011
problem playing file from finder for live broadcast
But in general, this is a bit risky - a better way to do announcement insertion would be to drag and drop the relevant files into the timeline on Reaper. This can be done even when Reaper is recording. The track into which the file is dropped should not be armed for recording - only then will the file play back if Reaper is recording on another track.
Friday, July 15, 2011
more ports on server
Did some troubleshooting by starting the server from the command line.
Found that the reason it gives for the other ports not to work is:
error opening client socket! FATAL ERROR! Some other process is using this port!
So it is not the service provider's fault.
When I test with telnet, I find (after stopping shoutcast)
telnet stream.radiosai.org 8021
Trying 66.249.27.181...
Connected to stream.radiosai.org.
Escape character is '^]'.
200 1500
GET / HTTP/1.1
fxÚ
ÍËÎË/ÏSHÎÏÍMÌKÑ5
Yesterday when I tested, ports 8023, 24 and 25 were also probably occupied by the other process. Today, those ports were open, and shoutcast could use those ports.
Using
Netstat -a -b -n -o > c:\netstatnames.txt
and searching for 8021 in that file,
found that the process is
G6FTPSERVER.EXE
So, requested that the Gene ftp be tweaked so that it uses only ports above 8100 for listening, like 8121 etc. That solved the issue.