GithubHelp home page GithubHelp logo

fadion96 / honorifics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from animagia/honorifics

0.0 0.0 0.0 39 KB

Manages honorifics and timing quirks in subtitles.

License: GNU General Public License v3.0

Python 100.00%

honorifics's Introduction

honorifics

Manages honorifics and timing quirks in subtitles.

scripts/

Scripts can run by in-system Python. All scripts reads from stdin and output to stdout.

subtitles.py

Read line by line. If in line is text between marks {*}...{*...} then swap it. Marks can be changed by providing arguments to class TextSwapperInMark constructor in script.

timing_offset.py

For SubStation Alfa (V4 & V4+) file. Optional argument: -fps

Read all input once as lines. If in dialogue event line at the end of Text field is {+|- number cs|ms|frame|frames}
e.g. {+5 frames} then shift accordingly Start and End time field. Default frame rate is 23.976.

changing_codec.py

For video files. Optional arguments -duration, -deband, -subtitles, -output

Script adds visual effects on given timestamps and durations, and changes codec to VP9 with .mkv extension. Optionally script hardsubs given subtitle file to the video.

Examples

python3 ./scripts/subtitles.py < input > output

python3 ./scripts/timing_offset.py -fps 29.97 < input.ass > output.ass

python3 ./scripts/changing_codec.py -i input [timestamp] -d [duration] -o output.mkv

Useful tools

Meld

Developing notes

For developing purposes it is recommended to use virtual environments.

Code in honorifics/ should be covered by tests. Type hinting is preferred. PEP 8 to style.

honorifics's People

Contributors

fadion96 avatar kajeczko avatar owoc avatar lukaszklekowski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.