简体   繁体   English

在Android和iOS上使用QT和QML编辑视频

[英]Edit video using QT and QML on Android and iOS

Is it possible to edit a video using QT/QML for Android and iOS? 是否可以使用QT / QML为Android和iOS编辑视频?

I would like to be able to trim a video from timeX to timeY and add (if possible) a watermark. 我希望能够将视频从timeX修剪到timeY并添加(如果可能)水印。

I did some research but I didn't find anything good. 我做了一些研究,但没有发现任何好处。

All Qt has to offer regarding video is contained in the Qt Multimedia library. Qt关于视频的所有内容都包含在Qt多媒体库中。

This library is not designed to do video editing, so you will have nothing out of the box. 该库并非旨在进行视频编辑,因此您将一无所获。

However, it might be possible to combine QMediaRecorder and QMediaPlayer to trim a video. 但是,有可能结合QMediaRecorderQMediaPlayer修剪视频。 And you also have access to video frames: https://doc.qt.io/qt-5/videooverview.html#working-with-low-level-video-frames 您还可以访问视频帧: https//doc.qt.io/qt-5/videooverview.html#working-with-low-level-video-frames

I am not sure you will be able to do what you want using only Qt Multimedia, you might be better off using a dedicated video editing library. 我不确定你是否能够只使用Qt Multimedia做你想做的事情,你可能最好使用专用的视频编辑库。 Maybe you can take a look at OpenShot, it is an open source video editor. 也许您可以看一下OpenShot,它是一个开源视频编辑器。 The user interface is built with Qt and the video editing functions are in a separate library: libopenshot . 用户界面使用Qt构建,视频编辑功能位于单独的库中: libopenshot

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM