Posts

In search for Bertrand Russell

In search for Bertrand Russell on video.google.com, I found two video clips that I wouldn't have expected, one is a clip from an old bollywood movie where the hero is given an opportunity to conduct an interview with Russell and another is video of the song 'Jihad' by Singing Fools. The former is a bit surprising but I didn't quite catch the jihad song and it's connection with Russell. Also I knew that americans were supporting Jihad in the 80's but didn't know they were so loude and active in that.

clutter-gst

After I was informed about the existence of ClutterGstVideoSink, I quickly modified my super-video application to make it use that. But as soon as i did that, i stopped getting even the static image. After careful analysis for days, I figured that I was supposed to call gst_bus_add_signal_watch() on the pipeline bus since ClutterGstVideoSink uses messages on the bus combined with signal handlers to render the frames in the application thread. This is obviously a 'dirty' hack; a hack because gst elements are supposed to do all the media processing in the pipeline thread, dirty because gst bus is not meant for media transport. After this realization, I had been working on it from time to time. First I tried to make the actual rendering happen in the gst pipeline thread by using the clutter's thread safety primitives and that worked quite nicely in the end except for one minor problem: The call to clutters rendering thread blocks if it happens after the clutter main loop has b

Playing video on ClutterTexture

Image
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 impl

From 28M to 2.7M

Image
As some of you already know, I've been working on a simple AV-specific control-point as part of gupnp-tools. While at it, I've been trying to keep the UPnP AV parts as separate and generic as possible so that they could be move to a separate library later on. One of the first things that everyone wanted to create a nice wrapper for is the ugly DIDL-Lite. Jorn tried his best to convince me and others to not create a GObject for representing each DIDL-Lite object but I didn't listen and ended-up writing a very resource hungry API. To see what i mean, please look at memory usage of gupnp-av-cp after populating it's treeview with the content hierarchy exported by coherence: I was quite sure that most of this 28M is taken by xmlDoc and I was right. Now that I have got rid of xmlDoc usage and replaced the gobjects with an API to deal with xmlNodes, here is how the memory usage looks like: For people who are curious on how this simple AV control-point would look like, here is

I give-up!

Finally! I found a person who claims that Mango Lassi and Milk-shake taste different to him: Daf . So I see no choice but to change my claim to: Mango-Lassi is the name of a typical 'western' drink that consists of two extremely delicious items: Lassi and Mango. However, the drink is completely unknown to people who are born and raised in a particular town in the south-eastern part of Sindh which is famous for it's production of Mangoes and a particular Lassi shop all around Pakistan. IMHO, those people should not be blamed for their ignorance since they are quite far from the western world to know about such new inventions.

My first LEGO rover

Image
For some reason, I am unable to connect the mindstorm IDE to communicate with the mindstorm using bluetooth so I use USB for downloading my programs to NXT. Didn't get a lot of time to play with it but the first thing I would want to build is a rover that move in a straight line but turns left (or right) if something comes in front of it (already done) unless if it's a red ball in front of it and pick it up instead and keep going.

Mango and Lassi, two separate objects

There is no such thing as Mango Lassi. There is Lassi and then there is Mango, both very delicious but separate objects and both lose their taste as soon as you combine them. Unfortunately, many Indian/Nepalese restaurants in europe are spreading the wrong message just to simply their task of selling both on the same ignorant (of Indian cuisine) customer. I was already annoyed enough by the Waiter bringing me a Mango Lassi each time I order a Lassi in Nepalese restaurant and now I'll be seeing (maybe also using) a nice free software project by the same name. :(