Category Archives: Scripts – Programming
perl script to post-process files created by red5
Converts movie_name.flv to movie_name.mp4 with AAC audio, H.264 video. Extracts a thumbnail jpg, too #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} =’/usr/local/lib/’; $movie_name=shift @ARGV; $old_movie_name = $movie_name.”.flv”; $new_movie_name = $movie_name.”.mp4″; $toe_name = $movie_name.”.jpg”; my $range = 100000; my $random_number = int(rand($range)); $temp_movie_name=”/tmp/$random_number.mp4″; $make_mpeg=`/usr/local/bin/ffmpeg -y -i … Continue reading
I created a Red5 Application
Working with Red5 is like pulling teeth. Trying to see if I can spawn an ffmpeg instance after uploading a live video capture. First step was to see if I could edit/copy any existing application, us to get the recipe. … Continue reading
serial interface fun
Perl module Device::SerialPort is our friend. As is Clipboard, IO::All, Spiffy Trying to talk to a Sartorius precision balance. Speaks over Serial/USB cable. Dang, there was supposed to be more here to serve as documentation. Now, months later, I have … Continue reading
Gnokii OS X, Part II
A long circuitous path, but in the end — sucess! Started off with darwinports, but that only got us 0.6.8 (current as of this writing was 0.6.27). Then tried Fink. That got us up to 0.6.13 dating Tried that version … Continue reading
MacMini Landscape Server, Part II
When last we left this project, most things were working except freetype/truetype text used in dynamic graphs and maps Continue reading
Migrate Landscape Change Project to MacMini server
On paper, this seems easy. Just move 70 GB of images and a dozen database tables to a brand new mac, and we’re done. Well, not quite… Step 1: prepare the mac out of the box This was mostly straight-forward; … Continue reading
Script Help
Script problems and solutions discussed with Sean Dempsey.
LDAP and Mediawiki
Finished LDAP-mediawiki configuration, taught it how to authorize based on LDAP ou, added documentation o same to wiki project log
Script Help
Script consulting for Rob@CTL (perl and php issues)
Script help
client asked Hey all… I need to run a shell script on Zoo via PHP, and was trying to use the PHP exec() function. The script will manipulate some images using ImageMagick. Everything works fine when calling the script from … Continue reading