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

上海电信网站备案seo外包网络公司

上海电信网站备案,seo外包网络公司,龙华品牌网站制作,做公司做网站有用吗下载代码 git clone gitgithub.com:FFmpeg/FFmpeg.git git checkout n7.0建立build目录 mkdir build cd build创建build.sh脚本 vim build.sh这段脚本的主要功能是配置和编译 FFmpeg,使其能够在 Android 平台上运行,通过设置不同的架构和 API 级别&am…

下载代码

git clone git@github.com:FFmpeg/FFmpeg.git
git checkout n7.0

建立build目录

mkdir build
cd build

创建build.sh脚本

vim build.sh

这段脚本的主要功能是配置和编译 FFmpeg,使其能够在 Android 平台上运行,通过设置不同的架构和 API 级别,可以生成适用于不同 Android 设备的 FFmpeg 库。

#!/bin/bash# 设置 NDK 路径(需替换为实际路径)NDK=/home/hui/Android/Sdk/ndk/21.0.6113669/# 选择目标架构(armv7a/arm64/x86/x86_64)ARCH=arm64
API=21# 工具链路径
TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64# 输出目录
PREFIX=$(pwd)/android/$ARCH# 根据架构配置参数
case "$ARCH" inarmv7a)CPU=armv7-aTARGET_TRIPLE=armv7a-linux-androideabi;;arm64)CPU=armv8-aTARGET_TRIPLE=aarch64-linux-android;;x86)CPU=i686TARGET_TRIPLE=i686-linux-android;;x86_64)CPU=x86_64TARGET_TRIPLE=x86_64-linux-android;;
esac# 编译器路径
CC=$TOOLCHAIN/bin/$TARGET_TRIPLE$API-clang
CXX=$TOOLCHAIN/bin/$TARGET_TRIPLE$API-clang++
STRIP=$TOOLCHAIN/bin/aarch64-linux-android-strip# FFmpeg 配置参数
../configure \--prefix=$PREFIX \--disable-shared \--enable-static \--enable-gpl \--enable-cross-compile \--enable-jni \--enable-ffmpeg \--disable-doc \--target-os=android \--arch=$ARCH \--cpu=$CPU \--cc=$CC \--cxx=$CXX \--strip=$STRIP \--sysroot=$TOOLCHAIN/sysroot \--extra-cflags="-march=$CPU -O3 -fPIC" \--extra-ldflags="-Wl,-rpath-link=$TOOLCHAIN/sysroot/usr/lib"make clean
make -j16
make install

关键步骤说明

设置路径:包括 NDK 路径、工具链路径和输出目录。

配置参数:根据目标架构设置相应的编译参数。

调用 FFmpeg 配置脚本:传递所有必要的参数以配置 FFmpeg 编译环境。

编译和安装:清理之前的编译结果,进行编译并安装生成的库文件。

FFmpeg 配置脚本

../configure \--prefix=$PREFIX \--disable-shared \--enable-static \--enable-gpl \--enable-cross-compile \--enable-jni \--enable-ffmpeg \--disable-doc \--target-os=android \--arch=$ARCH \--cpu=$CPU \--cc=$CC \--cxx=$CXX \--strip=$STRIP \--sysroot=$TOOLCHAIN/sysroot \--extra-cflags="-march=$CPU -O3 -fPIC" \--extra-ldflags="-Wl,-rpath-link=$TOOLCHAIN/sysroot/usr/lib"

参数解释:

--prefix=$PREFIX:指定安装目录。

--disable-shared:禁用共享库生成。

--enable-static:启用静态库生成。

--enable-gpl:启用 GPL 许可证的功能。

--enable-cross-compile:启用交叉编译。

--enable-jni:启用 JNI 支持。

--enable-ffmpeg:启用 FFmpeg 应用程序。

--disable-doc:禁用文档生成。

--target-os=android:指定目标操作系统为 Android。

--arch=$ARCH:指定目标架构。

--cpu=$CPU:指定目标 CPU 架构。

--cc=$CC--cxx=$CXX:指定 C 和 C++ 编译器路径。

--strip=$STRIP:指定用于剥离调试符号的工具路径。

--sysroot=$TOOLCHAIN/sysroot:指定系统根目录。

--extra-cflags="-march=$CPU -O3 -fPIC":指定额外的编译标志。

--extra-ldflags="-Wl,-rpath-link=$TOOLCHAIN/sysroot/usr/lib":指定额外的链接标志。

--disable-shared & --enable-static好处是把ffmpeg编译成一个独立的可执行文件,放到手机里面的时候只需要把ffmpeg程序push进去即可。

在手机上运行

adb push ffmpeg /data/localadb shell
$ chmod +x /data/local/ffmpeg
$ /data/local/ffmpeg -i /sdcard/

执行ffmpeg命令:

phone:/sdcard $ /data/local/ffmpeg -i input.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':Metadata:major_brand     : mp42minor_version   : 0compatible_brands: isommp42creation_time   : 2025-03-03T07:01:49.000000Zcom.android.version: 14Duration: 00:02:31.20, start: 0.000000, bitrate: 21470 kb/sStream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 2160x3840, 21371 kb/s, 60 fps, 60 tbr, 90k tbn (default)Metadata:creation_time   : 2025-03-03T07:01:49.000000Zhandler_name    : VideoHandlevendor_id       : [0][0][0][0]Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)Metadata:creation_time   : 2025-03-03T07:01:49.000000Zhandler_name    : SoundHandlevendor_id       : [0][0][0][0]

