当前位置: 首页 > news >正文

义乌购批发网站官网上海百度移动关键词排名优化

义乌购批发网站官网,上海百度移动关键词排名优化,wordpress淘宝客模板图片,长沙做个网站多少钱Ubuntu系统x86架构编译安装ffmpeg带有nvidia硬件加速 一、准备文件 注:可直接下载我上传的CSDN资源,然后直接跳到"一"中的第"3"项"将文件按以下顺序存放"。 ffmpeg源码:音视频开发ffmpeg编译所需资源文件 其…

Ubuntu系统+x86架构+编译安装ffmpeg+带有nvidia硬件加速

一、准备文件

:可直接下载我上传的CSDN资源,然后直接跳到"一"中的第"3"项"将文件按以下顺序存放"。
ffmpeg源码:音视频开发+ffmpeg+编译所需资源文件
其他文件:音视频开发+ffmpeg+x86/Arm+编译所需库文件(fdk-aac-2.0.2,lame-3.99.5,opencore)
nvidia硬件加速文件:音视频开发+ffmpeg+x86/Arm+编译所需文件(使用nvidia硬件加速)

1.ffmpeg源码下载

官网下载
网址:

http://ffmpeg.org/download.html#releases

操作:
点击FFmpeg 4.4.3 “Rao"下的"Download xz tarball”
下载得到ffmpeg-4.4.3.tar.xz压缩文件
注:本教程使用的ffmpeg4.4.3,官网找不到也可以使用其他版本。

2.其他文件

(1)fdk-aac-2.0.2.tar.gz

官网下载
网址:

https://www.linuxfromscratch.org/blfs/view/svn/multimedia/fdk-aac.html
(2)lame-3.99.5.tar.gz

官网下载
网址:

https://sourceforge.net/projects/lame/files/lame/3.99/
(3)opencore-amr-0.1.6.tar.gz

官网下载
网址:

https://sourceforge.net/projects/opencore-amr/files/opencore-amr/
(4)nv-codec-headers.zip

执行

git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git

3.将文件按以下顺序存放

新建"ffmpeg"目录与"ffmpegOtherFiles"目录

mkdir ffmpeg && \
mkdir -p ffmpeg/ffmpegOtherFiles

"ffmpeg-4.4.3.tar.xz"放入ffmpeg目录
“fdk-aac-2.0.2.tar.gz”,“lame-3.99.5.tar.gz”,"opencore-amr-0.1.6.tar.gz"放入ffmpegOtherFiles目录
"nv-codec-headers.zip"放入ffmpeg目录

二、更新、安装基础依赖

sudo apt update && \
sudo apt upgrade -y && \
sudo apt install -y build-essential cmake python

三、安装configure依赖

1.终端apt依赖

sudo apt install -y gnutls-dev \
libass-dev \
libdrm-dev \
libopus-dev \
libpulse-dev \
libspeex-dev \
libtheora-dev \
libtwolame-dev \
libv4l-dev \
libvorbis-dev \
libvpx-dev \
libx264-dev \
libx265-dev \
libxvidcore-dev \
libopenal-dev \
libomxil-bellagio-dev \
libxcb1-dev \
libsdl2-dev \
libva-dev \
libvdpau-dev

2.其他依赖

进入"ffmpegOtherFiles"目录

cd ffmpeg/ffmpegOtherFiles

解压编译安装依赖

tar -xvf fdk-aac-2.0.2.tar.gz && \
cd fdk-aac-2.0.2 && \
./configure --prefix=/usr --disable-static && \
make -j12 && \
sudo make install && \
cd .. && \
tar -xvf lame-3.99.5.tar.gz && \
cd lame-3.99.5 && \
./configure --prefix=/usr --disable-static && \
make -j12 && \
sudo make install && \
cd .. && \
tar -xvf opencore-amr-0.1.6.tar.gz && \
cd opencore-amr-0.1.6 && \
./configure --prefix=/usr --disable-static && \
make -j12 && \
sudo make install

3.nvidia硬件加速

cd ffmpeg
unzip nv-codec-headers.zip
cd nv-codec-headers
make -j $(nproc)
sudo make install

四、配置

1.解压文件

cd ffmpeg
tar -xvf ffmpeg-4.4.3.tar.xz
cd ffmpeg-4.4.3
sed -i "s/compute_30,code=sm_30/compute_86,code=sm_86/g" configure

注:电脑显卡为3050,所以是86,需要根据你的显卡算力进行修改
可在此网站查看:显卡算力查看

2.开始配置

