Question: getting raw data out of RGA filters #181

Closed
opened 2025-12-23 10:35:19 +01:00 by backuprepo · 3 comments
Owner

Originally created by @oryjkov on GitHub (Jun 13, 2025).

I would like to set up an ffmpeg pipeline that uses RGA filters to scale and crop a video and produce 2 outputs.

  1. hevc_rkmpp -> mp4 file. This works just fine.
  2. vpp_rkrga (format bgr24) -> raw file output. This one fails as it seems that vpp_rkrga has the data in hw buffer and I don't know how to get it out of it.

I managed to make it work with vpp_rkrga -> mjpeg_encoder -> my program -> jpeg decoder.

This works fine, but it seems silly to have JPEG in the middle. Anyway to avoid it?

Originally created by @oryjkov on GitHub (Jun 13, 2025). I would like to set up an ffmpeg pipeline that uses RGA filters to scale and crop a video and produce 2 outputs. 1. `hevc_rkmpp -> mp4 file`. This works just fine. 2. `vpp_rkrga (format bgr24) -> raw file output`. This one fails as it seems that vpp_rkrga has the data in hw buffer and I don't know how to get it out of it. I managed to make it work with `vpp_rkrga -> mjpeg_encoder -> my program -> jpeg decoder`. This works fine, but it seems silly to have JPEG in the middle. Anyway to avoid it?
backuprepo 2025-12-23 10:35:19 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

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

... -vf vpp_rkrga=format=bgr24,hwmap=mode=read,format=bgr24 -f rawvideo /path/to/bgr24.rgb
@nyanmisaka commented on GitHub (Jun 13, 2025): ```console ... -vf vpp_rkrga=format=bgr24,hwmap=mode=read,format=bgr24 -f rawvideo /path/to/bgr24.rgb ```
Author
Owner

@oryjkov commented on GitHub (Jun 13, 2025):

oh wow, thank you, I'll give this a try

@oryjkov commented on GitHub (Jun 13, 2025): oh wow, thank you, I'll give this a try
Author
Owner

@oryjkov commented on GitHub (Jun 13, 2025):

Wonderful, this works. Thanks a lot, appreciate the help.

@oryjkov commented on GitHub (Jun 13, 2025): Wonderful, this works. Thanks a lot, appreciate the help.
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#181
No description provided.