Filter overlay_rkrga doesn't output background. #154

Closed
opened 2025-12-23 10:34:43 +01:00 by backuprepo · 2 comments
Owner

Originally created by @liangtaikonaut on GitHub (Mar 13, 2025).

Use the demo command:

./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i color=c=cyan:s=1920x1080,format=nv12 -f lavfi -i testsrc2=s=960x540,format=bgra
-filter_complex "[0:v]hwupload[main];[1:v]hwupload[overlay];[main][overlay]overlay_rkrga=eof_action=pass:repeatlast=0:format=nv12:x=(W-w)/2:y=(H-h)/2"
-c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4

then the output is:

Image

Originally created by @liangtaikonaut on GitHub (Mar 13, 2025). Use the demo command: ./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i color=c=cyan:s=1920x1080,format=nv12 -f lavfi -i testsrc2=s=960x540,format=bgra \ -filter_complex "[0:v]hwupload[main];[1:v]hwupload[overlay];[main][overlay]overlay_rkrga=eof_action=pass:repeatlast=0:format=nv12:x=(W-w)/2:y=(H-h)/2" \ -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4 then the output is: ![Image](https://github.com/user-attachments/assets/28802687-1313-4d8b-8ad6-4306a709208b)
backuprepo 2025-12-23 10:34:43 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Mar 13, 2025):

It works fine on my end on rk3588 and rk3576.
Image

Tell rockchip to fix their kernel driver or patch it youself: 7c3229404a

@nyanmisaka commented on GitHub (Mar 13, 2025): It works fine on my end on rk3588 and rk3576. ![Image](https://github.com/user-attachments/assets/af359339-5c86-454b-9187-753fe1420a4a) Tell rockchip to fix their kernel driver or patch it youself: https://github.com/armbian/linux-rockchip/commit/7c3229404ab2d650254af187f0070985871faff8
Author
Owner

@liangtaikonaut commented on GitHub (Mar 13, 2025):

Got it, thanks.

@liangtaikonaut commented on GitHub (Mar 13, 2025): Got it, thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#154
No description provided.