Linux installation FFmpeg

Source: Internet
Author: User

Implement upload video capture video first frame as video cover

1, installation FFmpeg

Download link for ffmpeg https://ffmpeg.org/download.html

Unpacking the installation package

TAR-JXVF ffmpeg-4.0.tar.bz2

Go to Catalog

CD ffmpeg-4.0

Compiling the installation

./configure--enable-shared && make && make install

Execute ffmpeg after installation is complete

If you can appear similar to the following information, the FFmpeg installation is successful.

ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with GCC 4.4.7 (gcc) 20120313 (Red Hat 4.4.7-18)
Configuration:--enable-shared
libavutil 14.100/56.14.100
libavcodec 18.100/58.18.100
libavformat 12.100/58.12.100
libavdevice 3.100/58.3.100
libavfilter 7.16.100/7.16.100
Libswscale 5.1.100/5.1.100
libswresample 3.1.100/3.1.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 '

If it appears:

Ffmpeg:error while loading shared libraries:libavdevice.so.52:cannot open Shared object file:no such file or directory

Edit this file vim/etc/ld.so.conf

Plus

Include ld.so.conf.d/*.conf
/usr/local/ffmpeg-4.0

Executive Ldconfig

Re-enter FFmpeg

These are the problems I have encountered and resolved

Linux installation FFmpeg

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.