WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.71k stars 402 forks source link

Using audio threshold and custom silent speed together makes rendering super slow #470

Closed ErikVogelLUH closed 1 month ago

ErikVogelLUH commented 1 month ago

Bug description

When you define a custom audio threshold and a custom silent speed, exporting the video becomes super slow. I always use h264_nvenc together with --my-ffmpeg, because else it is even slower. The ETA goes way up during the encoding process. In the task manager I can see that my GPU only has small spikes of video encoding. With default option auto-editor fully utilizes my GPU. Over the process of the rendering I can see that the spikes become less frequent and more spaced out. At the same time the ETA goes up

What's your platform?

Python Version: 3.11.4 64-bit
Platform: Windows 10 amd64
FFmpeg Version: N-110322-g0c25da5a28-g1440bf15e2+1
FFmpeg Path: C:\Program Files\Python311\Lib\site-packages\ae_ffmpeg\Windows\ffmpeg.exe
Auto-Editor Version: 24w19a

What command did you use

auto-editor '.\video.webm' -c:v h264_nvenc --no-open --my-ffmpeg -s 5 --edit "audio:threshold=7%" -o video_out.mkv

What properties does your input video have?

Comments

No response

WyattBlue commented 1 month ago

I can replicate this, will figure out a fix soon.

WyattBlue commented 1 month ago

2612980838ca3495b0845274177a3ff57e679e5c fixes this.