How to use scale_krga in C++ #81

Closed
opened 2025-12-23 10:32:31 +01:00 by backuprepo · 1 comment
Owner

Originally created by @jinjie412 on GitHub (Aug 1, 2024).

./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 \ -vf hwupload,scale_rkrga=w=1280:h=720:format=nv12 -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4

How to implement this feature using C++,

Originally created by @jinjie412 on GitHub (Aug 1, 2024). `./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 \ -vf hwupload,scale_rkrga=w=1280:h=720:format=nv12 -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4` How to implement this feature using C++,
backuprepo 2025-12-23 10:32:31 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Aug 1, 2024):

This is not an easy task so I can't provide an example. You can refer to this and write your own.

https://github.com/search?q=avfilter_get_by_name%28%22scale_vaapi%22%29+avfilter_get_by_name%28%22scale_cuda%22%29&type=code

@nyanmisaka commented on GitHub (Aug 1, 2024): This is not an easy task so I can't provide an example. You can refer to this and write your own. https://github.com/search?q=avfilter_get_by_name%28%22scale_vaapi%22%29+avfilter_get_by_name%28%22scale_cuda%22%29&type=code
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#81
No description provided.