Skip to content

A command line python script for cutting video files frame accurately

License

Notifications You must be signed in to change notification settings

g-braeunlich/smartcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartcut

A command line python script for cutting video files frame accurately. Reencoding is only performed for segments containing a cut at a non key frame.

It is refactored out of https://github.com/monarc99/otr-verwaltung The tool is tested for files encoded by https://www.onlinetvrecorder.com Other videos have not been tested.

Dependencies

  • python
  • mediainfo
  • x264_encoder with ffmpegsource support
  • ffmpegsource
  • mkvtoolnix (mkvmerge)

Usage

python3 smartcut.py [-h] [-o OUT] [--profile HQ|HD] [--workingdir <WORKINGDIR>]
                   [-i <video file>]
                   <cutlist file>

Currently supported cutlist formats are:

If the cutlist specifies the input video file, the -i option is not necessary but can be used to overwrite the value from the cutlist file.

About

A command line python script for cutting video files frame accurately

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages