Comments (4)
I tested the scene detection with a 4k hdr source and the same but downscaled to 720, the speed was 1.33x vs 1.32x. I knew the bottleneck is the cpu decoding speed.
A possibility is to use the gpu to decode, but in my experience this is unreliable, it fails with some encodes and the gpu variations decode different formats.
But, I still can speed up the detection using more than one process, on my pc the decoding use 25% or less cpu, so at least we can use three processes. I'll do it when I have time because I need to change the worst code in the program xd
from av1ador.
Just for context I ran a quick test on my system (Ryzen 5950x w/ 64GB RAM) and this is how long it took to detect the scenes:
Video 1 (4K, 2h12m): 15min
Video 2 (1080p, 1h47m): 4min
from av1ador.
Haha, ok mate, no problem. Thanks a lot! Any way I can help? I can try to investigate the command line for ffmpeg to add more threads if you point me to the place in the code where it's used.
from av1ador.
Haha, ok mate, no problem. Thanks a lot! Any way I can help? I can try to investigate the command line for ffmpeg to add more threads if you point me to the place in the code where it's used.
Sure but I think ffmpeg doesn't have that option.
I added multhreading to the scene detection when the video is large, with a maximun 3 ffmpeg processes, check if this helps
from av1ador.
Related Issues (20)
- crash on queuing file (version 1.0.11) HOT 10
- Feature request: Subtitle burn in HOT 4
- Av1ador failure on video concatenation. HOT 1
- Encoders? HOT 6
- Grain Synth reset issue HOT 1
- (potentially?) VFR used for chunks leading to sync issues with SSIMULACRA 2+ffmetric and various duration issues when concat as CFR
- An apostrophe in the filename prevents videos from being finalized.
- [Feature Request] Two-pass encoding. HOT 3
- [Feature Request] Custom filters HOT 6
- [Feat request] Option to shut down computer + keep audio and segments calculation files HOT 5
- [Feature request] Option to copy subtitles from original file HOT 2
- Speed selection gets reset after clicking the queue area
- Audio limited to 1 channel and bitrate limited to 160kbps when mono file is in the queue HOT 4
- Application crashes if you right click anywhere in the filter window after a custom filter has been added
- Issue with default audio and video filters HOT 2
- Selected video CRF value not respected after changing video when encoding entire list HOT 3
- Not all files get encoded when selecting "encode entire list" HOT 7
- [Feat Request] Add support for VVC
- Queue file corrupted on power loss HOT 2
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 av1ador.