An open API service indexing awesome lists of open source software.

https://github.com/vitiko98/fese

A python library to extract subtitle streams with FFmpeg
https://github.com/vitiko98/fese

Last synced: about 2 months ago
JSON representation

A python library to extract subtitle streams with FFmpeg

Awesome Lists containing this project

README

        

# fese

A library to extract FFmpeg subtitle streams

## Usage

```python
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)
```