Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    PySubs 0.1.1

    Download button

    No screenshots available
    Downloads: 144  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    TiGR | More programs
    BSD License / FREE
    December 28th, 2011, 14:13 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PySubs description

    SubStation-based subtitle framework

    PySubs is a subtitle framework written in Python 3. While aimed at developers, it comes with a script to do batch conversion/retiming from commandline -- a feature some users may find useful as well.

    Supported formats

    - SubStation Alpha (ASS, SSA files) as the native format
    - SubRip Text (SRT files) import/export
    - MicroDVD (SUB files) import/export
    - Matroska (MKV) subtitle track import via mkvtoolnix

    Commandline example

    pysubs-cli.py --output-dir retimed --shift 1.3s *.srt

    Framework example

    >>> import pysubs
    >>> subs = pysubs.load("subtitles.ass", encoding="utf-8")
    >>> subs.styles["Default"].fontname = "Calibri"
    >>> for line in subs:
    ... line.text = "{\be1}" + line.text
    >>> subs.save("subtitles_fancy.ass")



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    subtitle framework | Python library | SubStation | subtitle | framework

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM