Red5 1.0 RC2 kompatibilitet bakåt

Senaste red5 versioner ( Red5 revision > 4326 som 1.0 RC2 +) få ändringar gör red5 oförenligt med äldre program.
Changes are required for these applications to work.

Updated VideoWhisper rtmp applications can be downloaded for use or as sample to update other applications.

 

This is covered in Red5 google group:

With revision 4326 you will see problems when building or running your applications with Red5. Most of the problems you’ll run into

are with missing classes; in most cases you can just add thescopepackage to your imports or runOptimize importsin Eclipse. Below I have addressed a few items that you may run into.

 

 
1. IScope cannot be resolved to a type

Update red5 jar or source with latest

Correct location of IScope is org.red5.server.api.scope.IScope, previously it was org.red5.server.api.IScope

 
2. The import org.red5.server.api.IScope cannot be resolved

Update red5 jar or source with latest

Correct location of IScope is org.red5.server.api.scope.IScope, previously it was org.red5.server.api.IScope

 

 
3. WebScope cannot be found

Open your applications red5-web.xml and change theweb.scopebean class to

<bean id=web.scopeclass=org.red5.server.scope.WebScopeinit-method=”Registrera dig”>

instead of this

<bean id=web.scopeclass=org.red5.server.WebScopeinit-method=”Registrera dig”>

 

 
4. Method signature does not match xxxx.

For this one the fix is to change your expectation to receive an Iterator and instead make use of a Collection. The scope method

for retrieving scope names now returns a Set as shown here:

 

public Set<String> getScopeNames()

 

 
5. Parameter “typ” does not match String.

For scopes, their type is no longer identified by a string but instead uses an enum of ScopeType. The old method for getting basic

scope names was like so:

 

public Iterator<String> getBasicScopeNames(String type)

 

this is the new version:

 

public Set<String> getBasicScopeNames(ScopeType type)

 

Installera ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac

 

 

Detta är en handledning till möjliggöra video dela stöd på Centos servrar.

Detta bör installera ffmpeg, mplayer, mencoder, flvtool2, yamdi, x264, Theora, mp3lame, vorbis, OGG, faac, faad2, XviD, MediaInfo, MP4Box, neroaacenc . Dessa verktyg kommer att aktivera på din server:

  • video och ljud konvertering
  • thumbnail generation
  • FLV meta injektion (flvtool2, yamdi)
  • extra codecs (x264, Theora, mp3lame, vorbis, OGG, faac, faad2, XviD)

Detta är funktionellt och vi uppdaterar det varje gång vi konfigurera en ny server.
Installationen görs med hjälp av den “rot” konto.

 

Uppmärksamhet: Om du kopierar och klistrar in kommandona nedan, Förvissa sig “-” konverteras inte till “.”. Om dessa får omvandlas, Redigera “.” tillbaka till “-“. Vissa alternativ användning 2 * “-“.

Vissa förutsättningar:

 

rpm -ivh http://rpm.livna.org/livna-release.rpm

yum install libogg libogg-devel libvorbis libvorbis-devel
yum install x264 lame vorbis faac faad2 yamdi

Det snabba sättet att installera ffmpeg, mplayer, mencoder:

RPM - Uhv http://apt.SW.be/RedHat/el5/en/i386/RPMForge/RPMS/RPMForge-release-0.5.2-2.el5.RF.i386.rpm

eller Om du har 64-bitars server

RPM - Uhv http://apt.SW.be/RedHat/el5/en/x86_64/RPMForge/RPMS/RPMForge-release-0.5.2-2.el5.RF.x86_64.rpm

yum install gcc gcc-c++ automake autoconf libtool yasm git subversion
yum install libogg zlib-devel libtool


yum install libogg-devel libvorbis libvorbis-devel
yum -y install ffmpeg ffmpeg-devel mplayer mencoder ffmpeg-libpostproc

 

 

Redigera den /etc/LD.so.conf filen och lägga till följande rader:

/usr/local/lib
/usr/lib

GIT
(krävs för att få X264)

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

cd /usr/local/src
wget http://www.kernel.org/pub/Software/SCM/git/git-1.8.4.2.tar.gz
tjära - zxvf git-1.8.4.2.tar.gz
CD git-1.8.4.2
gör prefix = / usr/local alla
gör prefix = / usr/lokal/installera
git –version
Eller :
yum –disableexcludes = huvudsakliga Installera git
Och git manpages:
cd /usr/local/src
wget http://www.kernel.org/pub/Software/SCM/git/git-manpages-1.6.0.4.tar.gz
cd /usr/local/share/man
tjära - zxvf /usr/local/src/git-manpages-1.6.0.4.tar.gz

YASM

YASM är en modulär assembler, Det krävs av x264 paketet.

 

cd/usr/local/src /
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tjära zfvx yasm-1.2.0.tar.gz
CD yasm-1.2.0
./Konfigurera
göra && Se Installera
CD ..

X264

