|
8 | 8 |
|
9 | 9 | import auto_editor
|
10 | 10 | from auto_editor.edit import edit_media
|
11 |
| -from auto_editor.ffwrapper import FFmpeg, initFFmpeg |
| 11 | +from auto_editor.ffwrapper import FFmpeg |
12 | 12 | from auto_editor.utils.func import get_stdout
|
13 | 13 | from auto_editor.utils.log import Log
|
14 | 14 | from auto_editor.utils.types import (
|
@@ -166,11 +166,6 @@ def main_options(parser: ArgumentParser) -> ArgumentParser:
|
166 | 166 | metavar="PATH",
|
167 | 167 | help="Set a custom path to the ffmpeg location",
|
168 | 168 | )
|
169 |
| - parser.add_argument( |
170 |
| - "--my-ffmpeg", |
171 |
| - flag=True, |
172 |
| - help="Use the ffmpeg on your PATH instead of the one packaged", |
173 |
| - ) |
174 | 169 | parser.add_text("Display Options:")
|
175 | 170 | parser.add_argument(
|
176 | 171 | "--progress",
|
@@ -279,7 +274,7 @@ def get_domain(url: str) -> str:
|
279 | 274 |
|
280 | 275 | yt_dlp_path = args.yt_dlp_location
|
281 | 276 |
|
282 |
| - cmd = ["--ffmpeg-location", ffmpeg.path] |
| 277 | + cmd = ["--ffmpeg-location", ffmpeg.get_path("yt-dlp", log)] |
283 | 278 |
|
284 | 279 | if download_format is not None:
|
285 | 280 | cmd.extend(["-f", download_format])
|
@@ -357,7 +352,7 @@ def main() -> None:
|
357 | 352 | is_machine = args.progress == "machine"
|
358 | 353 | log = Log(args.debug, args.quiet, args.temp_dir, is_machine, no_color)
|
359 | 354 |
|
360 |
| - ffmpeg = initFFmpeg(log, args.ffmpeg_location, args.my_ffmpeg) |
| 355 | + ffmpeg = FFmpeg(args.ffmpeg_location) |
361 | 356 | paths = []
|
362 | 357 | for my_input in args.input:
|
363 | 358 | if my_input.startswith("http://") or my_input.startswith("https://"):
|
|
0 commit comments