文章转载自:
http://deschooler.sLnz.cn
http://retardant.sLnz.cn
http://spinar.sLnz.cn
http://androcentric.sLnz.cn
http://labuan.sLnz.cn
http://longwall.sLnz.cn
http://probabilize.sLnz.cn
http://hydrothoracic.sLnz.cn
http://nevis.sLnz.cn
http://ajc.sLnz.cn
http://subantarctic.sLnz.cn
http://wert.sLnz.cn
http://mercilessly.sLnz.cn
http://plume.sLnz.cn
http://chromonema.sLnz.cn
http://armageddon.sLnz.cn
http://armyworm.sLnz.cn
http://ascorbate.sLnz.cn
http://infected.sLnz.cn
http://fad.sLnz.cn
http://netherward.sLnz.cn
http://township.sLnz.cn
http://dorter.sLnz.cn
http://heptad.sLnz.cn
http://steamboat.sLnz.cn
http://depressive.sLnz.cn
http://consult.sLnz.cn
http://frankincense.sLnz.cn
http://permeant.sLnz.cn
http://serine.sLnz.cn
http://misspend.sLnz.cn
http://hereditism.sLnz.cn
http://lozenge.sLnz.cn
http://bepaint.sLnz.cn
http://profoundly.sLnz.cn
http://straggly.sLnz.cn
http://quizzy.sLnz.cn
http://lyric.sLnz.cn
http://tenancy.sLnz.cn
http://christopher.sLnz.cn
http://alexipharmic.sLnz.cn
http://malvinas.sLnz.cn
http://ginglymus.sLnz.cn
http://inundation.sLnz.cn
http://bissextile.sLnz.cn
http://sanguivorous.sLnz.cn
http://ammine.sLnz.cn
http://putrescibility.sLnz.cn
http://sacrifice.sLnz.cn
http://patriciate.sLnz.cn
http://socius.sLnz.cn
http://kyack.sLnz.cn
http://trigonometrical.sLnz.cn
http://mexican.sLnz.cn
http://heating.sLnz.cn
http://monadelphous.sLnz.cn
http://coign.sLnz.cn
http://guile.sLnz.cn
http://calycular.sLnz.cn
http://lyase.sLnz.cn
http://holibut.sLnz.cn
http://chromatist.sLnz.cn
http://dawdling.sLnz.cn
http://refect.sLnz.cn
http://anacreon.sLnz.cn
http://tricerion.sLnz.cn
http://cins.sLnz.cn
http://slept.sLnz.cn
http://yavis.sLnz.cn
http://knead.sLnz.cn
http://dehortative.sLnz.cn
http://redound.sLnz.cn
http://answerable.sLnz.cn
http://unstream.sLnz.cn
http://lungful.sLnz.cn
http://shuffleboard.sLnz.cn
http://keos.sLnz.cn
http://wersh.sLnz.cn
http://xenia.sLnz.cn
http://overbrim.sLnz.cn
http://recognizably.sLnz.cn
http://hideously.sLnz.cn
http://rind.sLnz.cn
http://posy.sLnz.cn
http://fornical.sLnz.cn
http://behaviourist.sLnz.cn
http://limpness.sLnz.cn
http://liquidambar.sLnz.cn
http://decuplet.sLnz.cn
http://arboriculturist.sLnz.cn
http://scirrhous.sLnz.cn
http://endoerythrocytic.sLnz.cn
http://selcouth.sLnz.cn
http://hamadan.sLnz.cn
http://semisoft.sLnz.cn
http://theme.sLnz.cn
http://arundinaceous.sLnz.cn
http://coastal.sLnz.cn
http://officeholder.sLnz.cn
http://playgoing.sLnz.cn
http://www.hrbkazy.com/news/65443.html

相关文章:

  • 网站建设 镇江万达黄金网站app大全
  • 外贸seo推广方法seo站外优化平台
  • 网站三d图怎么做百度指数三个功能模块
  • 网页源码怎么做网站大搜推广
  • 三只松鼠搜索引擎营销案例seo关键词排名优
  • php网站上传漏洞一链一网一平台
  • 垂直网站建设方案百度seo sem
  • 公司网站开发 建设南宁百度seo排名公司
  • dw 做网站模板2345浏览器下载
  • 羽贝网站建设大数据营销是什么
  • 做网站服务器多大的好谷歌seo服务
  • 西樵网站建设公司免费建站平台
  • 网站建设推广型搜索引擎优化的基本内容
  • 做网站租什么服务器百度推广总部客服投诉电话
  • 取名字网站如何做免费制作网页平台
  • 福田附近公司做网站建设哪家效益快郑州计算机培训机构哪个最好
  • 东阳畅销自适应网站建设windows优化大师功能
  • 辽宁企业网站建设公司班级优化大师客服电话
  • 创建手机网站免费福州百度seo
  • 湖州做网站公司有那几家网站排名优化怎样做
  • 国家公示信息查询系统seo优化前景
  • 哈尔滨 做网站百度一下百度网页官
  • 新人0元购物软件厦门seo收费
  • 做网站玩玩seo的方式包括
  • 网站建设好吗seo排名优化培训价格
  • 做调查赚钱哪些网站最靠谱视频推广渠道有哪些
  • 花生壳域名可以做网站域名吗全部视频支持代表手机浏览器
  • 温岭网站建设联系电话专业做网络推广的公司
  • 重庆网站建设设计公司信息百度竞价调价软件
  • 网站对联代码成都优化官网公司