Giter Site home page Giter Site logo

assdumper's Introduction

assdumper

TS 内のAプロファイルの字幕を ASS (Advanced SubStation Alpha) に変換するスクリプトです。

動作環境

python 3.9 で動作を確認しています。

オプション

  • -i, --input: 入力 TS ファイルを指定します。省略された場合は標準入力になります。
  • -o, --output: 出力先の ASS ファイルを指定します。省略された場合は標準出力になります。
  • -s, --SID: 対象の サービスID を指定します。 (必須)
  • -a, --accurate: ARIB字幕っぽさを出す工夫を無効化します

assdumper's People

Contributors

monyone avatar garret1317 avatar

Stargazers

 avatar  avatar fludixx avatar Altair avatar Kai HE avatar  avatar  avatar  avatar tsukumi avatar xqq avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

maplefz

assdumper's Issues

missing character? - return self.mapping[item] KeyError: 84

  File "/home/g/Downloads/assdumper/assdumper.py", line 103, in <module>
    if not dumper.dump(elapsed_seconds): continue
  File "/home/g/Downloads/assdumper/subtitle/dumper.py", line 283, in dump
    self.parse_text(data_unit + 5, data_unit + 5 + data_unit_size)
  File "/home/g/Downloads/assdumper/subtitle/dumper.py", line 436, in parse_text
    self.render_character(self.pes[begin:begin+size], self.G_BACK[self.GL])
  File "/home/g/Downloads/assdumper/subtitle/dumper.py", line 794, in render_character
    character = dict[character_key]
  File "/home/g/Downloads/assdumper/subtitle/dictionary.py", line 10, in __getitem__
    return self.mapping[item]
KeyError: 84

the dictionary's missing a character, I think

minimal sample, service ID 2064 (in a zip file, can't upload .ts)

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.