No description
Find a file
nyanmisaka 06da171770 README: update for ffmpeg-rockchip
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-11-07 22:07:56 +08:00
compat compat: Fix the fallback definition of stdc_trailing_zeros 2024-09-24 14:00:27 +03:00
doc doc/examples/vaapi_encode: fix invalid check on fwrite 2025-09-14 00:31:17 +02:00
ffbuild riscv: add Zvbb vector bit manipulation extension 2024-05-11 11:38:49 +03:00
fftools fftools/ffmpeg: fix gracefully shutdown 2025-09-14 00:31:17 +02:00
libavcodec lavc/rkmppenc: add RKMPP H264, HEVC and MJPEG encoders 2025-11-07 22:07:55 +08:00
libavdevice v4l2: use always channel 0 if driver does not return it. Always ignore device select / set errors 2025-11-07 22:07:56 +08:00
libavfilter lavf/rkrga: add RKRGA scale, vpp and overlay filters 2025-11-07 22:07:54 +08:00
libavformat avformat/demux: pass new extradata to the parser 2025-10-28 11:45:26 -03:00
libavutil lavu: add RKMPP hwcontext 2025-11-07 22:07:54 +08:00
libpostproc postproc/postprocess_template: fix dering with a 16x16 image 2025-06-11 17:29:46 +02:00
libswresample arm: Consistently use proper interworking function returns 2024-10-10 23:56:10 +03:00
libswscale lsws: add NV15 and NV20 formats support 2025-11-07 22:07:53 +08:00
presets
tests lsws: add NV15 and NV20 formats support 2025-11-07 22:07:53 +08:00
tools tools/target_dec_fuzzer: Adjust threshold for EACMV 2025-01-03 18:28:46 +01:00
.gitattributes lavf/assenc: normalize line endings to \n 2024-02-11 17:01:07 -08:00
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog Changelog: update 2025-09-14 00:32:13 +02:00
configure lavc/rkmppenc: add RKMPP H264, HEVC and MJPEG encoders 2025-11-07 22:07:55 +08:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
INSTALL.md INSTALL: explain the circular dependency issue and solution 2025-01-03 18:28:37 +01:00
LICENSE.md
MAINTAINERS MAINTAINERS: Add entry for samples-request 2025-06-11 17:29:48 +02:00
Makefile add tools/target_swr_fuzzer 2024-08-08 15:26:52 +02:00
README.md README: update for ffmpeg-rockchip 2025-11-07 22:07:56 +08:00
RELEASE Update for 7.1.2 2025-09-09 01:43:59 +02:00
RELEASE_NOTES RELEASE_NOTES: Based on the version from 5.1 2024-09-29 18:47:04 +02:00

ffmpeg-rockchip

This project aims to provide full hardware transcoding pipeline in FFmpeg CLI for Rockchip platforms that support MPP (Media Process Platform) and RGA (2D Raster Graphic Acceleration). This includes hardware decoders, encoders and filters. A typical target platform is RK3588/3588s based devices.

Hightlights

  • MPP decoders support up to 8K 10-bit H.264, HEVC, VP9 and AV1 decoding
  • MPP decoders support producing AFBC (ARM Frame Buffer Compression) image
  • MPP decoders support de-interlace using IEP (Image Enhancement Processor)
  • MPP decoders support allocator half-internal and pure-external modes
  • MPP encoders support up to 8K H.264 and HEVC encoding
  • MPP encoders support async encoding, AKA frame-parallel
  • MPP encoders support consuming AFBC image
  • RGA filters support image scaling and pixel format conversion
  • RGA filters support image cropping
  • RGA filters support image transposing
  • RGA filters support blending two images
  • RGA filters support async operation
  • RGA filters support producing and consuming AFBC image
  • Zero-copy DMA in above stages

How to use

The documentation is available on the Wiki page of this project.

Codecs and filters

Decoders/Hwaccel

 V..... av1_rkmpp            Rockchip MPP (Media Process Platform) AV1 decoder (codec av1)
 V..... h263_rkmpp           Rockchip MPP (Media Process Platform) H263 decoder (codec h263)
 V..... h264_rkmpp           Rockchip MPP (Media Process Platform) H264 decoder (codec h264)
 V..... hevc_rkmpp           Rockchip MPP (Media Process Platform) HEVC decoder (codec hevc)
 V..... mjpeg_rkmpp          Rockchip MPP (Media Process Platform) MJPEG decoder (codec mjpeg)
 V..... mpeg1_rkmpp          Rockchip MPP (Media Process Platform) MPEG1VIDEO decoder (codec mpeg1video)
 V..... mpeg2_rkmpp          Rockchip MPP (Media Process Platform) MPEG2VIDEO decoder (codec mpeg2video)
 V..... mpeg4_rkmpp          Rockchip MPP (Media Process Platform) MPEG4 decoder (codec mpeg4)
 V..... vp8_rkmpp            Rockchip MPP (Media Process Platform) VP8 decoder (codec vp8)
 V..... vp9_rkmpp            Rockchip MPP (Media Process Platform) VP9 decoder (codec vp9)

Encoders

 V..... h264_rkmpp           Rockchip MPP (Media Process Platform) H264 encoder (codec h264)
 V..... hevc_rkmpp           Rockchip MPP (Media Process Platform) HEVC encoder (codec hevc)
 V..... mjpeg_rkmpp          Rockchip MPP (Media Process Platform) MJPEG encoder (codec mjpeg)

Filters

 ... overlay_rkrga     VV->V      Rockchip RGA (2D Raster Graphic Acceleration) video compositor
 ... scale_rkrga       V->V       Rockchip RGA (2D Raster Graphic Acceleration) video resizer and format converter
 ... vpp_rkrga         V->V       Rockchip RGA (2D Raster Graphic Acceleration) video post-process (scale/crop/transpose)

Important

  • Rockchip BSP/vendor kernel is necessary, 5.10 and 6.1 are two tested versions.
  • For the supported maximum resolution and FPS you can refer to the datasheet or TRM.
  • User MUST be granted permission to access these device files.
# DRM allocator
/dev/dri

# DMA_HEAP allocator
/dev/dma_heap

# RGA filters
/dev/rga

# MPP codecs
/dev/mpp_service

# Optional, for compatibility with older kernels and socs
/dev/iep
/dev/mpp-service
/dev/vpu_service
/dev/vpu-service
/dev/hevc_service
/dev/hevc-service
/dev/rkvdec
/dev/rkvenc
/dev/vepu
/dev/h265e

Todo

  • Support MPP VP8 video encoder
  • ...

Acknowledgments

@hbiyik @HermanChen @rigaya


FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides means to alter decoded audio and video through a directed graph of connected filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.