You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
655 B
35 lines
655 B
5 months ago
|
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)
|
||
|
```
|