opkfinance.blogg.se

Ffmpeg h264 hardware encoding
Ffmpeg h264 hardware encoding




The H.265 or HEVC (High Efficiency Video Coding) standard was first published in 2013 and has better compression at a given level of quality than H.264, but hardware accelerated decoding is not as widely deployed and patents and licensing restrictions have prevented some companies from adopting it in their software. Devices including mobile phones, tablets, personal computers, smart TVs, and others generally have support for hardware accelerated H.264 decoding. The H.264 or AVC (Advanced Video Coding) standard was first published in 2004 and enjoys broad compatibility. We tested encoding the target videos into H.264 and H.265 using the x264 and x265 open source libraries. Each different target resolution can be used to support different device and network capabilities at their native resolution: 1080p, 720p, 480p, 360p, and 160p.įigure 1: Encoding multiple streams in parallel on a single instance.

ffmpeg h264 hardware encoding

For the following benchmarks we scale down the incoming 4k stream and encode multiple target resolutions for each input. Both of these cases require optimizing performance for concurrent processing. Another popular use case is transcoding a single input stream to multiple output formats optimized for different viewing resolutions. This optimizes for the best throughput and price. One of the common use cases for video in the cloud is batch transcoding multiple videos concurrently on the same instance. You can get these improvements on GitHub from a build in the development branch of FFmpeg, or use FFmpeg version 5.2 when it is released. AWS engineers and the open source community have worked on video encoding tools, such as FFmpeg and the codec libraries, to further optimize for Graviton. Video processing and transcoding has been growing in importance, and Graviton is well suited for this workload. Graviton3 features an additional 25% improved performance over Graviton2. When the AWS Graviton2 instances were introduced, they provided 40% better price performance for many workloads, compared to similar x86 Amazon EC2 instances. This makes C7g the fastest compute optimized cloud instance that is the most cost effective and the most energy efficient for video encoding.

ffmpeg h264 hardware encoding

Encoding video on C7g costs measured 29% less for H.264 and 18% less for H.265 compared to C6i, the latest x86-based Amazon EC2 instance (both using on-demand instance pricing).

ffmpeg h264 hardware encoding

Measured on Amazon Elastic Compute Cloud (Amazon EC2) C7g instances, for offline video encoding we saw a 63% performance boost for H.264 and 60% for H.265. Recent FFmpeg improvements, contributed by AWS and others in the open source community, have increased the performance of fully loaded video workloads on Graviton processors. If you have not tried video encoding on Graviton lately, now is the time to give it another look.






Ffmpeg h264 hardware encoding