Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Jason H
I looked into Micheal's solution and it's clever. However I would try a few things: 1. Use QImage's QImage::Format_RGB888, and use scanLine() to dump the image line by line to stdout. (Scanline is so much faster) 2. Try to paralellize it. Perhaps you have X cores, start X processes, offset each

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 10:00 AM, Jason H wrote: > I did something like this a long time ago in QML (Before Qt3D, QtQuick 1): > 1. There is some kind of frame advance, so you set up the animations as > you want, then you start the animation and render the first frame to an >

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Ian Geiser
On Mon, 18 Apr 2016 09:40:12 -0400 Scott Aron Bloom wrote > The forum had a great thread on this > > https://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 I saw this thread, but it did not seem to offer a clear detail other than

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Jason H
I did something like this a long time ago in QML (Before Qt3D, QtQuick 1): 1. There is some kind of frame advance, so you set up the animations as you want, then you start the animation and render the first frame to an image. Then call frame advance and get the next frame, repeat. 2. Then use

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
On Monday 18 April 2016 09:28:00 Andy wrote: > On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > > Hi, > > > > I think it's possible, although it's not an out of the box feature yet, as > > Harald pointed out. > > > > Have a look into this kind of approach: > > > > *

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
On Monday 18 April 2016 15:46:14 Harald Vistnes wrote: > If anyone try out Sean's suggestion and get it to work, it would be great > it they share an example so we don't all have to reinvent the wheel :) Or even better, contribute it to Qt 3D so everyone can benefit from it out of the box. :)

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Harald Vistnes
If anyone try out Sean's suggestion and get it to work, it would be great it they share an example so we don't all have to reinvent the wheel :) Harald 2016-04-18 15:28 GMT+02:00 Andy : > On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > >> Hi,

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Scott Aron Bloom
The forum had a great thread on this https://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 -Original Message- From: Interest [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Ian Geiser Sent: Monday, April 18, 2016 5:36 AM To:

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > Hi, > > I think it's possible, although it's not an out of the box feature yet, as > Harald pointed out. > > Have a look into this kind of approach: > > * Implement something similar to the Scene3DItem that allows to

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
Hi, I think it's possible, although it's not an out of the box feature yet, as Harald pointed out. Have a look into this kind of approach: * Implement something similar to the Scene3DItem that allows to embed Qt 3D into a Qt Quick 2 scene * This requires using a little bit of private (for

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 8:57 AM, Michael Sué wrote: > Hi, > > You may be able to use ffmpeg (the program not the library) via pipe as > described in the "writing section" here: > > > http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/ > >

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Ola Røer Thorsen
2016-04-18 14:38 GMT+02:00 Andy : > On Mon, Apr 18, 2016 at 3:26 AM, Harald Vistnes > wrote: > >> Hi Andy, >> >> An alternative is to use the FFMPEG encoding library instead of the >> command line tools. Then you can pass each frame to the video

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Michael Sué
Hi, You may be able to use ffmpeg (the program not the library) via pipe as described in the "writing section" here: http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/ They use Python but it should work with C++ as well, I assume. And using the program

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 3:26 AM, Harald Vistnes wrote: > Hi Andy, > > An alternative is to use the FFMPEG encoding library instead of the > command line tools. Then you can pass each frame to the video encoder as > you generate it without writing them all to disk first.

[Interest] Replacement for Qt Script

2016-04-18 Thread Ian Geiser
Greetings, I have used QtScript in a non-gui application before to write plugins for the application. This was really slick and worked well. I am working on a new application and wish again to use QtScript in a non-gui context. I am given the impression QtScript is deprecated and it is to

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 2:51 AM, Bo Thorsen wrote: > Den 18-04-2016 kl. 05:46 skrev Andy: > >> Goal: generate video with a user-specified resolution, frame rate, & >> container/codec format from an animation in my Qt3D window >> >> (Disclaimer: I've never worked with video

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Harald Vistnes
Hi Andy, An alternative is to use the FFMPEG encoding library instead of the command line tools. Then you can pass each frame to the video encoder as you generate it without writing them all to disk first. The natural way to generate the QImages would be to render to an offscreen surface of the

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Bo Thorsen
Den 18-04-2016 kl. 05:46 skrev Andy: Goal: generate video with a user-specified resolution, frame rate, & container/codec format from an animation in my Qt3D window (Disclaimer: I've never worked with video files before!) As far as I can tell, Qt doesn't provide a way to generate video files