Giter Site home page Giter Site logo

Comments (6)

nyanmisaka avatar nyanmisaka commented on August 15, 2024

Bear in mind that memcpy and Resize time should not be counted in HW decoding time.

In particular, av_hwframe_transfer_data() already includes memcpy for AV_PIX_FMT_DRM_PRIME => AV_PIX_FMT_NV12 conversion.

Therefore your code contains redundant memcpy.

from ffmpeg-rockchip.

daoan1412 avatar daoan1412 commented on August 15, 2024

I have a similar problem, even without using memcpy and Resize.

from ffmpeg-rockchip.

MapleAura avatar MapleAura commented on August 15, 2024

I've counted the cost on several interfaces. ‘av_read_frame’ cost almost 20ms per frame. I send data three times just receive decoded data once sussessfully. The log message indicates that the queue is full. In other words, the result can only be returned once if the data is read three times and it takes almost 60 ms. According to the information I have observed from the log, it seems that the decoding time is larger than reading time. But from the experiments done by others, if I do not carry out the copy operation (just export drm_prime), the decoding time is only a few ms.
image

from ffmpeg-rockchip.

nyanmisaka avatar nyanmisaka commented on August 15, 2024

@MapleAura

I did find an issue regarding the high latency. Please try this patch and see if it helps.

from ffmpeg-rockchip.

MapleAura avatar MapleAura commented on August 15, 2024

That's great. It works. :)

from ffmpeg-rockchip.

nyanmisaka avatar nyanmisaka commented on August 15, 2024

Closed by e753665

from ffmpeg-rockchip.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.