cd/usr/local/src /
git clone git://git.videolan.org/x264.git
cd /usr/local/src/x264
./Konfigurera – -Aktivera-delade – -prefix = / usr
göra && Se Installera
LS -s /usr/local/lib/libx264.so /usr/lib/libx264.so
Nödvändiga Codecs
cd/usr/local/src /
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xjvf essential-20071007.tar.bz2
mkdir /usr/local/lib/codecs/
mv essential-20071007/ /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

Eller alla codecs:

cd/usr/local/src /

wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar xjvf all-20110131.tar.bz2

mkdir /usr/local/lib/codecs/

MV all-20110131 /usr/local/lib/codecs/

LAME

cd/usr/local/src /

wget http://downloads.sourceforge.net/Project/lame/Lame/3.98.4/Lame-3.98.4.tar.gz?r=http://sourceforge.net/projects/lame/files/&TS = 1285175656&use_mirror = switch
tar zxvf lame-3.98.4.tar.gz
cd /usr/local/src/lame-3.98.4
./Konfigurera
göra && Se Installera

OGG

cd/usr/local/src /
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
tar zxvf libogg-1.1.3.tar.gz
cd /usr/local/src/libogg-1.1.3
./Konfigurera –Aktivera-delade && göra && Se Installera
PKG_CONFIG_PATH = / usr/local/lib/pkgconfig
Exportera PKG_CONFIG_PATH

VORBIS

cd/usr/local/src /
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
cd /usr/local/src/libvorbis-1.1.2
./Konfigurera && göra && Se Installera

Theora
cd/usr/local/src /
wget http://downloads.Xiph.org/releases/Theora/libtheora-1.1.1.tar.bz2
tar jxvf libtheora-1.1.1.tar.bz2
cd /usr/local/src/libtheora-1.1.1
./Konfigurera –prefix = / usr --enable-shared
göra && göra installls -s /usr/local/lib/libtheora.so /usr/lib/libtheora.so
FAAC
cd/usr/local/src /
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
tar zxvf faac-1.28.tar.gz
cd /usr/local/src/faac-1.28
./Konfigurera –prefix = / usr
göra && Se Installera

FAAD2

cd/usr/local/src /
wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
tar zxf faad2-2.6.1.tar.gz
CD faad2
autoreconf - vif
./Konfigurera – inaktivera-drm – inaktivera-mpeg4ip
göra && Se Installera

OpenJPEG
cd/usr/local/src /
wget http://openjpeg.googlecode.com/files/openjpeg_v1_3.tar.gz
tar zxvf openjpeg_v1_3.tar.gz
cd OpenJPEG_v1_3

make && make install
ldconfig
VPX

cd/usr/local/src /
wget http://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2
tar - xjf libvpx-v1.1.0.tar.bz2
CD libvpx-v1.1.0
./Konfigurera –prefix = / usr –Aktivera-delade –Inaktivera-static
göra && Se Installera
Speex
wget http://downloads.Xiph.org/releases/speex/speex-1.2Rc1.tar.gz
tjära - xvzf speex-1.2rc1.tar.gz
CD-speex-1.2rc1
./Konfigurera –prefix = / usr –Aktivera-delade –Inaktivera-static
göra && Se Installera
XviD
cd/usr/local/src /
wget http://downloads.XviD.org/downloads/xvidcore-1.3.2.tar.gz
tjära zxfv xvidcore-1.3.2.tar.gz
cd-/usr/local/src/xvidcore/build /generiska
./Konfigurera --enable-shared
göra && Se Installera
LS -s /usr/local/lib/libxvidcore.so.4.3 /usr/lib/libxvidcore.so.4.3

Innan du installerar ffmpeg, ställa några länkar för skript som ser på vissa platser för codecs:

LN -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
LN -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
LN -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
LN -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
LN -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
LN -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52

LN -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so.0.3.10
LN -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so.80
LN -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so
LN -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so

FFMPEG (Ladda ner senaste från SVN)

Exportera TMPDIR = $ hem/tmp
Exportera LD_LIBRARY_PATH = / usr/local/lib /
cd/usr/local/src /
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

cd /usr/local/src/ffmpeg
./Konfigurera –Aktivera-gpl –Aktivera-version3 –Aktivera-delade –Aktivera-nonfree –Aktivera-postproc –Aktivera-libfaac –Aktivera-libmp3lame –Aktivera-libspeex –Aktivera-libopencore-amrnb –Aktivera-libopencore-amrwb –Aktivera-libtheora –Aktivera-libvorbis –Aktivera-libvpx –Aktivera-libx264 –Aktivera-libxvid –Aktivera-x11grab –extra-cflags =”-Jag/usr/lokal/include” –extra-ldflags =”-L/usr/local/lib”

göra && Se Installera
LN -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg

FFMPEG konfigurera alternativ användning 2 x “-“. Äldre version kan laddas med git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

FEL: Xfixes hittades inte #
fixa: yum installera libX *

 

MPLAYER

 

