日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

01.FFmpeg下载以及安装

發(fā)布時(shí)間:2023/12/20 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 01.FFmpeg下载以及安装 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

FFmpeg下載及安裝

2022年7月11日

https://ffmpeg.zeranoe.com/builds/ 網(wǎng)站掛了

一、 FFmpeg下載

1.1 windows方法一

https://ffmpeg.org/download.html#build-windows

ffmpeg-4.4.1-full_build.7z 、ffmpeg-4.4.1-full_build-shared.7z 區(qū)別:1. ffmpeg-4.4.1-full_build.7z:版本只包含了ffmpeg.exe、ffplay.exe、ffprobe.exe三個(gè)可執(zhí)行程序,沒有頭文件和庫文件。 2. ffmpeg-4.4.1-full_build-shared.7z exe:版本包含了ffmpeg.exe、ffplay.exe、ffprobe.exe三個(gè)可執(zhí)行程序和相關(guān)動(dòng)態(tài)庫文件,包含了頭文件和庫文件。


1.2 windows方法二

zeranoe編譯FFmpeg掛了 ,可以訪問 FFmpeg-Builds。

ffmpeg-n4.4-latest-win64-gpl-shared-4.4.zip 目標(biāo)平臺(tái):win64
  • 參數(shù)說明

    Available targets:

    • win64 (x86_64 Windows)
    • win32 (x86 Windows)
    • linux64 (x86_64 Linux, glibc>=2.23, linux>=4.4)
    • linuxarm64 (arm64 (aarch64) Linux, glibc>=2.27, linux>=4.15)

    The linuxarm64 target will not build some dependencies due to lack of arm64 (aarch64) architecture support or cross-compiling restrictions.

    • davs2 and xavs2: aarch64 support is broken.
    • libmfx and libva: Library for Intel QSV, so there is no aarch64 support.

    Available:

    • gpl Includes all dependencies, even those that require full GPL instead of just LGPL.
    • lgpl Lacking libraries that are GPL-only. Most prominently libx264 and libx265.
    • nonfree Includes fdk-aac in addition to all the dependencies of the gpl variant.
    • gpl-shared Same as gpl, but comes with the libav* family of shared libs instead of pure static executables.
    • lgpl-shared Same again, but with the lgpl set of dependencies.
    • nonfree-shared Same again, but with the nonfree set of dependencies.

    All of those can be optionally combined with any combination of addins.

    • 4.4 to build from the 4.4 release branch instead of master.
    • 5.0 to build from the 5.0 release branch instead of master.
    • debug to not strip debug symbols from the binaries. This increases the output size by about 250MB.

1.3 Linux下載安裝

二、 FFmpeg安裝

2.1 windows下安裝

# 解壓后將/bin 文件夾添加系統(tǒng)環(huán)境變量 ffmpeg -version

2.2 Linux下安裝

三、測(cè)試

3.1 FFmpeg安裝目錄

FFmpeg安裝目錄如下,將include和lib文件夾copy 項(xiàng)目文件中;

# FFmpeg 安裝目錄文件結(jié)構(gòu) ├─bin ├─doc ├─include │ ├─libavcodec │ ├─libavdevice │ ├─libavfilter │ ├─libavformat │ ├─libavutil │ ├─libpostproc │ ├─libswresample │ └─libswscale ├─lib └─presets

3.2 新建項(xiàng)目測(cè)試

  • QT --> Projects-->New--> 選擇Plain C++ Application
  • 從FFmpeg安裝目錄如下,將include和lib文件夾copy 項(xiàng)目文件中,.pro添加ffmpeg的include和lib文件夾
  • INCLUDEPATH += $$PWD/include LIBS += $$PWD/lib/avformat.lib \$$PWD/lib/avcodec.lib \$$PWD/lib/avdevice.lib \$$PWD/lib/avfilter.lib \$$PWD/lib/avutil.lib \$$PWD/lib/postproc.lib \$$PWD/lib/swresample.lib \$$PWD/lib/swscale.lib
  • FFmpeg測(cè)試輸出版本信息
  • #include <stdio.h>// 包含ffmpeg頭文件 #include "libavutil/avutil.h"int main() {printf("Hello FFMPEG, av_version_info is %s\n",av_version_info());printf("avutil_configuration is \n%s\n",avutil_configuration());return 0; }
  • FFmpeg測(cè)試結(jié)果輸出
  • 總結(jié)

    以上是生活随笔為你收集整理的01.FFmpeg下载以及安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。