2017年12月14日ubuntu下ffmpeg安装过程记录

来源:互联网 发布:知乎回答问题赚钱 编辑:程序博客网 时间:2024/06/05 09:14


一、版本信息

      ubuntu 17.04

      ffmpeg-3.4.1

      xshell 5

二、 安装过程

      1.到ffmpeg官网下载ffmpeg-3.4.1.tar.bz2 

      2.在ubuntu系统安装ssh服务

      root@ubuntu:~# apt install openssh-server

     3.使用xshell连接ubuntu

     4.新建ffmpeg文件夹并切换到ffmpeg目录

     root@ubuntu:~# mkdir ffmpeg
     root@ubuntu:~# cd ffmpeg/
     root@ubuntu:~/ffmpeg#

     5.上传下载的ffmpeg-3.4.1.tar.bz2包

     root@ubuntu:~/ffmpeg# rz
     报错:The program 'rz' is currently not installed. You can install it by typing:apt install lrzsz   //未安装lrzsz

     处理:root@ubuntu:~/ffmpeg# apt install lrzsz

     root@ubuntu:~/ffmpeg# rz

     6.解压,并切换到ffmpeg-3.4.1文件夹

     root@ubuntu:~/ffmpeg# tar -jxvfffmpeg-3.4.1.tar.bz2 

     root@ubuntu:~/ffmpeg# cd ffmpeg-3.4.1

     7.configure

     root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/localffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-  pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

     报错:nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

     处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install yasm

     root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/localffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

     报错:ERROR: libfdk_aac not found

     处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# cd ~/ffmpeg

                root@ubuntu:~/ffmpeg# wget -O fdk-aac.tar.gzhttps://github.com/mstorsjo/fdk-aac/tarball/master

                root@ubuntu:~/ffmpeg# tar xzvf fdk-aac.tar.gz

                root@ubuntu:~/ffmpeg# cd mstorsjo-fdk-aac-56c717e/

                root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# autoreconf -fiv

               报错:The program 'autoreconf' is currently not installed. You can install it by typing:apt install autoconf

               处理:root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# apt install autoconf

                root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# autoreconf -fiv

               报错:Makefile.am:31: error: Libtool library used but 'LIBTOOL' is undefined

               处理:root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# apt install libtool

               root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# autoreconf -fiv

               root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# ./configure               

               root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# make

               root@ubuntu:~/ffmpeg/mstorsjo-fdk-aac-56c717e# make install

               root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

               报错:ERROR: libmp3lame >= 3.98.3 not found

               处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libmp3lame-dev

               root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

               报错:ERROR: libtheora not found

               处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libtheora-dev

              root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

              报错:ERROR: vorbis not found using pkg-config

              处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libvorbis-dev

              root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis
              报错:ERROR: libx264 not found

              处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libx264-dev

              root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

              报错:ERROR: libxvid not found

              处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libxvidcore-dev

              root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

              报错:ERROR: libxcb requested but not found 

              处理:root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# apt install libx11-dev

              root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# ./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libxcb --enable-libvorbis

              License: nonfree and unredistributable
              Creating configuration files ...
              libavutil/avconfig.h is unchanged
              libavcodec/bsf_list.c is unchanged
              libavformat/protocol_list.c is unchanged

             root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# make 
             root@ubuntu:~/ffmpeg/ffmpeg-3.4.1# make install
             INSTALL libavdevice/libavdevice.a
            INSTALL libavdevice/libavdevice.so
