Giter VIP home page Giter VIP logo

ffio's Introduction

ffio's People

Contributors

dongrixinyu avatar koisi-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ffio's Issues

Support CUDA?

Hi, thank you so much for your project
Does this library support use cuda?

Do we really need setup.py.bak?

BTW:
It seems that some codes of pyFFmpeg/main.c are the same with pyFFmpeg/extractFrame.c, so I am curious about what is the usage of main.c?

[Performance Insights] CPU vs. GPU also utilization of shm

I'm not too familiar with the details of video processing, but I'd like to share some performance observations from my practice.

CPU Usage for Decoding

My test involves pulling a single original video stream, doing some intermediate processing (consuming about 50% of CPU), then re-encoding and pushing it to an RTMP server(about 12% of CPU, using GPU encoding). I then watch the final processed live stream.

Here's my setup:

  • CPU: Intel Xeon Gold 5118 2.30GHz x8
  • GPU: Nvidia Tesla V100 32GB
  • Origin Video: 1080p 24fps, 4Mbps h264-baseline

The CPU usage below are not exact measurements, they are merely my intuitive perception from observing htop.

Decoding Scenario Min Avg Max
Single stream with CPU 18% 22% 30%
Single stream with GPU 20% 23% 25%

When it comes to 6-stream parallel decoding:

  • With GPU: CPU usage stabilizes at nearly 100% across all 8 cores, and the resulting video stream is almost smooth.
  • With CPU: The total CPU usage fluctuates between 40% and 80%, but the video is more stuttered compared to using GPU.

In my case, I might opt for the GPU solution as it appears more stable, although it seems not so friendly to energy efficiency.

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.