a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.2k stars 246 forks source link

ws.schild:jave-core 2.5.0,The encoder method takes up a lot of CPU when performing audio segmentation. #270

Open dns301 opened 2 weeks ago

dns301 commented 2 weeks ago

code : Encoder encoder = new Encoder(); encoder.encode(sourceFile,targetFile,attributes);

This situation will result in higher CPU usage, how to resolve it

a-schild commented 2 weeks ago

Have you lokoed at a newer jave version? 2.5.x is very outdated

dns301 commented 2 weeks ago

Have you lokoed at a newer jave version? 2.5.x is very outdated

Due to the company's LAN conditions, we have not been able to successfully use the updated version. I would like to ask you or your colleagues or users, have encountered CPU usage problems before?

a-schild commented 2 weeks ago

The 2.5.x releases are from 2019, so you wan't have all the security fixes etc.

CPU usage is always a thing to consider when working with audio+video formats, they require just much more than simple word/excel.

But this greatly depends on the audio/video codecs used and the hardware you are running on and then of course what the target encoding settings are.