Giter Site home page Giter Site logo

ffmpegtoolkit's Introduction

FFMPEG Toolkit

The script is written in Bash language
it's can automatically install ffmpeg and related on you system Current version V2

Notice: Current Only Work CentOS 8 64bit, other system include centos 7 not testing

Requirements

Name Version
CentOS 8 or higher

Features

  • install ffmpeg ffprobe qt-faststart
  • install mp4box flvtool2 yamdi
  • install mediainfo neroaccenc
  • install imagemagick

Changelog

  • remove mplayer mencoder (v2)
  • add libass support (16/03/2018)
  • add NVIDIA CUDA (New versions wait add it)
  • add aom
  • add x265
  • add x264
  • add libvpx
  • update something soft and library to latest version

Usage

yum install -y git wget
cd /opt
git clone https://github.com/hostsoft/ffmpegtoolkit.git ffmpegtoolkit
cd ffmpegtoolkit
bash install.sh

Verify

  • verify and check path, included ImageMagick
which {ffmpeg,ffprobe,qt-faststart,mplayer,mencoder,flvtool2,MP4Box,yamdi,mediainfo,neroAacEnc}  
  • Return
[root@dev ~]# which {ffmpeg,ffprobe,qt-faststart,neroAacEnc,x264,x265}
/usr/local/bin/ffmpeg
/usr/local/bin/ffprobe
/usr/local/bin/qt-faststart
/usr/local/bin/neroAacEnc
/usr/local/bin/x264
/usr/local/bin/x265
      
[root@dev ~]# which {identify,convert,composite}
/usr/bin/identify
/usr/bin/convert
/usr/bin/composite

[root@dev ~]# ffmpeg
ffmpeg version N-102560-g4718d74c58 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (GCC)
  configuration: --prefix=/usr/local/ffmpegtoolkit --bindir=/usr/local/ffmpegtoolkit/bin --pkg-config-flags=--static --extra-libs=-lpthread --extra-libs=-lm --extra-cflags='-I/usr/local/include -I/usr/local/cuda/include -I/include' --extra-ldflags='-L/usr/local/lib -L/usr/local/cuda/lib64' --enable-cross-compile --disable-debug --enable-fontconfig --enable-gray --enable-gpl --enable-version3 --enable-cuvid --enable-libnpp --enable-nvenc --enable-nvdec --enable-nonfree --enable-runtime-cpudetect --enable-shared --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libsoxr --enable-libmp3lame --enable-libfdk-aac --enable-libdav1d --enable-libkvazaar --enable-vaapi --enable-libfreetype --enable-libfribidi --enable-libzimg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libaom --enable-libxvid --enable-libwebp --enable-postproc --enable-swscale --enable-avfilter --enable-libass --enable-libaribb24 --enable-libxml2
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  1.100 / 59.  1.100
  libavformat    59.  2.100 / 59.  2.100
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.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'


