GithubHelp home page GithubHelp logo

Comments (5)

master-of-zen avatar master-of-zen commented on July 17, 2024

There is -xs option, that does that.

-xs  --extra_split      
Adding extra splits if frame distance beetween splits bigger than
given value. Split only on keyframes. Works with/without PySceneDetect
Example: 1000 frames video with single scene, 
-xs 200 will try to add splits at keyframes 
that closest to 200,400,600,800.```
So if run without scenedetection it will just try to add splits every N frames

from av1an.

Provissy avatar Provissy commented on July 17, 2024

Oh! sorry, I didn't notice that help message in README.MD. Actually, when I was reviewing the code I cannot understand what Number of frames after which make split means... it looks quite confusing.

Okay, that is what I want, but it requires user calculating frame intervals by themself, consider add a more convenient option like... just split them into 4 pieces equally?

from av1an.

master-of-zen avatar master-of-zen commented on July 17, 2024

@Provissy extra splits synergize with scene detection, as it can affect only scenes longer than N, so you can set -xs 720 and it will try split only scenes that longer than 720 frames (30 seconds 24fps).
Just make N splits is not a good way to make encode.

from av1an.

Provissy avatar Provissy commented on July 17, 2024

@Provissy extra splits synergize with scene detection, as it can affect only scenes longer than N, so you can set -xs 720 and it will try split only scenes that longer than 720 frames (30 seconds 24fps).
Just make N splits is not a good way to make encode.

Yes, that is not ideal. But I don't think it's necessary to scene detect a long video(like a movie) and split into many chunks if user's cpu is less than 6 or 4 cores.

The main purpose, I assume, for this software is to accelerate the encoding time since aomenc is too slow. But, for example, if splitting an one hour long video into four chunks, whether the splitted position is at a scene changing point or just where the interval hits does not make big difference. Not everyone is encoding with a 64 threads CPU and huge amount of RAM, but opposite - I think most people own a cpu with less than 8 cores with less than 16 GB of RAM. Since it's hard to guess how scene detection splits the video, it may result in additional encoding time if the detected scenes do not spread evenly.

from av1an.

master-of-zen avatar master-of-zen commented on July 17, 2024

Yes, that is not ideal. But I don't think it's necessary to scene detect a long video(like a movie) and split into many chunks if the user's CPU is less than 6 or 4 cores.

It allows the usage of lots of features and general flexibility. Stopping and resuming encode, so huge encode can be scheduled instead of running encode from start to end. Using scene based features like boost and target VMAF, etc

from av1an.

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.