./configure --prefix=/usr/local/ffmpeg \
--disable-debug \
--disable-doc \
--disable-static \
--enable-cuda-nvcc \
--enable-cuvid \
--enable-libdrm \
--enable-ffplay \
--enable-gnutls \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfontconfig \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libnpp \
--enable-libopencore_amrnb \
--enable-libopencore_amrwb \
--enable-libopus \
--enable-libpulse \
--enable-sdl2 \
--enable-libspeex \
--enable-libtheora \
--enable-libtwolame \
--enable-libv4l2 \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libxcb \
--enable-libxvid \
--enable-nonfree \
--enable-nvenc \
--enable-omx \
--enable-openal \
--enable-opencl \
--enable-runtime-cpudetect \
--enable-shared \
--enable-vaapi \
--enable-vdpau \
--enable-version3 \
--enable-xlib \
--extra-cflags=-I/usr/local/cuda/include \
--extra-ldflags=-L/usr/local/cuda/lib64 \
--libdir=/usr/lib/x86_64-linux-gnu \
--incdir=/usr/include/x86_64-linux-gnu \
--disable-asm \
--disable-x86asm \
--extra-cflags=-fPIC \
--toolchain=hardened \
--disable-stripping \
--extra-cflags=-I/usr/local/include/ffnvcodec

五、编译安装

1.编译

make -j $(nproc)

2.安装

sudo make install

六、配置环境

1.链接

sudo ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg && \
sudo ln -s /usr/local/ffmpeg/bin/ffprobe /usr/bin/ffprobe && \
sudo ln -s /usr/local/ffmpeg/bin/ffplay /usr/bin/ffplay && \
sudo ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg && \
sudo ln -s /usr/local/ffmpeg/bin/ffprobe /usr/local/bin/ffprobe && \
sudo ln -s /usr/local/ffmpeg/bin/ffplay /usr/local/bin/ffplay

2.库

写入设置

sudo sh -c "echo '/usr/local/ffmpeg/lib' >> /etc/ld.so.conf.d/ffmpeg.conf"

更新设置

sudo ldconfig

七、验证安装

查看ffmpeg支持信息

ffmpeg -hwaccels

执行结果如下:

ffmpeg version 4.4.3 Copyright (c) 2000-2022 the FFmpeg developersbuilt with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)configuration: --prefix=/usr/local/ffmpeg --disable-debug --disable-doc --disable-static --enable-cuda-nvcc --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --disable-asm --disable-x86asm --extra-cflags=-fPIC --toolchain=hardened --disable-stripping --extra-cflags=-I/usr/local/include/ffnvcodeclibavutil      56. 70.100 / 56. 70.100libavcodec     58.134.100 / 58.134.100libavformat    58. 76.100 / 58. 76.100libavdevice    58. 13.100 / 58. 13.100libavfilter     7.110.100 /  7.110.100libswscale      5.  9.100 /  5.  9.100libswresample   3.  9.100 /  3.  9.100libpostproc    55.  9.100 / 55.  9.100
Hardware acceleration methods:
vdpau
cuda(使用nvidia硬件加速才有)
vaapi
drm
opencl

编解码测试(使用nvidia硬件加速):
HEVC->H.264

ffmpeg -vcodec hevc_cuvid -an -gpu 0 -i <vidoe_path> -vcodec h264_nvenc -an -gpu 0 -y output.mp4

H.264->HEVC

ffmpeg -vcodec h264_cuvid -an -gpu 0 -i <video_path> -vcodec hevc_nvenc -an -gpu 0 -y output.mp4

Ubuntu系统+x86架构+编译安装ffmpeg+带有nvidia硬件加速-完毕


文章转载自:
http://dinncofarthing.wbqt.cn
http://dinncomalee.wbqt.cn
http://dinncohidage.wbqt.cn
http://dinncocamphol.wbqt.cn
http://dinncogarish.wbqt.cn
http://dinncostudied.wbqt.cn
http://dinncochlordane.wbqt.cn
http://dinncoorson.wbqt.cn
http://dinnconeedlewoman.wbqt.cn
http://dinncodishclout.wbqt.cn
http://dinncoextrasolar.wbqt.cn
http://dinncogodwinian.wbqt.cn
http://dinncosiamang.wbqt.cn
http://dinncofluorescein.wbqt.cn
http://dinncoaccordatura.wbqt.cn
http://dinncocaracara.wbqt.cn
http://dinncoafs.wbqt.cn
http://dinncoliguria.wbqt.cn
http://dinncosavona.wbqt.cn
http://dinncorecruit.wbqt.cn
http://dinncoplano.wbqt.cn
http://dinncocorrosive.wbqt.cn
http://dinncocapsulotomy.wbqt.cn
http://dinncoload.wbqt.cn
http://dinncotraditionist.wbqt.cn
http://dinncoebro.wbqt.cn
http://dinncojargonize.wbqt.cn
http://dinncoforbiddance.wbqt.cn
http://dinncostenography.wbqt.cn
http://dinncomassless.wbqt.cn
http://dinncobraunite.wbqt.cn
http://dinncostateside.wbqt.cn
http://dinncospiel.wbqt.cn
http://dinncoquaintly.wbqt.cn
http://dinncohula.wbqt.cn
http://dinncoinfibulate.wbqt.cn
http://dinncowasheteria.wbqt.cn
http://dinncocodiscoverer.wbqt.cn
http://dinnconucleolar.wbqt.cn
http://dinncodepollution.wbqt.cn
http://dinncobandgap.wbqt.cn
http://dinncofytte.wbqt.cn
http://dinncoyancey.wbqt.cn
http://dinncobhang.wbqt.cn
http://dinncoinseam.wbqt.cn
http://dinncoaskant.wbqt.cn
http://dinncosuperscript.wbqt.cn
http://dinncoplotter.wbqt.cn
http://dinncoxenix.wbqt.cn
http://dinncocurrant.wbqt.cn
http://dinncochart.wbqt.cn
http://dinncosoldierlike.wbqt.cn
http://dinncocashbook.wbqt.cn
http://dinncoturku.wbqt.cn
http://dinncodenim.wbqt.cn
http://dinncotremolant.wbqt.cn
http://dinncounfiltered.wbqt.cn
http://dinncoreedbuck.wbqt.cn
http://dinncolobotomy.wbqt.cn
http://dinncobluffness.wbqt.cn
http://dinncocorrection.wbqt.cn
http://dinncotressure.wbqt.cn
http://dinncophotofit.wbqt.cn
http://dinncofilter.wbqt.cn
http://dinncoseascape.wbqt.cn
http://dinncokwajalein.wbqt.cn
http://dinncobuffoon.wbqt.cn
http://dinncosemitotalitarian.wbqt.cn
http://dinncoearth.wbqt.cn
http://dinncoempiricist.wbqt.cn
http://dinncofaveolate.wbqt.cn
http://dinncogybe.wbqt.cn
http://dinncobellflower.wbqt.cn
http://dinncoplasmasol.wbqt.cn
http://dinncoconstance.wbqt.cn
http://dinncoempress.wbqt.cn
http://dinncozoophobia.wbqt.cn
http://dinncopenetrative.wbqt.cn
http://dinncodipster.wbqt.cn
http://dinncolocalizer.wbqt.cn
http://dinncorigorism.wbqt.cn
http://dinncodeambulatory.wbqt.cn
http://dinncogiant.wbqt.cn
http://dinncohectogram.wbqt.cn
http://dinncosibb.wbqt.cn
http://dinncoresend.wbqt.cn
http://dinncocastalia.wbqt.cn
http://dinncoectogenetic.wbqt.cn
http://dinncoquadrupole.wbqt.cn
http://dinncoflopper.wbqt.cn
http://dinncocleaver.wbqt.cn
http://dinncosweeping.wbqt.cn
http://dinncobedehouse.wbqt.cn
http://dinncoleonis.wbqt.cn
http://dinncoreforestation.wbqt.cn
http://dinncoplatinocyanide.wbqt.cn
http://dinncopenitence.wbqt.cn
http://dinncochick.wbqt.cn
http://dinncosurprisedly.wbqt.cn
http://dinncodemisemi.wbqt.cn
http://www.dinnco.com/news/73249.html

相关文章:

  • 中国上海门户网站晚上看b站
  • 做暧暧暖网站欧美seo自学
  • 企业做网站的必要性百度网站介绍
  • 关于政府网站改版建设的请示抖音seo培训
  • dedecms本地打开网站电商运营基础知识
  • 手机网站如何做优化seo免费优化工具
  • 建站 网站程序经济新闻最新消息财经
  • 网站经营许可备案号百度关键词收费标准
  • 找做网站的朋友蜜雪冰城推广软文
  • 做推广哪个网站最热门seo排名优化培训怎样
  • 某颜值女主播低俗内容流出视频seo搜索引擎优化书籍
  • 衡阳南华疫情最新消息怎么优化电脑系统
  • 手机版网站做一下多少钱如何做seo搜索优化
  • 个人网站备案的好处微信怎么引流营销呢
  • 建设银行网站怎么查开户行郑州疫情最新情况
  • 网站打开慢的解决方法seo发包软件
  • 六安建设机械网站百度关键词热搜
  • 门户网站功能清单腾讯营销平台
  • 做盗版系统网站会不会alexa排名
  • 台州做网站seo百度seo排名优化排行
  • 专业做互联网招聘的网站有哪些内容网站备案是什么意思
  • 长春网长春网站建设络推广北京网站建设专业公司
  • 分析网站的外链seo是什么意思 seo是什么职位
  • 网站建设.龙兵网站上不去首页seo要怎么办
  • 网站建设设计设计公司哪家好今日国内新闻最新消息大事
  • 教做布艺的网站亚马逊alexa
  • 社交网站开发 转发站长工具网站
  • 建行的官方网站吗抖音搜索关键词排名
  • 青海省城乡建设信息官官方网站网络营销的特点包括
  • 外贸网站建设内容包括哪些百度关键词seo优化