mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
7275535116
* New options `--split-chapters` and `--no-split-chapters` * The output/path of the split files can be given using the key `chapter` * Additional keys `section_title`, `section_number`, `section_start`, `section_end` are available in the output template * Alias `--split-tracks` for parity with animelover/youtube-dl * `--sponskrub-cut` and `--split-chapter` cannot work together Closes: https://github.com/blackjack4494/yt-dlc/issues/277 https://github.com/ytdl-org/youtube-dl/issues/28438 https://github.com/ytdl-org/youtube-dl/issues/12907 https://github.com/ytdl-org/youtube-dl/issues/6480 https://github.com/ytdl-org/youtube-dl/pull/25005 Rewritten from the implementation by: femaref and Wattux https://github.com/Wattux/youtube-dl/tree/split-at-timestamps https://github.com/ytdl-org/youtube-dl/pull/25005 https://github.com/femaref/youtube-dl/tree/split-track
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
from __future__ import unicode_literals
|
|
|
|
from .embedthumbnail import EmbedThumbnailPP
|
|
from .ffmpeg import (
|
|
FFmpegPostProcessor,
|
|
FFmpegEmbedSubtitlePP,
|
|
FFmpegExtractAudioPP,
|
|
FFmpegFixupStretchedPP,
|
|
FFmpegFixupM3u8PP,
|
|
FFmpegFixupM4aPP,
|
|
FFmpegMergerPP,
|
|
FFmpegMetadataPP,
|
|
FFmpegVideoConvertorPP,
|
|
FFmpegVideoRemuxerPP,
|
|
FFmpegSubtitlesConvertorPP,
|
|
FFmpegSplitChaptersPP,
|
|
)
|
|
from .xattrpp import XAttrMetadataPP
|
|
from .execafterdownload import ExecAfterDownloadPP
|
|
from .metadatafromfield import MetadataFromFieldPP
|
|
from .metadatafromfield import MetadataFromTitlePP
|
|
from .movefilesafterdownload import MoveFilesAfterDownloadPP
|
|
from .sponskrub import SponSkrubPP
|
|
|
|
|
|
def get_postprocessor(key):
|
|
return globals()[key + 'PP']
|
|
|
|
|
|
__all__ = [
|
|
'EmbedThumbnailPP',
|
|
'ExecAfterDownloadPP',
|
|
'FFmpegEmbedSubtitlePP',
|
|
'FFmpegExtractAudioPP',
|
|
'FFmpegSplitChaptersPP',
|
|
'FFmpegFixupM3u8PP',
|
|
'FFmpegFixupM4aPP',
|
|
'FFmpegFixupStretchedPP',
|
|
'FFmpegMergerPP',
|
|
'FFmpegMetadataPP',
|
|
'FFmpegPostProcessor',
|
|
'FFmpegSubtitlesConvertorPP',
|
|
'FFmpegVideoConvertorPP',
|
|
'FFmpegVideoRemuxerPP',
|
|
'MetadataFromFieldPP',
|
|
'MetadataFromTitlePP',
|
|
'MoveFilesAfterDownloadPP',
|
|
'SponSkrubPP',
|
|
'XAttrMetadataPP',
|
|
]
|