[kdenlive] [Bug 498949] New: Hardcoded path of ffmpeg for whisper and vosk is no longer the right one

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Jan 21 09:00:11 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=498949

            Bug ID: 498949
           Summary: Hardcoded path of ffmpeg for whisper and vosk is no
                    longer the right one
    Classification: Applications
           Product: kdenlive
           Version: 24.12.1
          Platform: Homebrew (macOS)
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Title Clips & Subtitles
          Assignee: jb at kdenlive.org
          Reporter: afk at afkgamer.eu
  Target Milestone: ---

Created attachment 177565
  --> https://bugs.kde.org/attachment.cgi?id=177565&action=edit
Error window

SUMMARY
Path of python script has changed since 24.08.1 so the hardcoded path no longer
works :

For vosk :
https://github.com/KDE/kdenlive/blob/aadbc071e11e1efad05a553c5896821149083ed5/data/scripts/vosk/speech.py#L28
    path = abspath(join(dirname(__file__), '../../MacOS/ffmpeg'))

For whisper : (code is duplicated at line 48 and 104, may be using the function
at 48 would be useful)
https://github.com/KDE/kdenlive/blob/aadbc071e11e1efad05a553c5896821149083ed5/data/scripts/whisper/whispertotext.py#L48
https://github.com/KDE/kdenlive/blob/aadbc071e11e1efad05a553c5896821149083ed5/data/scripts/whisper/whispertotext.py#L104

would be nice to pass the ffmpeg from the settings or else add another ../
it should be in 
/Applications/kdenlive.app/Contents/MacOS/ffmpeg
and its looking for
/Applications/kdenlive.app/Contents/Resources/MacOS/ffmpeg

STEPS TO REPRODUCE
1. Install kdenlive from brew or the website
2. use the speech editor
3. got a message that says it doesn't find ffmpeg

OBSERVED RESULT
ffmpeg isn't at /Applications/kdenlive.app/Contents/Resources/MacOS/ffmpeg so
it doesn't work

EXPECTED RESULT
/Applications/kdenlive.app/Contents/MacOS/ffmpeg should be used instead

SOFTWARE/OS VERSIONS
macOS: 15.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list