STRIP install-libavdevice-shared
INSTALL libavfilter/libavfilter.a
INSTALL libavfilter/libavfilter.so
STRIP install-libavfilter-shared
INSTALL libavformat/libavformat.a
INSTALL libavformat/libavformat.so
STRIP install-libavformat-shared
INSTALL libavcodec/libavcodec.a
INSTALL libavcodec/libavcodec.so
STRIP install-libavcodec-shared
INSTALL libpostproc/libpostproc.a
INSTALL libpostproc/libpostproc.so
STRIP install-libpostproc-shared
INSTALL libswresample/libswresample.a
INSTALL libswresample/libswresample.so
STRIP install-libswresample-shared
INSTALL libswscale/libswscale.a
INSTALL libswscale/libswscale.so
STRIP install-libswscale-shared
INSTALL libavutil/libavutil.a
INSTALL libavutil/libavutil.so
STRIP install-libavutil-shared
INSTALL doc/ffmpeg.html
INSTALL doc/ffprobe.html
INSTALL doc/ffserver.html
INSTALL doc/ffmpeg-all.html
INSTALL doc/ffprobe-all.html
INSTALL doc/ffserver-all.html
INSTALL doc/ffmpeg-utils.html
INSTALL doc/ffmpeg-scaler.html
INSTALL doc/ffmpeg-resampler.html
INSTALL doc/ffmpeg-codecs.html
INSTALL doc/ffmpeg-bitstream-filters.html
INSTALL doc/ffmpeg-formats.html
INSTALL doc/ffmpeg-protocols.html
INSTALL doc/ffmpeg-devices.html
INSTALL doc/ffmpeg-filters.html
INSTALL doc/libavutil.html
INSTALL doc/libswscale.html
INSTALL doc/libswresample.html
INSTALL doc/libavcodec.html
INSTALL doc/libavformat.html
INSTALL doc/libavdevice.html
INSTALL doc/libavfilter.html
INSTALL doc/developer.html
INSTALL doc/faq.html
INSTALL doc/fate.html
INSTALL doc/general.html
INSTALL doc/git-howto.html
INSTALL doc/mailing-list-faq.html
INSTALL doc/nut.html
INSTALL doc/platform.html
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffserver.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffserver-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffserver.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffserver-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL install-progs-yes
INSTALL ffmpeg
INSTALL ffprobe
INSTALL ffserver
INSTALL presets/libvpx-1080p50_60.ffpreset
INSTALL presets/libvpx-360p.ffpreset
INSTALL presets/libvpx-1080p.ffpreset
INSTALL presets/libvpx-720p50_60.ffpreset
INSTALL presets/libvpx-720p.ffpreset
INSTALL doc/ffprobe.xsd
INSTALL doc/examples/transcoding.c
INSTALL doc/examples/metadata.c
INSTALL doc/examples/filtering_video.c
INSTALL doc/examples/muxing.c
INSTALL doc/examples/avio_dir_cmd.c
INSTALL doc/examples/extract_mvs.c
INSTALL doc/examples/encode_audio.c
INSTALL doc/examples/hw_decode.c
INSTALL doc/examples/filtering_audio.c
INSTALL doc/examples/resampling_audio.c
INSTALL doc/examples/decode_video.c
INSTALL doc/examples/remuxing.c
INSTALL doc/examples/http_multiclient.c
INSTALL doc/examples/avio_reading.c
INSTALL doc/examples/qsvdec.c
INSTALL doc/examples/decode_audio.c
INSTALL doc/examples/filter_audio.c
INSTALL doc/examples/transcode_aac.c
INSTALL doc/examples/demuxing_decoding.c
INSTALL doc/examples/encode_video.c
INSTALL doc/examples/scaling_video.c
INSTALL doc/examples/README
INSTALL doc/examples/Makefile
INSTALL doc/examples/transcoding.c
INSTALL doc/examples/metadata.c
INSTALL doc/examples/filtering_video.c
INSTALL doc/examples/muxing.c
INSTALL doc/examples/avio_dir_cmd.c
INSTALL doc/examples/extract_mvs.c
INSTALL doc/examples/encode_audio.c
INSTALL doc/examples/hw_decode.c
INSTALL doc/examples/filtering_audio.c
INSTALL doc/examples/resampling_audio.c
INSTALL doc/examples/decode_video.c
INSTALL doc/examples/remuxing.c
INSTALL doc/examples/http_multiclient.c
INSTALL doc/examples/avio_reading.c
INSTALL doc/examples/qsvdec.c
INSTALL doc/examples/decode_audio.c
INSTALL doc/examples/filter_audio.c
INSTALL doc/examples/transcode_aac.c
INSTALL doc/examples/demuxing_decoding.c
INSTALL doc/examples/encode_video.c
INSTALL doc/examples/scaling_video.c
INSTALL doc/examples/README
INSTALL doc/examples/Makefile
INSTALL libavdevice/avdevice.h
INSTALL libavdevice/version.h
INSTALL libavdevice/libavdevice.pc
INSTALL libavfilter/avfilter.h
INSTALL libavfilter/avfiltergraph.h
INSTALL libavfilter/buffersink.h
INSTALL libavfilter/buffersrc.h
INSTALL libavfilter/version.h
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avdct.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/d3d11va.h
INSTALL libavcodec/dirac.h
INSTALL libavcodec/dv_profile.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/jni.h
INSTALL libavcodec/mediacodec.h
INSTALL libavcodec/qsv.h
INSTALL libavcodec/vaapi.h
INSTALL libavcodec/vda.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/version.h
INSTALL libavcodec/videotoolbox.h
INSTALL libavcodec/vorbis_parser.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libpostproc/postprocess.h
INSTALL libpostproc/version.h
INSTALL libpostproc/libpostproc.pc
INSTALL libswresample/swresample.h
INSTALL libswresample/version.h
INSTALL libswresample/libswresample.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/version.h
INSTALL libswscale/libswscale.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/aes.h
INSTALL libavutil/aes_ctr.h
INSTALL libavutil/attributes.h
INSTALL libavutil/audio_fifo.h
INSTALL libavutil/avassert.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/blowfish.h
INSTALL libavutil/bprint.h
INSTALL libavutil/bswap.h
INSTALL libavutil/buffer.h
INSTALL libavutil/cast5.h
INSTALL libavutil/camellia.h
INSTALL libavutil/channel_layout.h
INSTALL libavutil/common.h
INSTALL libavutil/cpu.h
INSTALL libavutil/crc.h
INSTALL libavutil/des.h
INSTALL libavutil/dict.h
INSTALL libavutil/display.h
INSTALL libavutil/downmix_info.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/fifo.h
INSTALL libavutil/file.h
INSTALL libavutil/frame.h
INSTALL libavutil/hash.h
INSTALL libavutil/hmac.h
INSTALL libavutil/hwcontext.h
INSTALL libavutil/hwcontext_cuda.h
INSTALL libavutil/hwcontext_d3d11va.h
INSTALL libavutil/hwcontext_drm.h
INSTALL libavutil/hwcontext_dxva2.h
INSTALL libavutil/hwcontext_qsv.h
INSTALL libavutil/hwcontext_vaapi.h
INSTALL libavutil/hwcontext_videotoolbox.h
INSTALL libavutil/hwcontext_vdpau.h
INSTALL libavutil/imgutils.h
INSTALL libavutil/intfloat.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/macros.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/mastering_display_metadata.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/motion_vector.h
INSTALL libavutil/murmur3.h
INSTALL libavutil/opt.h
INSTALL libavutil/parseutils.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixelutils.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rc4.h
INSTALL libavutil/rational.h
INSTALL libavutil/replaygain.h
INSTALL libavutil/ripemd.h
INSTALL libavutil/samplefmt.h
INSTALL libavutil/sha.h
INSTALL libavutil/sha512.h
INSTALL libavutil/spherical.h
INSTALL libavutil/stereo3d.h
INSTALL libavutil/threadmessage.h
INSTALL libavutil/time.h
INSTALL libavutil/timecode.h
INSTALL libavutil/timestamp.h
INSTALL libavutil/tree.h
INSTALL libavutil/twofish.h
INSTALL libavutil/version.h
INSTALL libavutil/xtea.h
INSTALL libavutil/tea.h
INSTALL libavutil/lzo.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc

    

    

    

    




原创粉丝点击