Giter Site home page Giter Site logo

Support subtitles about rust-media HOT 5 OPEN

pcwalton avatar pcwalton commented on August 18, 2024
Support subtitles

from rust-media.

Comments (5)

SimonSapin avatar SimonSapin commented on August 18, 2024

What’s the scope of this? In a standalone media player, "subtitle support" might involve:

  1. Decoding various file formats
  2. Font management
  3. Text layout (including line breaking) and rendering
  4. Overlay/compositing on top of video frames

The first item should definitely be part of rust-media, but in the context of Servo everything else can (and should) be achieved by having the text be rendered as if it was in an HTML element. So all that logic should not be duplicated in rust-media. However this may not be idea for non-Servo users.

from rust-media.

pcwalton avatar pcwalton commented on August 18, 2024

I've been thinking that rust-media can accept features that are outside the scope of Servo, but they go behind Cargo features so that we can compile them out for Servo.

from rust-media.

pcwalton avatar pcwalton commented on August 18, 2024

That said, line breaking and text layout may want to be a separate crate entirely.

from rust-media.

SimonSapin avatar SimonSapin commented on August 18, 2024

Something like Pango? Yes, that would probably be useful to the Rust ecosystem at large. But I suggest we consider out of scope for rust-media at first, and reconsider if/when someone asks for it. A non-Servo user might happen to be using a UI toolkit that already does text rendering.

from rust-media.

pcwalton avatar pcwalton commented on August 18, 2024

Sounds good to me.

from rust-media.

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.