In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to install ffmpeg in Linux". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "how to install ffmpeg in Linux" can help you solve the problem.
Fmpeg is the leading multimedia framework that can decode, encode, transcode, mix, decrypt, stream, filter and play almost everything created by humans and machines. It supports the most obscure ancient formats, up to the most cutting-edge formats.
Install ffmpeg under 1.Linux download: http://ffmpeg.org/download.html2. Download it and upload it to Linux to prepare for installation. First, extract the installation package tar-xjvf ffmpeg- 4.1.tar.bz2`` cd ffmpeg-4.1/3. If you perform configure configuration now, the following error may be reported: [root@slave ffmpeg-4.1] #. / configure gcc is unable to create an executable file. If gcc is a cross-compiler, use the-- enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. 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 ffmpeg-user@ffmpeg.org 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. The error means that the yasm/nasm package does not exist or is very old, you can use-disable-yasm to disable this option to compile, yasm is an assembler, and is a completely rewritten nasm assembly environment, accepts nasm and gas syntax, supports x86 and amd64 instruction sets, so install yasm here
Install yasm under 4.Linux download: http://yasm.tortall.net/Download.html5. Upload it to Linux for installation after download, extract and install tar-xvzf yasm- 1.3.0.tar.gz``cd yasm-1.3.0/ ``. / uplore`make``make install6. After the installation is successful, continue to return to the unzipped ffmpeg directory, execute the following command to compile and install. / configure-- enable-shared-- prefix=/opt/ ffmpeg``make`: the compilation process is a bit long. Make install7.make install will install ffmpeg-related executive programs, header files, and lib libraries under / opt/ffmpeg/ and wait patiently for completion. Then execute cd / opt/ffmpeg/ to enter the installation directory. Take a look and find that there are four directories called bin,include,lib,share. Bin is the binary directory of the ffmpeg main program. Include is the Chopper + header file directory. Lib is the compiled library file directory. Share is the document directory.
8. Then go to the bin directory and execute. / ffmpeg-version to view the details of the current version, which is generally reported by default
Libavdevice.so.57: cannot open shared object file: No such file or directory because the lib directory is not loaded into the linked system library. The list of system ld directories is in / etc/ld.so.conf. If you open the file, you will find that it references all the .conf files under / etc/ld.so.conf.d/, such as mariadb-x86_64.conf.
9. Create a file and write to the lib path to execute the command: vim / etc/ld.so.conf.d/ffmpeg.conf then add a line: / opt/ffmpeg/lib then save and exit, then execute ldconfig to make the configuration take effect, now execute again. / ffmpeg-version display is normal
[root@slave ffmpeg-4.1] # ffmpeg- ersion ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28) configuration:-- enable-shared-- prefix=/opt/ffmpeg-4 libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.10010. Configure the environment variable vim / etc/profile: edit and write ↓ PATH=/opt/python364/bin/:/opt/ffmpeg-4/bin/:$PATH source / etc/profile: reread the file to make it effective
11. Detection uses which ffmpeg or ↓ direct input
Ffmpeg or ↓ use files for testing (self-contained files)
Ffmpeg-y-I a.wav-acodec pcm_s16le-f s16le-ac 1-ar 16000 b.wav.pcm
This is the end of the introduction to "how Linux installs ffmpeg". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.