没有合适的资源?快使用搜索试试~ 我知道了~
Using-FFmpeg-with-NVIDIA-GPU-Hardware-Acceleration.pdf
需积分: 5 0 下载量 174 浏览量
2024-08-14
09:12:25
上传
评论
收藏 261KB PDF 举报
温馨提示
ffmpeg
资源推荐
资源详情
资源评论
vDA-08430-001_v02 | October2021
Using FFmpeg with NVIDIA GPU
Hardware Acceleration
User Guide
Using FFmpeg with NVIDIA GPU Hardware Acceleration vDA-08430-001_v02|ii
Table of Contents
Chapter1.Introduction........................................................................................................ 1
Chapter2.Setup................................................................................................................... 2
2.1.Hardware Setup........................................................................................................................ 2
2.2.Software Setup..........................................................................................................................2
2.2.1.Prerequisites.......................................................................................................................2
2.2.2.Compiling FFmpeg............................................................................................................. 2
2.2.2.1.Compiling for Linux..................................................................................................... 3
2.2.2.2.Compiling for Windows............................................................................................... 3
2.2.2.3.Compiling for Windows Subsystem for Linux (WSL)..................................................4
2.2.2.4.Commonly faced issues and tips to resolve them.....................................................4
Chapter3.Basic Testing...................................................................................................... 6
3.1.1:1 HWACCEL Transcode without Scaling...............................................................................6
3.2.1:1 HWACCEL Transcode with Scaling....................................................................................6
3.3.1:N HWACCEL Transcode with Scaling...................................................................................7
3.4.1:N HWACCEL encode from YUV or RAW Data...................................................................... 7
3.5.Multiple 1:N HWACCEL Transcode with Scaling.................................................................... 7
3.6.Multiple 1:N Transcode with Scaling (SW Decode->HW Scaling->HW Encode).................... 8
Chapter4.Quality Testing....................................................................................................9
4.1.Video Encoding..........................................................................................................................9
4.2.Video Decoding..........................................................................................................................9
4.3.Command Line for Latency-Tolerant High-Quality Transcoding..........................................10
4.4.Command Line for Low Latency Transcoding...................................................................... 10
Chapter5.Advanced Quality Settings................................................................................12
5.1.Lookahead............................................................................................................................... 12
5.2.Adaptive Quantization (AQ)..................................................................................................... 12
Chapter6.Performance Evaluation and Optimization...................................................... 14
6.1.Measuring Aggregate Performance.......................................................................................14
6.2.Settings for Reduced Initialization Time................................................................................14
Using FFmpeg with NVIDIA GPU Hardware Acceleration vDA-08430-001_v02|1
Chapter1. Introduction
All NVIDIA
®
GPUs starting with Kepler generation support fully-accelerated hardware video
encoding and decoding. The hardware encoder and hardware decoder are referred to as NVENC
and NVDEC, respectively, in the rest of the document.
The hardware capabilities of NVENC and NVDEC are exposed in the NVIDIA Video Codec SDK
through APIs (herein referred to as NVENCODE API and NVDECODE API), by which the user can
access the hardware acceleration abilities of NVENC and NVDEC.
FFmpeg is the most popular multimedia transcoding software and is used extensively for video
and audio transcoding. NVENC and NVDEC can be effectively used with FFmpeg to significantly
speed up video decoding, encoding, and end-to-end transcoding.
This document explains ways to accelerate video encoding, decoding and end-to-end
transcoding on NVIDIA GPUs through FFmpeg which uses APIs exposed in the NVIDIA Video
Codec SDK.
Using FFmpeg with NVIDIA GPU Hardware Acceleration vDA-08430-001_v02|2
Chapter2. Setup
2.1. Hardware Setup
FFmpeg with NVIDIA GPU acceleration requires a system with Linux or Windows operating
system and a supported NVIDIA GPU.
For a list of supported GPUs, refer to https://developer.nvidia.com/nvidia-video-codec-sdk .
For the rest of this document, it is assumed that the system being used has a GPU which has
both NVENC and NVDEC.
2.2. Software Setup
2.2.1. Prerequisites
FFmpeg supports both Windows and Linux. FFmpeg has been compiled and tested with
Microsoft Visual Studio 2013 SP2 and above (Windows), MinGW (msys2-x86_64-20161025)
(Windows) and gcc 4.8 and above (Linux) compilers.
FFmpeg requires separate git repository nvcodec-headers for NV-accelerated ffmpeg build.
To compile FFmpeg, the CUDA toolkit must be installed on the system, though the CUDA toolkit
is not needed to run the FFmpeg compiled binary.
Before using FFmpeg, it is recommended to refer to the FFmpeg documentation, note the
version of the Video Codec SDK it uses, and ensure that the minimum driver required for that
version of the Video Codec SDK is installed.
2.2.2. Compiling FFmpeg
FFmpeg is an open-source project. Download the FFmpeg source code repository and compile
it using an appropriate compiler.
More Information on building FFmpeg can be found at: https://trac.ffmpeg.org/wiki/
CompilationGuide
剩余17页未读,继续阅读
资源评论
July工作室
- 粉丝: 1707
- 资源: 534
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功