This shows you the differences between two versions of the page.
— |
ffmpeg-php_centos [2016/01/29 21:43] (current) kyxap created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag>bash php ffmpeg php-ffmpeg ffmpeg-php centos atrpms }} | ||
+ | ====== ffmpeg-php centos 6.x ====== | ||
+ | atrpms-repo-6-7.el6.x86_64 | ||
+ | %%https://www.mirrorservice.org/sites/dl.atrpms.net/el$releasever-$basearch/atrpms/stable%% | ||
+ | <file bash atrpms.repo> | ||
+ | [atrpms] | ||
+ | name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms | ||
+ | failovermethod=priority | ||
+ | #baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable | ||
+ | baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/el$releasever-$basearch/atrpms/stable | ||
+ | enabled=0 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms | ||
+ | |||
+ | [atrpms-debuginfo] | ||
+ | name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug | ||
+ | failovermethod=priority | ||
+ | baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/debug/el$releasever-$basearch/atrpms/stable | ||
+ | enabled=0 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms | ||
+ | |||
+ | [atrpms-source] | ||
+ | name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source | ||
+ | failovermethod=priority | ||
+ | baseurl=https://www.mirrorservice.org/sites/dl.atrpms.net/src/el$releasever-$basearch/atrpms/stable | ||
+ | enabled=0 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms | ||
+ | </file> | ||
+ | |||
+ | <code=bash> | ||
+ | #!/usr/bin/env bash | ||
+ | |||
+ | yum --enablerepo=atrpms ffmpeg-devel | ||
+ | |||
+ | SRC_DIR=/opt/src/ffmpeg-php | ||
+ | [[ -d $SRC_DIR ]] || mkdir -p $SRC_DIR | ||
+ | cd $SRC_DIR | ||
+ | git clone https://github.com/tony2001/ffmpeg-php.git | ||
+ | cd ffmpeg-git | ||
+ | grep -ir avcodec_alloc_frame "$SRC_DIR" -l | xargs -I{} sed 's/avcodec_alloc_frame/av_frame_alloc/' -i {} | ||
+ | ./configure | ||
+ | </code> |