diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-12-20 00:41:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-12-23 01:44:20 +0530 |
commit | 69f5fe45b98ef3ecb8e5ac69ebebdce7733a3ae4 (patch) | |
tree | b0cae545e0691f6dd4c9416d56c82a5dbf57cd17 | |
parent | 0b5546c723b9fb212e7e0199dbdaae8b8e0bf206 (diff) | |
download | hypervideo-pre-69f5fe45b98ef3ecb8e5ac69ebebdce7733a3ae4.tar.lz hypervideo-pre-69f5fe45b98ef3ecb8e5ac69ebebdce7733a3ae4.tar.xz hypervideo-pre-69f5fe45b98ef3ecb8e5ac69ebebdce7733a3ae4.zip |
[FFmpegVideoConvertor] Add `gif` to `--recode-video`
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | yt_dlp/postprocessor/ffmpeg.py | 5 |
2 files changed, 9 insertions, 6 deletions
@@ -893,11 +893,11 @@ You can also fork the project on GitHub and run your fork's [build workflow](.gi specific bitrate like 128K (default 5) --remux-video FORMAT Remux the video into another container if necessary (currently supported: avi, flv, - mkv, mov, mp4, webm, aac, aiff, alac, flac, - m4a, mka, mp3, ogg, opus, vorbis, wav). If - target container does not support the - video/audio codec, remuxing will fail. You - can specify multiple rules; e.g. + gif, mkv, mov, mp4, webm, aac, aiff, alac, + flac, m4a, mka, mp3, ogg, opus, vorbis, + wav). If target container does not support + the video/audio codec, remuxing will fail. + You can specify multiple rules; e.g. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 and anything else to mkv --recode-video FORMAT Re-encode the video into another format if diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 67890fc31..069066e0c 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -538,7 +538,10 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor): class FFmpegVideoConvertorPP(FFmpegPostProcessor): - SUPPORTED_EXTS = (*MEDIA_EXTENSIONS.common_video, *sorted(MEDIA_EXTENSIONS.common_audio + ('aac', 'vorbis'))) + SUPPORTED_EXTS = ( + *sorted((*MEDIA_EXTENSIONS.common_video, 'gif')), + *sorted((*MEDIA_EXTENSIONS.common_audio, 'aac', 'vorbis')), + ) FORMAT_RE = create_mapping_re(SUPPORTED_EXTS) _ACTION = 'converting' |