Our VPS Cloud Community
|
#1
|
|||
|
|||
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library. x264 encodes high-quality video superior to other popular encoders.
Installation Guide : download the following debian package and install it : Code:
# wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb Code:
# dpkg -i debian-multimedia-keyring_2008.10.16_all.deb Code:
# nano /etc/apt/sources.list Code:
# deb http://www.debian-multimedia.org lenny main # deb-src http://www.debian-multimedia.org lenny main Code:
# apt-get update Code:
# apt-get install checkinstall Code:
# apt-get build-dep ffmpeg Code:
# apt-get install subversion Code:
# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg Code:
# cd ffmpeg/ # ./configure --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-libfaad --enable-gpl --enable-x11grab --enable-nonfree # make it will ask you some questions which are quite easy , answer to them and .deb package will be built. Code:
# checkinstall Code:
# dpkg -i ffmpeg_20090715-1_amd64.deb Code:
#cd # git clone git://git.videolan.org/x264.git # cd x264 # ./configure # make # checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --default The easiest method for high quality video encoding is by using the libx264 presets that are included with FFmpeg. Two-Pass encode using the fastfirstpass and hq presets: Code:
ffmpeg -y -i input.avi -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -bt 512k -threads 0 -f mp4 -an /dev/null && ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -b 512k -bt 512k -threads 0 -f mp4 output.mp4 One-pass CRF (Constant Rate Factor) using the hq preset: Code:
ffmpeg -i input.avi -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -crf 22 -threads 0 output.mp4 Two-pass iPod 640x480 using the fastfirstpass, normal, and ipod640 presets: Code:
ffmpeg -y -i input.avi -pass 1 -vcodec libx264 -vpre fastfirstpass -vpre ipod640 -b 512k -bt 512k -s 640x480 -threads 0 -f ipod -an /dev/null && ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre normal -vpre ipod640 -b 512k -bt 512k -s 640x480 -threads 0 -f ipod output.mp4 Additional Resources FFmpeg x264 encoding guide x264 - a free h264/avc encoder x264 changelog FFmpeg homepage FFmpeg revision log x264 encoding guide FFmpeg x264 mapping and options guide Source: HOWTO: Install and use the latest FFmpeg and x264 - Ubuntu Forums & Admins eHow How to install ffmpeg on Debian Lenny from SVN
__________________
a node a day keeps the doctor away... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
|
#2
|
|||
|
|||
|
#3
|
|||
|
|||
yes that must be a typo above
|
|
#4
|
|||
|
|||
Quote:
__________________
a node a day keeps the doctor away... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
|
#5
|
|||
|
|||
Apparently some changes were made so this guide no longer works (unless I'm just doing something wrong). It looks like some changes were made in the libtheora version so you end up with "Error: libtheora not found." They have changed the guide at HOWTO: Install and use the latest FFmpeg and x264 - Ubuntu Forums and it got me past that error but now I'm stuck at compiling FFMPEG:
Code:
/root/ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg/libavcodec/libx264.c:284: undefined reference to `x264_encoder_open_79' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 rm ffmpeg.o |
|
#6
|
|||
|
|||
|
#7
|
|||
|
|||
Seems like I finally got it working following these instructions: http://techsiteblog.com/ffmpeg-and-x264/
Even though they seem to be based on the Ubuntu instructions I failed to make work earlier...
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How-to: PHP/APC/FPM Install | njmattes | Tutorials and How-To's | 17 | 03-29-2010 12:57 PM |
| How-to: Webmin install on debian 5.0 | Hans | Tutorials and How-To's | 22 | 02-21-2010 06:36 AM |
| How to Install drupal? | rennsix | Tutorials and How-To's | 65 | 12-14-2009 07:21 PM |
| High Availability Configuration Using Debian Lenny | jbimmerle | Technical discussions | 0 | 09-05-2009 03:26 AM |
| New Image: Debian 5.0 | nullmind | Announcements | 4 | 08-01-2009 11:35 AM |










