Playing video on ClutterTexture
I thought this would be an easy task and should be doable in a weekend but seems I wasn't completely correct in my assumption. What I did was to try to modify the super-oh example application to make it render frames from videotestsrc element of gstreamer, instead of the OH logo (no offense OH guys). For some reason the animation stops after I render the first frame. All I get is a static image like this:
My hunch is that I am just missing something small here so if anyone have a clue, please let me know. Here is the source.
I know that using fakesink's handoff signal isn't the recommended way to do this but I'll concider writing a cluttersink after I get this simple app. working.
UPDATE: I've been informed about the existance of ClutterGstVideoTexture and ClutterGstVideoSink by Emmanuele and Ross. Looking at the sources, I think I'll need to hack on it to support YUV (if it's available). That shouldn't be a problem but I would also want to try to implement this trick to bring hope to poor ATI grahics card users like me.
My hunch is that I am just missing something small here so if anyone have a clue, please let me know. Here is the source.
I know that using fakesink's handoff signal isn't the recommended way to do this but I'll concider writing a cluttersink after I get this simple app. working.
UPDATE: I've been informed about the existance of ClutterGstVideoTexture and ClutterGstVideoSink by Emmanuele and Ross. Looking at the sources, I think I'll need to hack on it to support YUV (if it's available). That shouldn't be a problem but I would also want to try to implement this trick to bring hope to poor ATI grahics card users like me.
Comments
Also there is some YUV support but YMMV. Would be interesting if you can integrate that referenced mailing list post.
Thanks for trying out clutter!