nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
517 stars 76 forks source link

'buffer_hwupload': Invalid argument #130

Open tickmoo opened 3 hours ago

tickmoo commented 3 hours ago

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

以下是错误代码: sadasd

nyanmisaka commented 2 hours ago

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

tickmoo commented 36 minutes ago

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的格式转换吗?

nyanmisaka commented 24 minutes ago

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

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