Giter Club home page Giter Club logo

Comments (9)

palemieux avatar palemieux commented on July 19, 2024

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.

wang-xinyu avatar wang-xinyu commented on July 19, 2024

@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.

palemieux avatar palemieux commented on July 19, 2024

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.

palemieux avatar palemieux commented on July 19, 2024

@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.

wang-xinyu avatar wang-xinyu commented on July 19, 2024

@palemieux Cool, got it, will do it by end of next week.

from ttconv.

wang-xinyu avatar wang-xinyu commented on July 19, 2024

@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.

palemieux avatar palemieux commented on July 19, 2024

@wang-xinyu Please review #359

What VTT parser/renderer do you use for testing?

from ttconv.

palemieux avatar palemieux commented on July 19, 2024

@wang-xinyu Ping

from ttconv.

wang-xinyu avatar wang-xinyu commented on July 19, 2024

@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)

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.