mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
scale_rga report "No hw context provided on input" #137
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cnjswwxbtcc on GitHub (Dec 28, 2024).
I want to use the 'scale_rga' filter in my cpp code, which is used to convert the image size; However, the following error message is output.
I tryed
ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -i input.mp4 -an -sn -vf scale_rkrga=w=720:h=480:format=yuv420p,hwdownload,format=yuv420p -f rawvideo - > /dev/null, and it works well;error message is caused by, sorry, i have no idea about this
hw_frames_ctx, and how it should be initialized:libavfilter/vf_vpp_rkrga.c
The final part is my code flow:
@nyanmisaka commented on GitHub (Dec 28, 2024):
You can refer to https://github.com/nyanmisaka/ffmpeg-rockchip/issues/141
Closing as it's not an issue.
@qaz624824554 commented on GitHub (Dec 31, 2024):
@cnjswwxbtcc 老哥你解决了吗
@qaz624824554 commented on GitHub (Jan 1, 2025):
硬啃1天ffmpeg源码后,终于解决了这个问题😭
@xqhua commented on GitHub (Jan 3, 2025):
@cnjswwxbtcc Bro, did you solve the problem? Can you share some details about the solution? Please.
@cnjswwxbtcc commented on GitHub (Jan 9, 2025):
可以分享下么, 我还没来得及搞这个, 最近有点其他的事忙
@cnjswwxbtcc commented on GitHub (Jan 10, 2025):
Hi, Bro,
Maybe the filter can only init after
av_read_frame(packet)Refer to
https://github.com/vivictorg/vivictpp,and the following code will call this function:
Below is the call stack of command
ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -i input.mp4 -an -sn -vf scale_rkrga=w=720:h=480:format=yuv420p,hwdownload,format=yuv420p -f rawvideo - > /dev/null@qaz624824554 commented on GitHub (Jan 13, 2025):
我写了篇博客,可以参考下
@cnjswwxbtcc commented on GitHub (Feb 27, 2025):
我参考了vivictpp, 它的实现是从frmae里面获取
hw_frames_ctx, 我不太明白为什么可以这么做, 每个frame的hw_frmaes_ctx我打印出来地址并不相同, 为何不需要重复的初始化这个buffersrc?