Skip to content

Commit

Permalink
Adding path to ffmpeg for installed app on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus committed Oct 12, 2024
1 parent 1baccef commit 4a6d671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buzz/transcriber/file_transcriber.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import sys
import shutil
import tempfile
from abc import abstractmethod
Expand All @@ -9,6 +10,7 @@
from yt_dlp import YoutubeDL
from yt_dlp.utils import DownloadError

from buzz.assets import APP_BASE_DIR
from buzz.transcriber.transcriber import (
FileTranscriptionTask,
get_output_file_path,
Expand Down Expand Up @@ -39,6 +41,7 @@ def run(self):
"progress_hooks": [self.on_download_progress],
"outtmpl": temp_output_path,
"logger": logging.getLogger(),
"ffmpeg_location": APP_BASE_DIR if getattr(sys, "frozen", False) else None,
"postprocessors": [
{
"key": "FFmpegExtractAudio",
Expand Down

0 comments on commit 4a6d671

Please sign in to comment.