Git Product home page Git Product logo

Comments (4)

h4tr3d avatar h4tr3d commented on June 3, 2024

To increase/decrease playback speed you just must decrease/increase sleep time between readed frames. So, you can use any project for it. FFmpeg itself, AvCpp and so on.

See: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video this solution uses filters. Currently filters support in AvCpp not so much pretty.

from avcpp.

w136111526 avatar w136111526 commented on June 3, 2024

Hello, I 've seen the ffmpeg document you recommended for me, but I still don't know how to use the filter in my C++ code. Do you mean I must create a filter and add it to the video stream,or add it to the video decoded?

from avcpp.

h4tr3d avatar h4tr3d commented on June 3, 2024

Filters works with uncompressed frames. Pipeline should look like:
input_format -> decored ->[filter graph sink] filter graph [filter graph src]->encoder->output_format

In current implementation I suggest to use native FFmpeg API to create and manipulate with Filter Graphs.

from avcpp.

h4tr3d avatar h4tr3d commented on June 3, 2024

Also, you can try just play with PTS in frames. If you increase PTS distance, frames will be shown slowly. If you decrease PTS distance, frames will be shown quickly.

from avcpp.

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.