Giter Site home page Giter Site logo

Comments (8)

zgabi avatar zgabi commented on May 20, 2024 2

You should check ffmediaelement: https://github.com/unosquare/ffmediaelement
It is quite good, however not maintained anymore.. it is using ffmeg 4.x

And you should check your code with memory profiler. You should not allocate any object during the the play (after initialization of course)
And you should avoid copying the decoded frame's pixel data. (so decode directly to the required destination memory area)

I'm decoding several fullHD (or bigger) H.265 streams without any noticable cpu usage.

from ffmpeg.autogen.

Ruslan-B avatar Ruslan-B commented on May 20, 2024

Closing it now, they are even example does it.

from ffmpeg.autogen.

jcyuan avatar jcyuan commented on May 20, 2024

ok, sorry,

actually i have implemented everything already: demux, decoding, rendering are seperated into different thread.
but just the performance is not very good, it takes some extra CPU, so i wanna know some suggestions.

from ffmpeg.autogen.

jcyuan avatar jcyuan commented on May 20, 2024

You should check ffmediaelement: https://github.com/unosquare/ffmediaelement It is quite good, however not maintained anymore.. it is using ffmeg 4.x

And you should check your code with memory profiler. You should not allocate any object during the the play (after initialization of course) And you should avoid copying the decoded frame's pixel data. (so decode directly to the required destination memory area)

I'm decoding several fullHD (or bigger) H.265 streams without any noticable cpu usage.

actually i guess i can't avoid to copy pixels from ffmpeg, because i need to upload the frame pixels decoded by ffmpeg to OpenGL, i used PBO to upload.
not sure if there are some ways out there to map ffmpeg frame pixels to OpenGL FBO/Texture directly in the back without dealing with CPU?
anyway thanks for your suggestion, i'll dig into this project to find how it renders.

from ffmpeg.autogen.

Ruslan-B avatar Ruslan-B commented on May 20, 2024

I think the better you describe the problem and why you need solve one is a key - we might but cannot guess 100% here, as fairly cheap memory to memory copy is not would you can expect in real life as you talking about GPU, has nothing to do with this project rather than expectations.

from ffmpeg.autogen.

jcyuan avatar jcyuan commented on May 20, 2024

I think the better you describe the problem and why you need solve one is a key - we might but cannot guess 100% here, as fairly cheap memory to memory copy is not would you can expect in real life as you talking about GPU, has nothing to do with this project rather than expectations.

ok,~ thanks anyway! 😉

from ffmpeg.autogen.

afunc233 avatar afunc233 commented on May 20, 2024

@jcyuan https://github.com/SuRGeoNix/Flyleaf look this,DirectX instead of OpenGL ,I am also interested in opengl

from ffmpeg.autogen.

jcyuan avatar jcyuan commented on May 20, 2024

@jcyuan https://github.com/SuRGeoNix/Flyleaf look this,DirectX instead of OpenGL ,I am also interested in opengl

thanks! ❤

from ffmpeg.autogen.

Related Issues (20)

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.