aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/postprocessor
diff options
context:
space:
mode:
authorremitamine <[email protected]>2016-03-13 12:15:29 +0100
committerremitamine <[email protected]>2016-03-13 12:15:29 +0100
commita755f82549cb6bffd8ff9545e0b0a4883b7422d2 (patch)
tree40776d9e03ad149e579cf8b7b72ad6462ac8e9bb /youtube_dl/postprocessor
parentf34294fa0c0097cea7f6388d5d691d5a54950491 (diff)
downloadyoutube-dl-a755f82549cb6bffd8ff9545e0b0a4883b7422d2.tar.gz
youtube-dl-a755f82549cb6bffd8ff9545e0b0a4883b7422d2.zip
[ffmpeg] convert format ext to ffmpeg output formats codes
Diffstat (limited to 'youtube_dl/postprocessor')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 380bc6f29..cc7aaeda3 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -25,6 +25,19 @@ from ..utils import (
)
+EXT_TO_OUT_FORMATS = {
+ "aac": "adts",
+ "m4a": "ipod",
+ "mka": "matroska",
+ "mkv": "matroska",
+ "mpg": "mpeg",
+ "ogv": "ogg",
+ "ts": "mpegts",
+ "wma": "asf",
+ "wmv": "asf",
+}
+
+
class FFmpegPostProcessorError(PostProcessingError):
pass