-
2009.10.25Red5 debian/ubuntu package problems
In case anyone has problems installing Red5 0.9.0 RC1 from the debian package, specifically if the package installs OK, but it doesn't run when /etc/init.d/red5 is executed, and you get this error when you run /usr/lib/red5/red5.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/server/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.red5.server.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.red5.server.Bootstrap. Program will exit.Just copy the boot.jar from the generic .zip distribution into /usr/lib/red5/ and all will be well.
5 Comments: -
2009.07.28Video Vest
Just testing that I've managed to reinstall ffmpeg on this server correctly. I hope so after all the rigmarol. Oh, better check flvtool2 as well. hmm.
0 Comments: -
2009.07.21Installing ffmpeg-php on OS X against Apache2/PHP5 from MacPorts
This is more for my own benefit that anyone elses, so when I inevitably have to recompile in future I don't have to do all this rediscovery again (Yes, I have done this before and forgotten how I did it the first time). However, I thought i'd hack it into some sort of tutorial (expression used lightly).
Asusming you have Apache 2/PHP5 and FFMPEG installed from MacPorts *, and you are reasonably comfortable with the terminal. This is pretty much 'by the book' for the instructions from ffmpeg, save for a few little glitches with the configure script.
Grab the latest ffmpeg-php tarball from here and, open terminal, cd to the download directory and decompress it:
tar xvjf ffmpeg-php-0.6.0.tbz2
change to the resultant directory
cd ffmpeg-php-0.6.0/
run your _port_ version of phpize
/opt/local/bin/phpize
now, the first gotcha, you need to run a custome configure line to make sure that the make finds the correct ffmpeg install, and the correct include dirs. Do this:
CFLAGS=-I/opt/local/include ./configure --with-ffmpeg=/opt/local --enable-gd --enable-skip-gd-check
That 'CFLAGS=-I/opt/local/include' part sets and environment variable called CFLAGS to have the value -I/opt/local/include which is a C compiler flag to tell it to search for include files in '/opt/local/include'. We set that, then run the ./configure script which takes that information, and the parameters '--with-ffmpeg=/opt/local --enable-gd --enable-skip-gd-check' to build an appropriate makefile.
Without passing the --with-ffmpeg=/opt/local the configure script will fail with: configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option. If you have got ffmpeg installed correctly (and please make sure you do!) then this means it can't be found, so you need to tell it where it is. Of course you may have installed ffmpeg differently so you can change this appropriately.
The --enable-gd flags force ffmpeg-php to enable gd extensions (so you can export an image in GD format for processing with PHP's GD libraries) and the --enable-skip-gd-check makes it take your word for it that GD is installed, which it was in my case, but I had to force the issue. Sometimes us mere mortals know best.
Without passing the CFLAGS=-I/opt/local/include the make script will generate a message along the lines of error: libavutil/avutil.h: No such file or directory letting you know that the compiler can't fine an include file, and so you need to give it a base include path. Again if your ffmpeg install is not from macports you'll need to change this appropriately.
Now do a simple:
make
Which will compile our module. Normally now we'd type 'make install' and the module would be installed, but no such luck here. For some reason the configure script insists on installing in /usr/lib/php/extensions/... wherease the rest of our extensions are in /opt/local/lib/php/extensions/... however, to work out _where_ we want to install to we still need to run 'make install' (but not as root - we want the install to fail)
make install
With a bit of luck this will return an error (call that luck?) something along the lines of
cp: /usr/lib/php/extensions/no-debug-non-zts-20060613/#INST@69638#: Permission denied
the bit you are looking for is the equivalent to 'no-debug-non-zts-20060613' as you need this to install in the correct path, which shouldbe '/opt/local/lib/php/extensions/no-debug-non-zts-20060613/' (though you may need to change that last bit, obviously) We now enter:
sudo cp modules/ffmpeg.so /opt/local/lib/php/extensions/no-debug-non-zts-20060613/
To copy the ffmpeg.so php module to our appropriate include directory. You'll need to enter your password to do the copy. Not quite there yet... now you need to add the extension to your php.ini file. By default this is /opt/local/etc/php5/php.ini but if you want to check:
/opt/local/bin/php -r "phpinfo();" | grep "Configuration File"
Will tell you for sure. Open up the file in your favourite text editor (textmate or vim for me) and search for the heading " Dynamic Extensions" in the config file. if it's not there don't worry, I'm just trying to be neat. You neeed to enter, under the rest of your extensions:
extension="ffmpeg.so"
then save the file. Now, to check it has installed into php:
/opt/local/bin/php -r "phpinfo();" | grep "ffmpeg"
should give you something along the lines of :
ffmpeg
ffmpeg-php version => 0.6.0-svn
ffmpeg-php built on => Jul 21 2009 09:30:03
ffmpeg-php gd supportĀ => disabled
ffmpeg libavcodec version => Lavc52.20.0
ffmpeg libavformat version => Lavf52.31.0
ffmpeg swscaler version => SwS1.7.1
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0If so you can now restart apache and start playing with it.
apachectl restart
Hope that helps someone else...
Please note that I'm by no means an expert on this and so can't help you get it working if there are all sorts of other issues, that said leave a comment below listing your problem and I'll see what I can do.
* quick run through, YMMV , check out appropriate variants should you need to:
sudo port install apache2
sudo port install php5
sudo port install ffmpeg +sharedAlso, look here for information on install ffmpeg from ports, and here for information on apache2/php5/mysql from ports, which both looks reasonably informative, but I've not bothered to use instead just bludgeoning on and doing it myself previously.
1 Comment: Thanks for sharing man!
In the end mac ports did the trick for me with ffmpeg and mencoder. After trying manual compile and copying from the ffmpegx package like some ppl suggested.
I am using XAMPP on Leopard but the above works the same. Only difference is the php.ini and modules path. For me that was inside the Applications/xampp folder. Now my PHP info shows the ffmpeg extension. It even has ffmpeg-php gd support => enabled. I'll write some code to verify that it works for real :) -
2008.08.26Ayurvedic Me
I've been slowly working on the design and identity for Angie's Ayurveda Practice over the last few months - amongst everything else - and have just put up the start of her website.
Simplicity is order of the day, keeping everything clean and minimal, maybe too minimal at the moment, but there is more to come in the days, weeks, months and years that follow.
0 Comments: -
2008.08.25AlisonLeeper.com
A simple portfolio website for my Mum's printmaking practise, showing some of her works in preparation for the Perthshire Open Studios.
0 Comments: -
2008.08.25GerryLeeper.com
A simple portfolio website for my Dad's jewellery and silversmithing practise, showing some of his works in preparation for the Perthshire Open Studios.
0 Comments: -
2008.07.11PopVoxPopVoxPopVox
Ross has updated one of his kiosks to record some musical confessions from the atendeed of SHOWstudio's Fashion DJS project. This is my contribution, many more here
0 Comments: -
2008.05.19Memory Maps of San Jose
I'm going to be heading out to San Jose ('do you know the way?') next week with Julie Myers to work on some workshops with her, as part of Zero 1 festival.
More details on the workshops here
0 Comments: -
2007.11.15Almanac
Films: http://www.somewhere.org.uk/almanacfilms
Project: http://www.somewhere.org.uk/almanacProject Summary
The Almanac project involved collecting time lapse photography from 5 sites, over the course of a year. These images are used to generate 1 minute video sequence that is shown each day on the main screen at Cinema City in Norwich. The video sequence is specific to the current date, and the site displayed is picked at random from the selection available.
This project has been going on for 4.5 years, and is now finally installed and running in the cinema. The project was initially commissioned solely for presentation for the cinema, but we have added a web presence for the videos at http://www.somewhere.org.uk/almanacfilms where each days film is posted after it has been generated for the cinema.
You can find out more information on the background to the project on the main Almanac site on somewhere's website.
My Role
I've been involved since the early stages of the project in advising on how to manage the collection, recording and storage of images, creating test versions and finally building the end database and software to generate the video clips which are displayed in the cinema, and to dynamically create and upload versions to the project website.
0 Comments: -
-
2007.07.30PostEverything V2
...resist...temptation...to...use...2.0.
I've just put up a new version ofPostEverything, after 6 years. It's been a long haul, and really this should have been there many years ago, but hey ho, I've been busy elsehwere. Anyway, it's here now, and I hope a lot better than the previous site. And a lot more adaptable, which is the main thing. What's there is fulfilling the basic requirements of the site - physical and downloadable music sales - needed for relaunch, but there is much more to come.
And no, it's not turned into a social networking site.
2 Comments:
Nice. Very nice. But where's the 'digg this' button?
Ha. 'cos a niche music site is ever going to show up on digg or del.icio.us or any social bookmarking sites?Also 'cos of this:
http://www.37signals.com/svn/posts/93-its-the-content-not-the-icons
Most people who use those tools have bookmarklets or whatever set up (I have for del.icio.us, and I never use it), so why clutter our pages trying to encourage it.
We have cleverer tricks than that up our sleeves ;-)







