[Interest] QML Record video without audio
I'm trying to produce a file containing only video frames, but muted and audioChannels seems to be ignored? This is on OSX, but it's an app for android. I'm not sure if I'm doing it wrong, or if it's nto supported by the platform? Camera { videoRecorder { audioChannels: 0 muted: true mediaContainer: "mp4" videoEncodingMode: CameraRecorder.ConstantQualityEncoding resolution: camera.viewfinder.resolution } } ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QML and video
On which platform are you? Embedded Linux using GStreamer as multimedia backend? Yoann Lopes Senior Software Engineer - Digia, Qt Visit us on: http://qt.digia.com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QML and video
Not directly answering your question Jeff, but anyway, I recommend looking into using bc-cat on the SGX if possible. http://processors.wiki.ti.com/index.php/OpenGLES_Texture_Streaming_-_bc-cat_User_Guide You will have to write your own video render item for Qt Quick, because you need a special texture lookup in the fragment shader (it's not a regular texture). Also you need a custom video surface class (inheriting QAbstractVideoSurface), that will upload the texture for you using bc-cat. Apart from the faster texture uploads, bc-cat also automatically converts YUV to RGB for you so there is no need for YUV-RGB conversions in the shader (also faster). Cheers, Ola 2014/1/17 Lopes Yoann yoann.lo...@digia.com On which platform are you? Embedded Linux using GStreamer as multimedia backend? Yoann Lopes Senior Software Engineer - Digia, Qt Visit us on: http://qt.digia.com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QML and video
Embedded Linux using GStreamer as multimedia backend, correct. It's a TI DM8148 processor, very similar to their OMAP processors with the SGX GPU. In Qt 4.8, it was pretty straight forward using video through QML, it lent itself to using the EGL through QPainterVideoSurface. I am thinking that I need to add EGL properties to the QSGVideoItemSurface, or better yet, create my own MyVideoSurface. Any thoughts? Best regards, Jeff Lancaster • Sr Software Engineer • jlancas...@vivint.com • P: 801.229.6010 • C: 801.xxx. simply smarter • vivint.com 2500 West Executive Pkwy. Lehi, UT 84043 From: Lopes Yoann [yoann.lo...@digia.com] Sent: Friday, January 17, 2014 4:14 AM To: Jeff Lancaster Cc: interest@qt-project.org Subject: Re: [Interest] QML and video On which platform are you? Embedded Linux using GStreamer as multimedia backend? Yoann Lopes Senior Software Engineer - Digia, Qt Visit us on: http://qt.digia.com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QML and video
Using the follow sample qml code: import QtQuick 2.0 import QtMultimedia 5.0 Rectangle { width: 800 height: 600 color: black MediaPlayer { id: player source: my_ip_cam autoPlay: true } VideoOutput { id: videoOutput source: player anchors.fill: parent } } In Qt 4.7 qml used my EGL libraries to render the video properly and at-speed using my SGX module on my system. However, Qt 5.2 does not appear to use the EGL libraries or my SGX module on my system. I am not sure exactly how it is being rendered, the video runs but it is very slow and jerky. I noticed that 4.7 used qpaintervideosurface wherein 5.2 uses some qsgvideoitemsurface that is foreign to me. In 4.7 I successfully connected the EGL libraries to the qpaintervideosurface and it worked nicely with QML. Question: How can I get QML to use EGL libraries to render video? Best regards, Jeff Lancaster • Sr Software Engineer • jlancas...@vivint.com • P: 801.229.6010 • C: 801.xxx. simply smarter • vivint.com 2500 West Executive Pkwy. Lehi, UT 84043 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest