Giter VIP home page Giter VIP logo

Comments (2)

petermg avatar petermg commented on May 24, 2024

FFmpeg uses too much CPU, all it can have to the ceiling, even 90% of the total. I'm on a commercial build of AMD 64. It makes the PC freeze and crash. How can I limit the processing to 50% of the CPU?

I'm calling auto-editor like this:

@echo off set "input_file=%~1" "C:\Users\Username\AppData\Local\Programs\Python\Python312\Scripts\auto-editor.exe" --margin 1s,2sec --no-open "%input_file%" --my-ffmpeg %ffmpeg_threads% -c:v libx264 -b:v unset --extras "-preset slow -crf 22" pause

If you have a supported AMD or Nvidia GPU and a version of ffmpeg that supports GPU encoding you can just set the video codec to use the GPU encoder. For example I do this:
auto-editor %1 --my-ffmpeg -c:v hevc_nvenc -m 5,30
this USED to work fine but now it throws an error that you cannot use that codec with mp4 files. I think this is a bug because like I said it used to work fine on mp4 files. I reported the issue, so in the meantime you can just tell it to output it as mkv, which works without that error. So it would look like this:
auto-editor %1 --my-ffmpeg -c:v hevc_nvenc -m 5,30 -o outputfile.mkv

Now that is for a supported Nvidia GPU using a version of ffmpeg that supports GPU encoding. This way it will use hardly any of your CPU and offload the encoding to the GPU instead.

from auto-editor.

WyattBlue avatar WyattBlue commented on May 24, 2024

Try using a gpu video encoder (-c:v h264_nvenc) if your computer has a supported GPU. Otherwise, try either increasing your fan speed in the BIOS or set an option to somehow rate limit your CPU.

(closing because there's nothing to do here on the software side)

from auto-editor.

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.