Skip to content

Commit

Permalink
Merge pull request #17 from ScottSloan/dev
Browse files Browse the repository at this point in the history
merge dev branch
  • Loading branch information
ScottSloan authored Sep 27, 2024
2 parents 1f1552b + f7fb239 commit 725e2a3
Show file tree
Hide file tree
Showing 15 changed files with 730 additions and 336 deletions.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[download]
path =
max_thread = 4
max_thread = 2
max_download = 1
resolution = 80
sound_quality = 30280
Expand Down
1 change: 1 addition & 0 deletions gui/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import webbrowser

from utils.config import Config
from utils.tools import *
from utils.icons import getAppIcon

from .license import LicenseWindow
Expand Down
4 changes: 2 additions & 2 deletions gui/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def startConvert(self):
encoder = self.getEncoder()
bitrate = self.target_bitrate_box.GetValue() + "k"

cmd = [Config.FFmpeg.path, "-y", "-i", input_path, "-c:v", encoder, "-b:v", bitrate, "-strict", "experimental", output_path]
cmd = f'"{Config.FFmpeg.path}" -y -i "{input_path}" -c:v {encoder} -b:v {bitrate} -strict experimental "{output_path}"'

self.process = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, universal_newlines = True, encoding = "utf-8")
self.process = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, universal_newlines = True, encoding = "utf-8", shell = True)

duration = None
time_1 = time.time()
Expand Down
Loading

0 comments on commit 725e2a3

Please sign in to comment.