openh264初探

本文详细描述了如何通过Git从GitHub仓库下载OpenH264代码,切换到稳定分支,使用Meson进行构建,然后通过Ninja编译并完成安装过程,包括库文件、头文件和pkgconfig文件的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

代码下载

git clone https://github.com/cisco/openh264

代码编译

git branch -av
git checkout --track -b openh264v2.3.1 origin/openh264v2.3.1  //切换到一个稳定分支
mkdir out  //创建构建目录
meson out  //开始meson构建
cd out
ninja  //ninja编译

安装

sudo ninja install  //安装

安装内容如下:

fuqiang@ubuntu:~/workspace/spacemit_mpp/thirdparty/openh264/out$ sudo ninja install

[0/1] Installing files.
Installing libopenh264.so.2.3.1 to /usr/local/lib/x86_64-linux-gnu
Installing symlink pointing to libopenh264.so.2.3.1 to /usr/local/lib/x86_64-linux-gnu/libopenh264.so.7
Installing symlink pointing to libopenh264.so.7 to /usr/local/lib/x86_64-linux-gnu/libopenh264.so
Installing /home/fuqiang/workspace/spacemit_mpp/thirdparty/openh264/codec/api/wels/codec_api.h to /usr/local/include/wels
Installing /home/fuqiang/workspace/spacemit_mpp/thirdparty/openh264/codec/api/wels/codec_app_def.h to /usr/local/include/wels
Installing /home/fuqiang/workspace/spacemit_mpp/thirdparty/openh264/codec/api/wels/codec_def.h to /usr/local/include/wels
Installing /home/fuqiang/workspace/spacemit_mpp/thirdparty/openh264/codec/api/wels/codec_ver.h to /usr/local/include/wels
Installing /home/fuqiang/workspace/spacemit_mpp/thirdparty/openh264/out/meson-private/openh264.pc to /usr/local/lib/x86_64-linux-gnu/pkgconfig

OpenH264 是思科公司发布的一个开源的 H.264 编码和解码器。编码器特性Constrained Baseline Profile up to Level 5.2 (4096x2304)Arbitrary resolution, not constrained to multiples of 16x16Rate control with adaptive quantization, or constant quantizationSlice options: 1 slice per frame, N slices per frame, N macroblocks per slice, or N bytes per sliceMultiple threads automatically used for multiple slicesTemporal scalability up to 4 layers in a dyadic hierarchySpatial simulcast up to 4 resolutions from a single inputLong Term Reference (LTR) framesMemory Management Control Operation (MMCO)Reference picture list modificationSingle reference frame for inter predictionMultiple reference frames when using LTR and/or 3-4 temporal layersPeriodic and on-demand Instantaneous Decoder Refresh (IDR) frame insertionDynamic changes to bit rate, frame rate, and resolutionAnnex B byte stream outputYUV 4:2:0 planar input解码器特性Constrained Baseline Profile up to Level 5.2 (4096x2304)Arbitrary resolution, not constrained to multiples of 16x16Single thread for all slicesLong Term Reference (LTR) framesMemory Management Control Operation (MMCO)Reference picture list modificationMultiple reference frames when specified in Sequence Parameter Set (SPS)Annex B byte stream inputYUV 4:2:0 planar output支持的操作系统Windows 64-bit and 32-bit (initial release is only 32-bit, 64-bit will follow soon)Mac OS X 64-bit (initial release does not include this target, will follow soon)Linux 64-bit and 32-bit (initial release is only 32-bit, 64-bit will follow soon)Android 32-bit (initial release does not include this target, will follow soon)iOS 64-bit and 32-bit (not supported yet, may be added in the future)支持的处理器Intel x86 optionally with MMX/SSE (no AVX yet, help is welcome)ARMv7 optionally with NEON (initial release does not include this target, will follow later)Any architecture using C/C fallback functions 标签:OpenH264
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

代码论斤卖

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值