cd/usr/local/src /
SVN checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src/mplayer
./Konfigurera && göra && Se Installera

LN -s /usr/local/bin/mencoder /usr/bin/mencoder
LN -s /usr/local/bin/mplayer /usr/bin/mplayer

FLVTOOL2
Först installera Ruby från WHM.

cd/usr/local/src /
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
tar zxvf flvtool2_1.0.5_rc6.tgz
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb installera

YAMDI

 

cd/usr/local/src /
wget http://downloads.sourceforge.net/Project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror = ufpr
tar zxf yamdi-1.4.tar.gz
CD yamdi-1.4
gcc yamdi.c -o yamdi-O2-vägg
MV yamdi/usr/bin /
yamdi -h

INSTALLATIONSRESULTAT

mencoder: /usr/local/bin/mencoder
mplayer: /usr/local/bin/mplayer
yamdi: /usr/bin/yamdi

Lägg till dessa genvägar till/usr/bin om du behöver dessa det som standard:
mencoder till /usr/local/bin/mencoder
mplayer till /usr/local/bin/mplayer

SuPHP fix

Med suphp “env -i” krävs när exekvera php-skript.

exec(“env -i usrbin/php ” . $CMD. ‘>/dev/null &’);

MediaInfo
http://mediainfo.sourceforge.net/en/Download/CentOS

wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.14-1.i386.CentOS_5.rpm
wget http://downloads.sourceforge.net/zenlib/libzen0-devel-0.4.14-1.i386. CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/libmediainfo0-0.7.32-1.i386.CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/libmediainfo0-devel-0.7.32-1.i386. CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/MediaInfo-0.7.32-1.i386. CentOS_5.rpm
RPM -vi libzen0-0.4.14-1.i386.CentOS_5.rpm
RPM -vi libzen0-devel-0.4.14-1.i386. CentOS_5.rpm
RPM -vi libmediainfo0-0.7.32-1.i386.CentOS_5.rpm
RPM -vi libmediainfo0-devel-0.7.32-1.i386. CentOS_5.rpm
RPM -vi mediainfo-0.7.32-1.i386. CentOS_5.rpm

LN -s /usr/bin/mediainfo /usr/local/bin/mediainfo

MP4Box

yum -y installera freetype-devel SDL-devel freeglut-devel

wget - c http://Mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz

tar - xzf gpac-full-0.4.5.tar.gz
CD gpac

./Konfigurera –prefix = / usr/local/cpffmpeg / –extra-cflags =-jag/usr/local/cpffmpeg/omfattar / –extra-ldflags =-L/usr/local/cpffmpeg/lib –Inaktivera-wx –Strip

göra && gör lib && gör appar && göra installera lib && Se Installera

CP bin/gcc/libgpac.so/usr/lib

LN -s /usr/local/cpffmpeg/bin/MP4Box /usr/local/bin/MP4Box
LN -s /usr/local/cpffmpeg/bin/MP4Box /usr/bin/MP4Box

Installera - m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod + x /usr/local/lib/libgpac.so
ldconfig

neroAacEnc

wget ftp://ftp6.Nero.com/tools/NeroDigitalAudio.zip
Packa upp NeroDigitalAudio.zip -d nero
CD nero/linux
sudo installera -D-m755 neroAacEnc usr

LN -s /usr/local/bin/neroAacEnc /usr/bin/neroAacEnc

uploadProgress

cd /usr/local/src
wget http://pecl.php.net/get/uploadProgress-1.0.3.1.tgz

 

t

ar - zxvf uploadprogress-1.0.3.1.tgz
CD uploadprogress-1.0.3.1
phpize
./Konfigurera && göra && Se Installera

Redigera /usr/lib/php.ini och Lägg till:

Extension = “uploadProgress.so”

 

 

FFMPEG2Theora

 

wget http://V2V.cc/~j/ffmpeg2theora/ffmpeg2theora-0.29.linux32.bin
chmod + x ffmpeg2theora-0.29.linux32.bin
Installera -m 755 ffmpeg2theora-0.29.linux32.bin /usr/local/bin/ffmpeg2theora

 

wget http://V2V.cc/~j/ffmpeg2theora/ffmpeg2theora-0.29.linux64.bin
chmod + x ffmpeg2theora-0.29.linux64.bin
Installera -m 755 ffmpeg2theora-0.29.linux64.bin /usr/local/bin/ffmpeg2theora

 

Se även:

http://www.VIMP.com/en/documentation-FAQ-article/Items/Howto-install-the-transcoding-tools-on-RedHat-CentOS-etc.html

ASM är ett modulärt assembler, Det krävs av x264 paketet.

codec:$ wget \
http://www.tortall.net/projekt/yasm/Pressmeddelanden/yasm-0.7.0.tar.gz
codec:$ tjära zfvx yasm-0.7.0.tar.gz
codec:$ CD yasm-0.7.0
codec:$ ./configure
codec:$ göra && göra installera
codec:$ CD ..