SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.93k stars 916 forks source link

SE 4.01 using 100% of a single thread while idle #7556

Closed tariq0101 closed 1 year ago

tariq0101 commented 1 year ago

SE 4.01 using 100% of a single thread while idle even without loading a subtitle file or a video. I'm on Linux mint debian and using mono on the portable version. it doesn't use the same thread it hops from to another but always using 13% of the cpu for no apparent reason, draining my laptop's battery and making it hot.

niksedk commented 1 year ago

I think more info is needed...

tariq0101 commented 1 year ago

I think more info is needed...

I'll gladly provide that. can you tell me what you need and how to get it?

niksedk commented 1 year ago

Running SE image

Stopped running SE: image

So, yeah, it seems to use a lot..

A PR is very welcome :)

niksedk commented 1 year ago

Could you provide some screenshots from Linux mint?

tariq0101 commented 1 year ago

Could you provide some screenshots from Linux mint?

Hi, the issue resolved itself after a reboot, sorry for wasting your time. however there's another issue I'm facing when trying to transcribe using whisper-ctranslate2 whisper can't find the temporary wav file although I've manually checked and it exists and I have the appropriate permissions for it. Screenshot from 2023-10-25 19-31-58

niksedk commented 1 year ago

whisper-ctranslate2

What happens if you type whisper-ctranslate2 in a terminal window?

Purfview commented 1 year ago

@tariq0101 Try Faster-Whisper, it has Linux binary.

tariq0101 commented 1 year ago

@tariq0101 Try Faster-Whisper, it has Linux binary.

it was removed as far as I can tell. I can only choose original whisper, cpp, ctranslate2 and WhisperX. the same issue happens on WhisperX.

Purfview commented 1 year ago

it was removed as far as I can tell. I can only choose original whisper, cpp, ctranslate2 and WhisperX...

Hmm, @niksedk can you add it?

tariq0101 commented 1 year ago

whisper-ctranslate2

What happens if you type whisper-ctranslate2 in a terminal window?

it runs normally since I installed it before SubtitleEdit the problem is that whisper (any version) can's find the wav file but it exists, it's really strange. this is the output:

You need to specify one or more audio files Usewhisper-ctranslate2 --helpto see the available options.

niksedk commented 1 year ago

@tariq0101: try checking the file whisper_log.txt (you can also press F2 in the Whisper window, to see cli output) Perhaps SE is using an old/wrong cli parameter...

tariq0101 commented 1 year ago

@tariq0101: try checking the file whisper_log.txt (you can also press F2 in the Whisper window, to see cli output) Perhaps SE is using an old/wrong cli parameter...

I copied the command from whisper_log.txt and paste it in the terminal and it ran smoothly, there's nothing wrong with the command itself. of course I did that before closing SE so the temp file was there. is there a recommended directory where I should place SE portable folder?

I can't see the cli output with F2 because it crashes almost immediately after pressing "generate"