[root@dev ~]# ls /usr/local/ffmpegtoolkit/bin -l
total 14340
-rwxr-xr-x. 1 root root   38440 May 18 09:32 a52dec
-rwxr-xr-x. 1 root root   23048 May 18 09:33 amrnb-decoder
-rwxr-xr-x. 1 root root   22200 May 18 09:33 amrnb-decoder-etsi
-rwxr-xr-x. 1 root root   22648 May 18 09:33 amrnb-decoder-if2
-rwxr-xr-x. 1 root root   25896 May 18 09:33 amrnb-encoder
-rwxr-xr-x. 1 root root   25560 May 18 09:33 amrnb-encoder-etsi
-rwxr-xr-x. 1 root root   25560 May 18 09:33 amrnb-encoder-etsi-vad2
-rwxr-xr-x. 1 root root   25816 May 18 09:33 amrnb-encoder-if2
-rwxr-xr-x. 1 root root   25816 May 18 09:33 amrnb-encoder-if2-vad2
-rwxr-xr-x. 1 root root   25896 May 18 09:33 amrnb-encoder-vad2
-rwxr-xr-x. 1 root root   23312 May 18 09:33 amrwb-decoder
-rwxr-xr-x. 1 root root   22920 May 18 09:33 amrwb-decoder-if2
-rwxr-xr-x. 1 root root   25488 May 18 09:33 amrwb-encoder
-rwxr-xr-x. 1 root root   25440 May 18 09:33 amrwb-encoder-if2
-rwxr-xr-x. 1 root root  600696 May 18 09:57 aomdec
-rwxr-xr-x. 1 root root  628328 May 18 09:58 aomenc
-rwxr-xr-x. 1 root root  238840 May 18 09:47 cwebp
-rwxr-xr-x. 1 root root  131280 May 18 09:47 dwebp
-rwxr-xr-x. 1 root root   17912 May 18 09:32 extract_a52
-rwxr-xr-x. 1 root root  269680 May 18 09:36 faad
-rwxr-xr-x. 1 root root  259696 May 18 10:16 ffmpeg
-rwxr-xr-x. 1 root root  144056 May 18 10:16 ffprobe
-rwxr-xr-x. 1 root root 1023248 May 18 09:40 flac
-rwxr-xr-x. 1 root root  106320 May 18 09:47 gif2webp
-rwxr-xr-x. 1 root root  181792 May 18 09:47 img2webp
-rwxr-xr-x. 1 root root  130920 May 18 09:41 kvazaar
-rwxr-xr-x. 1 root root  514176 May 18 09:41 lame
-rwxr-xr-x. 1 root root    2411 May 18 09:47 libwmf-config
-rwxr-xr-x. 1 root root   13143 May 18 09:47 libwmf-fontmap
-rwxr-xr-x. 1 root root  677544 May 18 09:40 metaflac
-rwxr-xr-x. 1 root root  514624 May 18 09:41 mp3rtp
-rwxr-xr-x. 1 root root  369584 May 18 09:44 ogg123
-rwxr-xr-x. 1 root root   48768 May 18 09:44 oggdec
-rwxr-xr-x. 1 root root  279392 May 18 09:44 oggenc
-rwxr-xr-x. 1 root root  117888 May 18 09:44 ogginfo
-rwxr-xr-x. 1 root root   22440 May 18 09:41 oggz
-rwxr-xr-x. 1 root root  142288 May 18 09:41 oggz-chop
-rwxr-xr-x. 1 root root   68504 May 18 09:41 oggz-codecs
-rwxr-xr-x. 1 root root   84776 May 18 09:41 oggz-comment
-rwxr-xr-x. 1 root root    5671 May 18 09:41 oggz-diff
-rwxr-xr-x. 1 root root   89280 May 18 09:41 oggz-dump
-rwxr-xr-x. 1 root root  100056 May 18 09:41 oggz-info
-rwxr-xr-x. 1 root root   18848 May 18 09:41 oggz-known-codecs
-rwxr-xr-x. 1 root root   75616 May 18 09:41 oggz-merge
-rwxr-xr-x. 1 root root   76168 May 18 09:41 oggz-rip
-rwxr-xr-x. 1 root root   70544 May 18 09:41 oggz-scan
-rwxr-xr-x. 1 root root   75968 May 18 09:41 oggz-sort
-rwxr-xr-x. 1 root root   83128 May 18 09:41 oggz-validate
-rwxr-xr-x. 1 root root   69616 May 18 09:43 speexdec
-rwxr-xr-x. 1 root root   86512 May 18 09:43 speexenc
-rwxr-xr-x. 1 root root     797 May 18 09:30 srt-ffplay
-rwxr-xr-x. 1 root root 1125448 May 18 09:31 srt-file-transmit
-rwxr-xr-x. 1 root root 1122072 May 18 09:31 srt-live-transmit
-rwxr-xr-x. 1 root root 1151416 May 18 09:31 srt-tunnel
-rwxr-xr-x. 1 root root   54904 May 18 09:44 vcut
-rwxr-xr-x. 1 root root  118400 May 18 09:44 vorbiscomment
-rwxr-xr-x. 1 root root   77464 May 18 09:47 vwebp
-rwxr-xr-x. 1 root root  139680 May 18 09:47 webpinfo
-rwxr-xr-x. 1 root root  106200 May 18 09:47 webpmux
-rwxr-xr-x. 1 root root   47824 May 18 09:47 wmf2eps
-rwxr-xr-x. 1 root root   44896 May 18 09:47 wmf2fig
-rwxr-xr-x. 1 root root   44264 May 18 09:47 wmf2gd
-rwxr-xr-x. 1 root root   44696 May 18 09:47 wmf2svg
-rwxr-xr-x. 1 root root   47000 May 18 09:47 wmf2x
-rwxr-xr-x. 1 root root 2565704 May 18 10:01 x264
-rwxr-xr-x. 1 root root  164592 May 18 10:05 x265


