Commit Graph

22 Commits

Author SHA1 Message Date
Tats
cb0deae5f1 Base implementation of play/pause/rewind (working, still adjustments to do in the GUI) 2014-06-23 16:54:44 -04:00
Vasilis Liaskovitis
78d8f88e52 MediaImpl: Do buffer pull in "new-sample" gstreamer callback
Doing the buffer pull in the gstreamer "new-buffer" callback decreases the work
needed to be done by the videoPull() thread. This seems to give lower average
timestamps between successive draw/updatecanvas() calls, so perhaps better
framerates can be achieved.

In order to decouple videoPull from pulling the buffer, an async queue is
introduced between the gstreamer "new-sample" callback and the qt videoPull
function. On the release path, gst_sample_unref is decoupled from the qt side by
putting the already used frame in an output async queue. The bffers in the queue
are unreferenced in the gst "new-sample" callback.
2014-05-10 16:26:37 +02:00
Vasilis Liaskovitis
4c80d2c543 MediaImpl: ALways do memcpy, no conversion needed
Because of the RGBA caps, bpp will always be 32
2014-05-10 16:11:59 +02:00
Alexandre Quessy
4776dd2717 fix 2014-05-09 20:20:43 -04:00
Vasilis Liaskovitis
7177796844 MediaImpl: always set bitsChanged to true to avoid texture "flickering" 2014-05-09 14:57:30 -04:00
Vasilis Liaskovitis
f914b84be6 MediaImpl: remove gst_sample_ref to avoid leak
The gst_sample pulled from the appsink is already reference counted. We just
need to unref it after copying it, which we do.

If we reference it again, the sample/buffer is not freed - I have seen the app
crashing while consuming most of system memory (can lead OS to out-of-memory
condition) before this commit.
2014-05-09 14:57:15 -04:00
Vasilis Liaskovitis
b818fd3926 "new-sample" callback should return GstFlowReturn 2014-05-09 14:57:00 -04:00
Alexandre Quessy
f4ecddd664 we can assume depth and bpp of 32 2014-05-08 16:38:18 -04:00
Alexandre Quessy
f23fa9cb9d add a FIXME 2014-05-08 16:14:02 -04:00
Alexandre Quessy
7177d62f90 remove useless endl in prints 2014-05-08 16:06:31 -04:00
Alexandre Quessy
4426142f80 fix pixel format bug - but playback still doesn't 2014-05-08 16:03:15 -04:00
Alexandre Quessy
7f1cea5553 Aparently, no need for bpp=32,depth=32 2014-05-08 15:09:22 -04:00
Alexandre Quessy
19b3ca3826 build against GStreamer 1.0 2014-05-08 13:03:02 -04:00
Tats
ad67794978 Removed reversal of data (prevented by changing the way we select texture coordinates). 2014-05-03 19:27:40 -04:00
Alexandre Quessy
c36a7b8f67 FIX: Play movies when load a project 2014-05-03 11:46:33 -04:00
Alexandre Quessy
6fa7379c84 Fix: Media URI doesn't stay when changed via OSC 2014-05-03 11:31:50 -04:00
Tats
2574841b9c Fixed bug: reverse video image (was showing upside down) 2014-05-02 00:24:15 -04:00
Alexandre Quessy
79583fbe1f less verbose 2014-04-30 21:37:24 -04:00
Alexandre Quessy
69640f8e32 just more prints 2014-04-30 16:15:46 -04:00
Tats
ca9ba38682 Performance improvement: copy texture bits to video card only if they have changed 2014-04-26 13:32:27 +01:00
Tats
ce305140a8 Allow media filenames (URI) with accents (ie. utf8) 2014-04-26 12:38:28 +01:00
Tats
430b0f223a Refactor Video -> Media 2014-04-26 12:22:33 +01:00