aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-20 21:37:40 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-21 01:36:10 +0530
commit43820c0370acaf8306880f235364535c1c92c157 (patch)
tree05a3f4c414381a184accba0c8fde8a2090fd746d /youtube_dlc/postprocessor/ffmpeg.py
parent5c610515c90d090b66aa3d86be86fb06dff8457f (diff)
Improved passing of multiple postprocessor-args
* Added `PP+exe:args` syntax If `PP+exe:args` is specifically given, only it used. Otherwise, `PP:args` and `exe:args` are combined. If none of the `PP`, `exe` or `PP+exe` args are given, `default` is used `Default` is purposely left undocumented since it exists only for backward compatibility * Also added proper handling of args in `EmbedThumbnail` Related: https://github.com/ytdl-org/youtube-dl/pull/27723
Diffstat (limited to 'youtube_dlc/postprocessor/ffmpeg.py')
-rw-r--r--youtube_dlc/postprocessor/ffmpeg.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dlc/postprocessor/ffmpeg.py b/youtube_dlc/postprocessor/ffmpeg.py
index 9c6065018..3079d2e72 100644
--- a/youtube_dlc/postprocessor/ffmpeg.py
+++ b/youtube_dlc/postprocessor/ffmpeg.py
@@ -54,8 +54,6 @@ class FFmpegPostProcessorError(PostProcessingError):
class FFmpegPostProcessor(PostProcessor):
def __init__(self, downloader=None):
- if not hasattr(self, 'PP_NAME'):
- self.PP_NAME = self.__class__.__name__[6:-2] # Remove ffmpeg from the front
PostProcessor.__init__(self, downloader)
self._determine_executables()
@@ -209,7 +207,7 @@ class FFmpegPostProcessor(PostProcessor):
oldest_mtime = min(
os.stat(encodeFilename(path)).st_mtime for path in input_paths)
- opts += self._configuration_args()
+ opts += self._configuration_args(exe=self.basename)
files_cmd = []
for path in input_paths: