-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to burn a Qt type to video? #560
Comments
Got an answer for the QML type, using grabToImage seems to work just fine as it creates a QImage. Now just to get it into the video, Timeline and Clip should be the right way for it, I guess. |
Timeline and Clip was indeed the answer :) |
@Megued That's actually an interesting problem. As heavily as it uses Qt, the libopenshot API is very Qt-unfriendly. Mostly that's because its feature are primarily targeted to OpenShot's needs, so it tends to fill those but can be lacking in areas beyond that. But maybe it doesn't have to be. There's no reason there couldn't be a reader that's a better Qt citizen, like a My thinking is, No reason it needs to be limited to In fact maybe it should just be a Reopening for an idea possibly worth exploring. Thanks! (Oh, and glad you solved your thing, too. 😉) |
|
That's OK, you wanna talk roundabout? Here's how OpenShot thumbnails media files: It calls |
Sorry, dumb fingers. |
Hello,
I'm using the library for a simple project in Qt and I'm wondering it's possible to burn a QML type (for example a Rectangle) to the video.
Using this simple example:
If I understand right, I can use the
WriteFrame()
function to write aopenshot::Frame
and add a QImage to it.In theory that should work, but I'm stuck at the part of creating a QImage of a Rectangle.
Maybe I have the wrong way of thoughts about how to accomplish this, or if it's even possible to do it this way, but I decided to ask if anyone has some kind of hints of how to do it.
I'm sure I need a custom component so it can be displayed to the user and referenced to the writer, I just can't think of one that would accomplish this, maybe a subclass of QQuickPaintedItem would suffice or a QPixmap Class?
The text was updated successfully, but these errors were encountered: