WyattBlue / auto-editor

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

Speed drops after extended clip-sequence export #414

Closed MilkAndBanana1 closed 9 months ago

MilkAndBanana1 commented 9 months ago

Bug description

Used it auto-editor to a batch file. Using hevc_nvenc. (ryzen 5 5600H,3060 laptop gpu) Inputted a 27 minute mkv file. First 50-70 files are fast, after 100+ it starts to slow down considerably.

What's your platform?

Windows.

What command did you use

set specialparams=--my-ffmpeg --video-codec hevc_nvenc --edit audio:stream=0,mincut=25,minclip=3 --margin 0.05sec,0.2sec --export clip-sequence

rem ##################### SPLITTING THE CLIPS

md edited_clips
set "folder=%~dp0\edited_clips"
set /p inputFile=Enter the name of the file to open: 
auto-editor.exe "%inputFile%" -o "edited_clips/clips.mp4" !specialparams!

What properties does your input video have?

.\podcast23.mkv:

Comments

Have a feeling this is just CPU getting fried after multiple encodes but issuing this in case there's a potential optimization.

MilkAndBanana1 commented 9 months ago

Update: Merged the audio tracks and ran it through ffmpeg before doing so and it seems to be faster.

WyattBlue commented 9 months ago

I already know auto-editor can be slow when exporting as a clip-sequence when there are hundreds of clips. it's an O(n^2) operation due to file seeking being linear. I don't consider this a valid bug because I only have so much time on this earth to be spending time optimizing every last use case.