FFmpeg之Intel多媒体解决方案(libyami)

Posted 努力加贝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FFmpeg之Intel多媒体解决方案(libyami)相关的知识,希望对你有一定的参考价值。

FFmpeg之Intel多媒体解决方案(libyami)


Intel 官方发布的多媒体解决方案

Yet Another Media Infrastructure.
It is YUMMY to your video experience on Linux like platform.
Yami is core building block for media solution. it parses video stream
and decodes them leverage hardware acceleration.
Copyright © 2010, The WebM Project authors.
Copyright © 2011-2018 Intel Corporation
Copyright © 2015-2016 Alibaba

MPEG-2, VC-1, WMV 9 (WMV3), H.264, HEVC (H.265), VP8, VP9, and JPEG ad-hoc decoders
H.264, HEVC (H.265), VP8, VP9, and JPEG ad-hoc encoders
Sharpening, Denoise, Deinterlace, Hue, Saturation, Brightness, Contrast, CSC and scaling

Hardware requirements

Intel Sandybridge, Ivybridge, Haswell, Broadwell, Skylake, Kaby Lake (HD Graphics)
Intel Bay Trail, Braswell, Apollo Lake, Gemini Lake

// 安装 libyami
git clone https://github.com/intel/libyami.git
./autogen.sh
make -j4

// 安装 libyami utils
git clone https://github.com/intel/libyami-utils
./autogen.sh
make -j4

// 测试 (需要X11)
libyami-utils/examples/simpleplayer test.h264
// 克隆 Intel 定制 FFmpeg
git clone https://github.com/intel/ffmpeg_libyami
// 编译 FFmpeg ...
./configure --arch=x86_64 --disable-yasm --enable-vaapi --enable-libmfx --enable-libyami --enable-version3
// 测试 FFmpeg
ffmpeg -hwaccel vaapi -i kaoya.mp4 -vcodec libyami_h264 output.yuv
// Ubuntu 20.04 新系统内核及内置软件已经符合要求直接安装即可 ...

libva-dev - Video Acceleration (VA) API for Linux -- development files
libva-drm2 - Video Acceleration (VA) API for Linux -- DRM runtime
libva-glx2 - Video Acceleration (VA) API for Linux -- GLX runtime
libva-wayland2 - Video Acceleration (VA) API for Linux -- Wayland runtime
libva-x11-2 - Video Acceleration (VA) API for Linux -- X11 runtime
libva2 - Video Acceleration (VA) API for Linux -- runtime
vainfo - Video Acceleration (VA) API for Linux -- info program

i965-va-driver - VAAPI driver for Intel G45 & HD Graphics family
libgles2-mesa-dev - transitional dummy package
libegl1-mesa-dev - free implementation of the EGL API -- development files

libyami-dev - high-level abstraction for Video Acceleration (VA) API (development files)
libyami-utils - high-level abstraction for Video Acceleration (VA) API (utils)
libyami1 - high-level abstraction for Video Acceleration (VA) API (shared library)
// 在 Intel J1900 与 J3160 下 libyami 解码性能 ...
// Intel J1900 - H264 4K - yamidecode > FPS 40
// Intel J3160 - H264 4K - yamidecode > FPS 60

以上是关于FFmpeg之Intel多媒体解决方案(libyami)的主要内容,如果未能解决你的问题,请参考以下文章

OneVPL与FFmpeg/GStreamer硬件编解码器

100ask_imx6ull视频监控项目-流媒体方案的实现之ffmpeg

安防摄像头网页无插件直播方案流媒体服务器EasyNVR之AI_Filter功能无法使用自编的ffmpeg库问题解决

Linux之源码安装FFmpeg

OneVPL与FFmpeg/GStreamer硬件编解码器

FFmpeg之ffplay源码简要分析