Wednesday 17 December 2008

Cannot restore segment prot after reloc: Permiss

Occured when attempting to load the libphp5.so module into Apache using RedHat linux.

Fixed by running:

system-config-securitylevel

and setting SELinux to Permissive

Tuesday 9 December 2008

Creating flash video (flv) files with ffmpeg

First, install Lame., to access the mp3 codec.
Second, install ffmpeg. Ensuring that you run the configure script with the --enable-libmp3lame option.
(I used ./configure --disable-vhook --enable-x11grab --enable-gpl --disable-bzlib --enable-libx264 --enable-libmp3lame).

Thirdly, use ffmpeg thus:
ffmpeg -i myinputfile.mpeg -ar 22050 -ab 56000 -b 200000 -acodec libmp3lame -ac 1 myoutputfile.flv

Friday 5 December 2008

Flash files won't work in any old directory?

Flash player 9 (and presumably all subsequent releases) have security features that limit where data and files can be accessed from.
Check the following directory (under windows):

c:\Documents and Settings\\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust

Within will be some .cfg files, each specifying permitted directories for playing Flash (SWF) files.
Feel free to add your own,
i.e. file: mydir.cfg
contents: C:\temp

Will allow you to play swf files in your c:\temp directory