KCP 창업 지원, 수수료 국내최저 2.9% 제공 이벤트!

[CentOS8] gif파일을 mp4 변환 플러그인 사용을 위한 ffmpeg설치 > 그누보드5 팁자료실

그누보드5
영카트5
스터디
Q & A
제작의뢰
컨텐츠몰
부가서비스
소모임
커뮤니티
부가서비스
KCP 이벤트!

그누보드5 팁자료실

[CentOS8] gif파일을 mp4 변환 플러그인 사용을 위한 ffmpeg설치 정보

[CentOS8] gif파일을 mp4 변환 플러그인 사용을 위한 ffmpeg설치

본문

thisgun님이 올려주신 gif 파일을 mp4로 변환플러그인 사용시 ffmpeg설치방법입니다.
thisgun님 플러그인 : https://sir.kr/g5_plugin/7476

 

우분투의 경우 간단한 명령어로 설치가 가능한것 같은데

centos8의 경우 ffmpeg설치시 에러가 발생하더군요.

ffmpeg설치시 에러가 발생할 경우아래 내용을 참고해보세요.

 

 

OS환경

CentOS Linux release 8.2.2004 (Core) 

Linux version 4.18.0-193.14.2.el8_2.x86_64 (*** 개인정보보호를 위한 이메일주소 노출방지 ***) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Sun Jul 26 03:54:29 UTC 2020

 

1. epel repository 설치


[root@localhost ~]# dnf -y install epel-release
Last metadata expiration check: 0:02:32 ago on Mon Feb 17 14:31:42 2020.
Dependencies resolved.
================================================================================================
 Package                   Architecture        Version                Repository           Size
================================================================================================
Installing:
 epel-release              noarch              8-5.el8                extras               22 k
.
.
.

2. PowerTools, epel repository 활성화

PowerTools를 사용하지 않으면 종속성에서 오류가 발생합니다.

https://serverfault.com/questions/997896/how-to-enable-powertools-repository-in-centos-8


[root@localhost ~]# dnf -y install ffmpeg
Last metadata expiration check: 0:00:27 ago on Mon Feb 17 14:40:18 2020.
Error:
 Problem: conflicting requests
  - nothing provides libSDL2-2.0.so.0()(64bit) needed by ffmpeg-4.2.2-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

[root@localhost ~]# dnf config-manager --set-enabled PowerTools
[root@localhost ~]# dnf config-manager --set-enabled epel-playground


3. RPM Fusion free Repository 설치

RPM Fusion

https://rpmfusion.org/


[root@localhost ~]# rpm -ivh https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
Retrieving https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
warning: /var/tmp/rpm-tmp.PvaFWU: Header V3 RSA/SHA1 Signature, key ID 158b3811: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:rpmfusion-free-release-8-0.1     ################################# [100%]

[root@localhost ~]# cat /etc/yum.repos.d/rpmfusion-free-updates.repo
[rpmfusion-free-updates]
name=RPM Fusion for EL 8 - Free - Updates
#baseurl=http://download1.rpmfusion.org/free/el/updates/8/$basearch<a>
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-8&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-8
[rpmfusion-free-updates-debuginfo]
name=RPM Fusion for EL 8 - Free - Updates Debug
#baseurl=http://download1.rpmfusion.org/free/el/updates/8/$basearch/debug<a>
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-debug-8&arch=$basearch
enabled=0
type=rpm-md
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-8
.
.
.


4. FFmpeg 설치


[root@localhost ~]# dnf install ffmpeg
RPM Fusion for EL 8 - Free - Updates                            5.6 kB/s | 229 kB     00:40
Dependencies resolved.
================================================================================================
 Package                   Arch   Version                          Repository              Size
================================================================================================
Installing:
 ffmpeg                    x86_64 4.2.2-1.el8                      rpmfusion-free-updates 1.4 M
Installing dependencies:
 alsa-lib                  x86_64 1.1.9-4.el8                      AppStream              429 k
 flac-libs                 x86_64 1.3.2-9.el8                      AppStream              217 k
 gsm                       x86_64 1.0.17-5.el8                     AppStream               37 k
 lame-libs                 x86_64 3.100-6.el8                      AppStream              361 k
 .
 .
 .


5. FFmpeg 설치확인


[root@localhost ~]# ffmpeg
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 31.100 / 56. 31.100
.
.
.
추천7

댓글 전체

전체 1,729 |RSS
그누보드5 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 (06212) 서울시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 대표메일:admin@sir.kr
사업자등록번호:217-81-36347 대표:홍석명 통신판매업신고번호:2014-서울강남-02098호 개인정보보호책임자:이총

© SIRSOFT