blob: 8c87824508e0fd81a5fa67589316410f9afd6014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Metadata-Version: 2.1
Name: fese
Version: 0.3.0
Summary: A library to extract FFmpeg subtitle streams
Author-email: Vitiko Nogales <averroista@protonmail.com>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: babelfish
Requires-Dist: pysubs2
# 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)
```
|