/fese

A python library to extract subtitle streams with FFmpeg

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

fese

A library to extract FFmpeg subtitle streams

Usage

import logging
import sys

from fese.container import FFprobeVideoContainer

logging.basicConfig(level=logging.DEBUG)

video_path = sys.argv[1]

video = fese.FFprobeVideoContainer(video_path)

subtitles = video.get_subtitles()

paths = video.extract_subtitles(subtitles)
print(paths)