Coder Social home page Coder Social logo

Comments (2)

bmatherly avatar bmatherly commented on September 27, 2024

following shell will produce non-rotated text rendering in the video.

Rotated text is not supported when the pixel aspect ratio is not 1.0.

You can work around this by specifying a profile with square pixels.

For example, try this:
melt -profile atsc_720p_30 color:red out=250 -track -producer pango rotate=-90 text="Hello2" out=250 -transition composite

Result:
image

Your comments about the gravity are true, but not a bug. Just not implemented. We would welcome a patch to improve it. Also, just so you know, the pango producer is pretty old and has fallen out of favor for the qtext producer. I don't think that producer will support your rotation needs either. But if you are thinking about submitting code improvements, you might want to focus on qtext instead of pango.

from mlt.

myme5261314 avatar myme5261314 commented on September 27, 2024

Thanks for your help. It's good to know the rotate option of pango producer works with square pixel only.

I assume pango project still have some activities (https://gitlab.gnome.org/GNOME/pango/) and had already implemented the vertical text many years ago. (https://mces.blogspot.com/2007/05/advanced-opentype-features-in-pango.html)

Actually I can't find a proper way to implement vertical orientation text via qtext.
Even though qtext seems to support subset of html tags (https://doc.qt.io/qt-6/richtext-html-subset.html), but the most relevant feature lies in not included css property (https://developer.mozilla.org/en-US/docs/Web/CSS/text-orientation).

from mlt.

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.