'buffer_hwupload': Invalid argument #116

Closed
opened 2025-12-23 10:33:21 +01:00 by backuprepo · 4 comments
Owner

Originally created by @tickmoo on GitHub (Nov 18, 2024).

下面是我初始化filter的部分代码,看起来是没问题的,device_ref 也有设置,为什么最终跑起来时候,会爆这个错误?
微信图片_20241118100254
微信图片_20241118100306

以下是错误代码:
sadasd

Originally created by @tickmoo on GitHub (Nov 18, 2024). 下面是我初始化filter的部分代码,看起来是没问题的,device_ref 也有设置,为什么最终跑起来时候,会爆这个错误? ![微信图片_20241118100254](https://github.com/user-attachments/assets/792fc362-0fad-459e-a880-b82993d93aa9) ![微信图片_20241118100306](https://github.com/user-attachments/assets/dd9782e8-1f8c-47bb-af5a-8e232197c272) 以下是错误代码: ![sadasd](https://github.com/user-attachments/assets/fac54053-3a52-42b6-87a6-11ea513d103c)
backuprepo 2025-12-23 10:33:21 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Nov 18, 2024):

It should be the lack of setting the hardware context for the filter.

Search hw or filter_hw_device or hw_device_for_filter in these codes:

https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_hw.c

https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_filter.c

@nyanmisaka commented on GitHub (Nov 18, 2024): It should be the lack of setting the hardware context for the filter. Search `hw` or `filter_hw_device` or `hw_device_for_filter` in these codes: https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_hw.c https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_filter.c
Author
Owner

@tickmoo commented on GitHub (Nov 18, 2024):

It should be the lack of setting the hardware context for the filter.

Search hw or filter_hw_device or hw_device_for_filter in these codes:

https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_hw.c

https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_filter.c

不使用hwupload 过滤器,仅仅使用vpp_rkrga过滤器可以实现crop和yuv->rgb24的格式转换吗?

@tickmoo commented on GitHub (Nov 18, 2024): > It should be the lack of setting the hardware context for the filter. > > Search `hw` or `filter_hw_device` or `hw_device_for_filter` in these codes: > > https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_hw.c > > https://github.com/FFmpeg/FFmpeg/blob/master/fftools/ffmpeg_filter.c 不使用hwupload 过滤器,仅仅使用vpp_rkrga过滤器可以实现crop和yuv->rgb24的格式转换吗?
Author
Owner

@nyanmisaka commented on GitHub (Nov 18, 2024):

Nope. hwupload is a must have filter for memory input.

memory ->(hwupload)-> hardware DMA-BUF -> RGA -> ...

@nyanmisaka commented on GitHub (Nov 18, 2024): Nope. `hwupload` is a must have filter for memory input. memory ->(hwupload)-> hardware DMA-BUF -> RGA -> ...
Author
Owner

@JianJingGao commented on GitHub (Dec 3, 2024):

我跟你一样的情况,你后来怎么弄的?

@JianJingGao commented on GitHub (Dec 3, 2024): 我跟你一样的情况,你后来怎么弄的?
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#116
No description provided.