ffmpegtoolkit's People

Contributors

ninetian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpegtoolkit's Issues

installation error

Nothing to do
sh: tools_freetype.sh: No such file or directory
sh: tools_ynasm.sh: No such file or directory
sh: vc_flvtool2.sh: No such file or directory
sh: vc_yamdi.sh: No such file or directory
sh: vc_mp4box.sh: No such file or directory
sh: ac_libwmf.sh: No such file or directory
sh: ac_liblame.sh: No such file or directory
sh: ac_libogg.sh: No such file or directory
sh: ac_liboggz.sh: No such file or directory
sh: ac_libamrnbwb.sh: No such file or directory
sh: ac_libopencoreamr.sh: No such file or directory
sh: ac_liba52.sh: No such file or directory
sh: ac_libflac.sh: No such file or directory
sh: ac_libfaad2.sh: No such file or directory
sh: ac_libfdkaac.sh: No such file or directory
sh: ac_libvoaacenc.sh: No such file or directory
sh: ac_libvoamrwbenc.sh: No such file or directory
sh: ac_libneroaacenc.sh: No such file or directory
sh: ac_libao.sh: No such file or directory
sh: ac_libspeex.sh: No such file or directory
sh: ac_libvorbistools.sh: No such file or directory
sh: ac_libvorbis.sh: No such file or directory
sh: ac_libfishsound.sh: No such file or directory
sh: ac_libopus.sh: No such file or directory
sh: vc_libtheora.sh: No such file or directory
sh: vc_xvid.sh: No such file or directory
sh: vc_x264.sh: No such file or directory
sh: vc_x265.sh: No such file or directory
sh: vc_mplayer_codecs.sh: No such file or directory
sh: vc_mplayer.sh: No such file or directory
sh: vc_ffmpeg.sh: No such file or directory
Create Links
All is Done
That's Path
/usr/bin/ffmpeg
/usr/bin/ffprobe
which: no qt-faststart in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
which: no mplayer in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
which: no mencoder in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/local/bin/flvtool2
which: no MP4Box in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
which: no yamdi in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/local/bin/mediainfo
which: no neroAacEnc in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/bin/x264
which: no x265 in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
ImageMagick Command Path
/usr/bin/identify
/usr/bin/convert

运行which {ffmpeg,ffprobe,qt-faststart,mplayer,mencoder,flvtool2,MP4Box,yamdi,mediainfo,neroAacEnc,x264,x265}出现这样的错误怎么解决?

/usr/bin/which: no mplayer in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no mencoder in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/bin/flvtool2
/usr/bin/which: no MP4Box in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no yamdi in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/bin/mediainfo
/usr/bin/which: no neroAacEnc in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no x264 in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no x265 in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

hi after restart server my script no longer recongnize ffmpeg ?

hi first off I wanted to say thank you for creating this...

I just have one issue, After installing it seems like either in cPanel In initially installed centos 7 then opted for cloudlinux 7 then added ffmpeg but it stays alive for a bit until I either restart server or apache?
Then my script doesn't recognize where ffmpeg is, even though I have added /user/local/bin/ffmpeg ffprobe etc etc... clipbucket.com is the script I am trying to use, so not 100% what the issue is -
but seems either its apache restart, server restart or selecting php muti changer to change settings in php ini like max upload size etc etc..

last time I ran ffmpeg it said cant locate libavdevice58 and some more

