2011년 12월 29일 목요일

how to install ffmpeg to share screen capturing and recording ?

Firstly, if you want to use sharing screen, you need to install Open JDK(for Linux) or JRE(for Windows) to run Java File like ***.jnlp.

2. If you want to use recording function on OpenMeetings, you should install ffmpeg manually.
This is manual how to install ffmpeg;


http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289


Install FFmpeg and x264 on Ubuntu Lucid Lynx 10.04 LTS

Install the Dependencies
1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following (you can usually paste into a terminal with shift+ctrl+v). Copy and paste the whole code box for each step.
Code:
sudo apt-get remove ffmpeg x264 libx264-dev yasm
2. Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):
Code:
sudo apt-get update
sudo apt-get install build-essential git-core checkinstall texi2html libfaac-dev \
    libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev \
    libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev

Install Yasm
3. Yasm is required for x264:
Code:
cd
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
make
sudo checkinstall --pkgname=yasm --pkgversion="1.2.0" --backup=no --deldoc=yes --default

Install x264
4. Get the current source files, compile, and install. (See using snapshots if you are having connection issues with the Git server.)
Code:
cd
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static
make
sudo checkinstall --pkgname=x264 --default --pkgversion="3:$(./version.sh | \
    awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes

Install LAME
5. This is used to encode mp3 audio.
Code:
sudo apt-get remove libmp3lame-dev
sudo apt-get install nasm
cd
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
tar xzvf lame-3.99.tar.gz
cd lame-3.99
./configure --enable-nasm --disable-shared
make
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.99" --backup=no --default \
    --deldoc=yes

Install libvpx
6. This is used to encode VP8 video.
Code:
cd
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \
    --default --deldoc=yes

Install FFmpeg
7. Get the most current source files, compile, and install. Run "./configure --help" to see what other features you can enable/disable. Nightly FFmpeg snapshots are also available.
Code:
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx \
    --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(./version.sh)" --backup=no \
    --deldoc=yes --default
hash x264 ffmpeg ffplay ffprobe
Installation is now complete. You can stop here if all you wanted to do is compile and install FFmpeg. The rest of the guide has additional information on updating and removing the packages you just compiled.

Install qt-faststart (optional)
This is a useful tool included with FFmpeg that rearranges a file with H.264 video, "such that the moov atom is in front of the data, thus facilitating network streaming". Basically, it allows web movies to start playing before they are completely downloaded. Usage: qt-faststart input.foo output.foo.
Code:
cd ~/ffmpeg
make tools/qt-faststart
sudo checkinstall --pkgname=qt-faststart --pkgversion="$(./version.sh)" --backup=no \
    --deldoc=yes --default install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart

Updating FFmpeg and x264
Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. To update FFmpeg and x264 you will need to remove the packages, make distclean, update the source, recompile, and install. To update x264:
Code:
sudo apt-get remove ffmpeg x264 libx264-dev libvpx
cd ~/x264
make distclean
git pull
Now compile x264 as shown earlier in the guide starting with the x264 ./configure line. You can update libvpx if you installed that too:
Code:
cd ~/libvpx
make clean
git pull
Now continue with the installation starting with the libvpx ./configure line. Now update FFmpeg:
Code:
cd ~/ffmpeg
make distclean
git pull
Finish the installation starting with the FFmpeg ./configure line.


Reverting Changes Made by This Guide
To remove FFmpeg/x264 and other packages added for this guide:
Code:
sudo apt-get remove x264 ffmpeg qt-faststart build-essential git-core checkinstall \
    nasm yasm texi2html libfaac-dev lame-ffmpeg libsdl1.2-dev libtheora-dev libvorbis-dev \
    libx11-dev libxfixes-dev zlib1g-dev
Lastly, delete the ffmpegx264lame, and libvpx directories in your home folder.

댓글 없음:

댓글 쓰기