Opened 5 years ago

Closed 5 years ago

Last modified 5 years 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 by Hendrik, 5 years ago

Resolution: invalid
Status: newclosed

Use av_hwframe_transfer_data.

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

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: avcodecundetermined
Keywords: decodec with rkmpp removed
Priority: importantnormal

in reply to:  1 comment:3 by gtom, 5 years ago

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.