우분투 서버
설치 분류

우분투 14.04에 ffmpeg 2.2.1 설치하기

컨텐츠 정보

  • 24,320 조회
  • 5 댓글
  • 0 추천
  • 목록

본문

sudo apt-get install yasm frei0r-plugins-dev gnutls-bin libgnutls-dev libass-dev libgsm1-dev libmp3lame-dev libopencv-dev libopenjpeg-dev libopus-dev libpulse-dev libschroedinger-dev libsoxr-dev libspeex-dev libtheora-dev libv4l-dev libvorbis-dev libvpx-dev libx264-dev libxvidcore-dev libopenal-dev libcdio-paranoia-dev


필요한 패키지들을 설치합니다.



wget http://www.ffmpeg.org/releases/ffmpeg-2.2.1.tar.bz2


ffmpeg 2.2.1 소스파일을 받습니다.



tar -xf ffmpeg-2.2.1.tar.bz2


압축파일을 풉니다.



cd ffmpeg-2.2.1


폴더 이동합니다.


./configure --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib/x86_64-linux-gnu/ --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib/x86_64-linux-gnu/ --enable-runtime-cpudetect


위와 같이 옵션을 넣습니다.



sudo make


sudo make install


설치가 됩니다.




이제 ffmpeg 를 넣어보면



ffmpeg



ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers

  built on Apr 30 2014 16:14:15 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib/x86_64-linux-gnu/ --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib/x86_64-linux-gnu/ --enable-runtime-cpudetect

  libavutil      52. 66.100 / 52. 66.100

  libavcodec     55. 52.102 / 55. 52.102

  libavformat    55. 33.100 / 55. 33.100

  libavdevice    55. 10.100 / 55. 10.100

  libavfilter     4.  2.100 /  4.  2.100

  libavresample   1.  2.  0 /  1.  2.  0

  libswscale      2.  5.102 /  2.  5.102

  libswresample   0. 18.100 /  0. 18.100

  libpostproc    52.  3.100 / 52.  3.100

Hyper fast Audio and Video encoder

usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


Use -h to get full help or, even better, run 'man ffmpeg'


위와 같이 2.2.1버전이 잘 설치된 것을 볼 수 있습니다.




유튜브에 설치 과정을 보고 명령어만 따왔습니다.


관련자료

댓글 5 / 1 페이지
전체 34 / 1 페이지
RSS

최근글


새댓글


알림 0