Comments (3)
@palemieux There is a typo in the configuration dictionary imsd_writer
needs to be imsc_writer
. Can you check with
python src/main/python/ttconv/tt.py convert -i build/out.srt -o build/out.ttml --config '{"imsc_writer":{"time_format":"clock_time"}}'
I get an error with any valid input file.
from ttconv.
@valnoel The more general question is how to handle the parsing of None
values in ttconv configurations. At the moment None
is always handed over to a decoder
ttconv/src/main/python/ttconv/config.py
Lines 58 to 69 in a87152c
Instead of handling None
values in the decoders, this could be simplified by skipping the decoder if the value is None
e.g. by
if decoder is not None and field_value is not None:
field_value = decoder.__call__(field_value)
This could be a low priority design change.
from ttconv.
@xchange11 I cannot reproduce the issue. Can you provide a sample?
The following seems to work: `python src/main/python/ttconv/tt.py convert -i build/out.srt -o build/out.ttml --config '{"imsd_writer":{"time_format":"clock_time"}}'
from ttconv.
Related Issues (20)
- ttp:contentProfiles missing from IMSC1.1 Text Profile output option HOT 4
- iTunes Timed Text reader and writer
- WebVTT reader HOT 16
- DVD Studio Pro reader and writer
- Add config parameter for xml:lang values in imsc_writer HOT 2
- Online demo is not up-to-date HOT 1
- SCC default alignment should be user-configurable
- Reader for DFXP flavors HOT 18
- WebVTT writer: make WebVTT cue identifiers optional HOT 9
- Color and Position? HOT 1
- TypeError: _value_ not set in __new__, unable to create it ; possible python 3.11 incompatibility HOT 3
- Unable to start tt after install HOT 2
- Option to remove all TTML element tags HOT 7
- SCC: support word repetition for normal and extended characters HOT 1
- SCC > SRT error, Domesday LD Capture: AttributeError: 'NoneType' object has no attribute 'append_text' HOT 7
- SCC reader: 0x22 should be read as Quotation Mark instead of two Backticks HOT 2
- imsc-reader: tts:textEmphasis="dot after" triggers error
- ISD: throws at `_get_writing_mode()`
- IMSC reader: ttp:cellResolution components are swapped
- Incorrect initial value for `ebutts:linePadding`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttconv.