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
- Host: GitHub
- URL: https://github.com/vitiko98/fese
- Owner: vitiko98
- License: gpl-3.0
- Created: 2021-12-23T20:27:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T22:22:33.000Z (12 months ago)
- Last Synced: 2025-04-05T07:41:39.128Z (3 months ago)
- Language: Python
- Size: 524 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fese
A library to extract FFmpeg subtitle streams
## Usage
```python
import logging
import sysfrom 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)
```