mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 04:29:44 +01:00
[FFmpegVideoConvertor] Add gif
to --recode-video
This commit is contained in:
parent
0b5546c723
commit
69f5fe45b9
10
README.md
10
README.md
@ -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)
|
specific bitrate like 128K (default 5)
|
||||||
--remux-video FORMAT Remux the video into another container if
|
--remux-video FORMAT Remux the video into another container if
|
||||||
necessary (currently supported: avi, flv,
|
necessary (currently supported: avi, flv,
|
||||||
mkv, mov, mp4, webm, aac, aiff, alac, flac,
|
gif, mkv, mov, mp4, webm, aac, aiff, alac,
|
||||||
m4a, mka, mp3, ogg, opus, vorbis, wav). If
|
flac, m4a, mka, mp3, ogg, opus, vorbis,
|
||||||
target container does not support the
|
wav). If target container does not support
|
||||||
video/audio codec, remuxing will fail. You
|
the video/audio codec, remuxing will fail.
|
||||||
can specify multiple rules; e.g.
|
You can specify multiple rules; e.g.
|
||||||
"aac>m4a/mov>mp4/mkv" will remux aac to m4a,
|
"aac>m4a/mov>mp4/mkv" will remux aac to m4a,
|
||||||
mov to mp4 and anything else to mkv
|
mov to mp4 and anything else to mkv
|
||||||
--recode-video FORMAT Re-encode the video into another format if
|
--recode-video FORMAT Re-encode the video into another format if
|
||||||
|
@ -538,7 +538,10 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
|
|
||||||
|
|
||||||
class FFmpegVideoConvertorPP(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)
|
FORMAT_RE = create_mapping_re(SUPPORTED_EXTS)
|
||||||
_ACTION = 'converting'
|
_ACTION = 'converting'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user