테스트 사이트 - 개발 중인 베타 버전입니다

[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 (mockbuild@kbuilder.bsys.centos.org) (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 설치

[code]
[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
.
.
.
[/code]

2. PowerTools, epel repository 활성화

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

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

[code]
[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
[/code]


3. RPM Fusion free Repository 설치

RPM Fusion

https://rpmfusion.org/

[code]
[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
.
.
.
[/code]


4. FFmpeg 설치

[code]
[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
 .
 .
 .
[/code]


5. FFmpeg 설치확인

[code]
[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
.
.
.
[/code]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 3개

제목에 오타 났어요 ㅎㅎ
SentOS8 -> CentOs8

게시글 목록

번호 제목
24318
24317
24315
24309
24294
24293
24277
24262
24260
24253
24251
24236
24233
24228
24226
24221
24214
24203
24201
24199
24196
24195
24194
24192
24191
24187
24185
24183
24172
24168