Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karbiv/ffslicer.py
FFMPEG wrapper for slicing videos.
https://github.com/karbiv/ffslicer.py
Last synced: 1 day ago
JSON representation
FFMPEG wrapper for slicing videos.
- Host: GitHub
- URL: https://github.com/karbiv/ffslicer.py
- Owner: karbiv
- License: gpl-3.0
- Created: 2016-11-22T10:44:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T11:18:52.000Z (over 7 years ago)
- Last Synced: 2024-03-04T21:48:49.248Z (8 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ffslicer.py
FFMPEG wrapper for slicing videos.
Requires python 3.4 or above.For help in terminal type:
>pyton3 ./ffslicer.py -h
Example:
>python3 ./ffslicer.py -i input.mp4 @args.txt ~/destdir/output.mkv
Takes arguments for args.txt file.
Will create a contaner folder named "ffslices_input.mp4" at "~/destdir/"(must already exist).
Input filename appended to the ffslices container folder name.
~/destdir/ffslices\_input.mp4 will contain a video file for each slice in arguments.Each option in the arguments file (named args.txt in this case) must on a separate line:
*-i
../test.mp4
--slices
00:00:03.325 8.305
8.317 15.34 28 35.8
-preset
superfast
-qp
4
-pix_fmt
yuv420p*Only **--slices** option can have arguments spread on several lines.
All options can reside in an arguments file, so a call could look like:
>python3 ./ffslicer.py @args.txtTo parallelize slicing there's **--multiprocess** option.