Opened 9 days ago

Closed 9 days ago

Last modified 8 days ago

#7534 closed defect (invalid)

I used ffmpeg 4.02 + rockchip_mpp +libdrm to decodec H264 and get a AVFrame ,this format is DRM_PRIME,how do i convert to a cv::mat or bgr or yuv420p?

Reported by: gtom Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I used ffmpeg 4.02 + rockchip_mpp +libdrm to decodec H264 and get a AVFrame ,this format is DRM_PRIME,how do i convert to a cv::mat or bgr or yuv420p?

I used swscontext to convert, but it not support DRM_PRIME format.
how should i do??

Change History (3)

comment:1 follow-up: Changed 9 days ago by heleppkes

  • Resolution set to invalid
  • Status changed from new to closed

Use av_hwframe_transfer_data.

Do note that this is an issue tracker, not a support forum.

comment:2 Changed 9 days ago by cehoyos

  • Component changed from avcodec to undetermined
  • Keywords decodec with rkmpp removed
  • Priority changed from important to normal

comment:3 in reply to: ↑ 1 Changed 8 days ago by gtom

Thanks for you.but ,when i used this function,my cpu form 20% increase to 50%.Is this a high occupancy operation?
Replying to heleppkes:

Use av_hwframe_transfer_data.

Do note that this is an issue tracker, not a support forum.

Note: See TracTickets for help on using tickets.