Notes for Installing FFmpeg on Linux OS

Try to install FFmpeg for Linux OS, which is useful for Multimedia Applications & Development.


tar xvfj ffmpeg-2.1.4.tar.bz2
cd ./ffmpeg-2.1.4
./configure --enable-shared --prefix=/usr/local/ffmpeg
% if you found such an error as follows:
%    it displays "yasm/nasm not found or too old..."
% then, you need to input a comand "sudo apt-get install yasm"
% of course, you could get more details from the follwing website
% namely, http://blog.csdn.net/ranxiedao/article/details/16359183
make
make install
% if you found such an error as follows:
%    it displays "mkdir: cannot create directory '/usr/local/ffmpeg': Permission denied"
% then, you may need to get an access to 'root'
% just do: 
% $ sudo passwd root
% Enter new UNIX password: 123456
% Retype new UNIX password: 123456
% passwd: password updated successfully
% try again --- 'make install'
% [ignore: sudo mkdir /usr/local/ffmpeg]
% ---/usr/local/ffmpeg
% how to add system path
% > vim /etc/profile
% > source /etc/profile
echo "/usr/local/ffmpeg/lib" > /etc/ld.so.conf.d/ffmpeg.conf
ldconfig -v
% >>> www.tuicool.com/articles/6fIBFr
% cd /home/[hzwu]
% vi ./.profile
% PATH="/usr/local/ffmpeg/bin:$PATH"


你可能感兴趣的:(linux,视频,ffmpeg,h.264)