so now I am deleting the folder and everything in it to re-install from your script.

but how would I make it that it stays always active in my script ? ldconfig ?

any shed of light would be awesome thank you so much again

Spiro

kvazaar not found

Hi!

Thanks for the awesome solution, but there is a little issue when reaching the ffmpeg compilation phase, it fails because kvazaar is not found

ERROR: kvazaar >= 2.0.0 not found using pkg-config

Any idea how can I get it fixed please?

Thanks

mplayer failed install

hi i get all the way to mplayer installation then get mplayer failed to install

then that's it

centos7 with cpanel/whm latest version

any idea why and how to fix this

installation error

again its same problem.

which: no ffmpeg in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
which: no ffprobe in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
which: no qt-faststart in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/local/bin/mplayer
/usr/local/bin/mencoder
/usr/local/bin/flvtool2
/usr/local/bin/MP4Box
/usr/local/bin/yamdi
/usr/local/bin/mediainfo
/usr/local/bin/neroAacEnc
/usr/local/bin/x264
/usr/local/bin/x265
ImageMagick Command Path
/usr/bin/identify
/usr/bin/convert

Error X265

Ffmpeg cannot install ,.. This is the log

Installation of FFMPEG ....... started
Removing old source
Cloning into 'ffmpeg'...
remote: Counting objects: 531975, done.
remote: Compressing objects: 100% (252/252), done.
remote: Total 531975 (delta 243), reused 278 (delta 172), pack-reused 531551
Receiving objects: 100% (531975/531975), 194.76 MiB | 12.34 MiB/s, done.
Resolving deltas: 100% (414046/414046), done.
ERROR: x265 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:90: /libavutil/Makefile: No such file or directory
Makefile:90: /ffbuild/library.mak: No such file or directory
Makefile:92: /fftools/Makefile: No such file or directory
Makefile:93: /doc/Makefile: No such file or directory
Makefile:94: /doc/examples/Makefile: No such file or directory
Makefile:160: /tests/Makefile: No such file or directory
make: *** No rule to make target /tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:90: /libavutil/Makefile: No such file or directory Makefile:90: /ffbuild/library.mak: No such file or directory Makefile:92: /fftools/Makefile: No such file or directory Makefile:93: /doc/Makefile: No such file or directory Makefile:94: /doc/examples/Makefile: No such file or directory Makefile:160: /tests/Makefile: No such file or directory make: *** No rule to make target /tests/Makefile'. Stop.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:90: /libavutil/Makefile: No such file or directory
Makefile:90: /ffbuild/library.mak: No such file or directory
Makefile:92: /fftools/Makefile: No such file or directory
Makefile:93: /doc/Makefile: No such file or directory
Makefile:94: /doc/examples/Makefile: No such file or directory
Makefile:160: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
cp: cannot stat ‘tools/qt-faststart’: No such file or directory
ffmpeg.sh: line 50: /usr/bin/ffmpeg: No such file or directory
Installation of FFMPEG ....... Completed

FFMPEG installation Failed :(

i installed and got this error when try which

server2:~# which {ffmpeg,ffprobe,qt-faststart,mplayer,mencoder,flvtool2,MP4Box,yamdi,mediainfo,neroAacEnc}
/usr/local/bin/ffmpeg
/usr/local/bin/ffprobe
/usr/local/bin/qt-faststart
/usr/bin/which: no mplayer in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/bin/which: no mencoder in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
/usr/local/bin/flvtool2
/usr/local/bin/MP4Box
/usr/local/bin/yamdi
/usr/local/bin/mediainfo
/usr/local/bin/neroAacEnc

hi not working any more I see error resolving namedirectory.com or namedir.com

hi i installed again on another server and ffmpeg not work when trying to use. while installing ai saw an error that said trying to resolve host namedir.com or namedirectory.com one of these 2 I m not sure where the logs are to find you the correct error, but today i did thsi install and not working so something is wrong

can you test please

and correct issue thanks so much

wont install ffmpeg

im now having problem, can you fix it again

I need to install n3.2.10 or n3.2.11 or n3.2.12

im trying but its not finding ffpmeg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.