Comments (4)
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.
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.
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.
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)
- Create aggregate headers roughly corresponding to FFmpeg's libraries
- `av::Rational`: define other relational operators
- Broken with FFmpeg 5.1 HOT 2
- CMake: INTERFACE_LIBRARY targets may only have whitelisted properties. HOT 2
- FFmpeg 5.1: fix channel_layout API HOT 1
- Is this project still alive? HOT 1
- Spelling Mistake in Content - "insormation" should be "information" in README HOT 1
- Broken Link in CONTRIBUTING.md - 404 Error
- `api2-decode-encode-video.cpp` example and correct stream tear-down sequence HOT 3
- Decoded frames have invalid PTS
- Copy a stream without transcoding HOT 3
- Take into account the filter size when calculating the delay HOT 1
- Memory leak (duplicate initialization) of all `CodecContext2` derived classes
- example api2-decode fail HOT 9
- Error when using code from api2-remux.cpp sample. HOT 9
- problem: not with libpostproc?
- Why do you use new Codec() object in examples? HOT 2
- Debugging the library HOT 1
- Error compiling catch on Ubuntu 21 gcc 11.2.0 HOT 2
- Support for gpu-accelerated decoding? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avcpp.