just in case the file is already there, try to run chmod +x boot.jar
By Anonymous, on Thursday, December 3, 2009 on 15:44 GMT
I have the same problem and copied the boot.jar and even set the +x but still I get the same errormessage. Maybe the svn file and the zip file are different distributions and the boot.jar is not compatible? Are there other solutions?
By in2account, on Friday, December 4, 2009 on 11:17 GMT
They will be different version now, yes, as RC2 is out. However if it is that specific error make sure you have your classpath's set correctly
By Anonymous, on Saturday, December 5, 2009 on 19:45 GMT
Thanks for this hint! But i have some problem before it. When i tried to build red5 on debian (both RC1 and RC2) i'we failed with this error:
BUILD FAILED
/root/red5_09rc1/build.xml:220: The following error occurred while executing this line:
/root/red5_09rc1/build.xml:241: Error running javac compiler
What is wrong with it?
Thank You!
By Andrew, on Monday, December 28, 2009 on 15:34 GMT
Hi Andrew,
This isn't about building, it's about running the pre-compiled version. If you are looking for build help I'd suggest trying out the google group for Red5 where there are many people with more (like any) experience of building Red5 - I don't have any, I' always use the prebuilt .jar files.
http://groups.google.com/group/red5interest?lnk=srg
By Dorian Moore, on Tuesday, January 5, 2010 on 10:38 GMT