Comments (9)
Just wanna ask, do we support region info conversion for TTML to VTT? or do we have any plans to support it?
The WebVTT writer does not currently support regions.
AFAIK there is no ongoing work to add support for regions, but such addition would be welcome I would think.
Are regions widely supported in WebVTT players?
from ttconv.
@palemieux Thanks for your time.
I think region of WebVTT is not widely supported, I tried Safari native player before, which doesn't support region of WebVTT, but VLC does support region of WebVTT.
So as a compromise, region of TTML can be mapped into line/position/align of WebVTT to do the same thing.
from ttconv.
So as a compromise, region of TTML can be mapped into line/position/align of WebVTT to do the same thing.
Ok. Would you be able to provide (short) sample TTML documents with the expected WebVTT outcome?
from ttconv.
@wang-xinyu P.S.: Only one or two short samples are needed -- to make sure the conversion basically works and to create unit tests. You can use the renderer at https://www.sandflow.com/imsc1proc/index.html to render TTML.
from ttconv.
@palemieux Cool, got it, will do it by end of next week.
from ttconv.
@palemieux This the TTML example with region
<?xml version="1.0" encoding="UTF-8"?>
<!-- Subtitles file created by EZConvert V version 5.2.10 -->
<tt xml:lang="en-US" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" ttp:frameRate="24" ttp:frameRateMultiplier="1000 1001" ttp:profile="http://www.w3.org/ns/ttml/profile/imsc1/text" ttp:timeBase="media">
<head>
<metadata/>
<styling>
<style xml:id="style.center" tts:fontFamily="Arial" tts:fontSize="100%" tts:fontStyle="normal" tts:fontWeight="normal" tts:backgroundColor="transparent" tts:color="white" tts:textAlign="center"/>
</styling>
<layout>
<region xml:id="region.after" tts:displayAlign="after" tts:backgroundColor="transparent" tts:origin="10% 10%" tts:extent="80% 80%"/>
<region xml:id="region.before" tts:displayAlign="before" tts:backgroundColor="transparent" tts:origin="10% 10%" tts:extent="80% 80%"/>
</layout>
</head>
<body>
<div>
<p style="style.center" region="region.after" begin="00:00:03:12" end="00:00:12:00">Only one or two short samples are needed<br/>to make sure the conversion basically works</p>
<p style="style.center" region="region.before" begin="00:00:14:09" end="00:00:25:17">Cool, got it, will do it by end of next week.</p>
</div>
</body>
</tt>
from ttconv.
@wang-xinyu Please review #359
What VTT parser/renderer do you use for testing?
from ttconv.
@wang-xinyu Ping
from ttconv.
@palemieux Sorry for delayed reply, already replied in the PR.
And I usually use VLC, quicktime player to test webvtt subtitle.
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.