3 ms·
I've implemented something similar with Gstreamer for my own work. Gstreamer has some of the most disorganized documentation known to man, though, and if someth
by m0zg 7y ago
I've implemented something similar with Gstreamer for my own work. Gstreamer has some of the most disorganized documentation known to man, though, and if something doesn't work, you have to do elaborate googling first to figure out what's wrong (error messages aren't generally helpful) and then experiment with how to fix it. There are also 2 distinct incompatible versions of it in the wild: 0.10 and 1.0.
Needless to say, I strongly suspect very few researchers have enough dev chops to meaningfully use Gstreamer. When it does work, though, it's pretty great, and it offers reasonable integration with GTK and can be made to work with Cairo. I got it to the point where it works for what I need to do, but I wouldn't want to release the code on GitHub because it's relatively high maintenance.
Interestingly I ended up with a similar layout: a set of frame producers (video file, webcam, sequence of jpegs), 2 video sinks (gtk and mp4), and the code to draw stuff in between (using PyCairo for vector and PIL for raster).
- jadielam 7y agoI am glad to receive some validation on my approach. The way you did and the way I am doing it seems very natural to me. I explored the gstreamer way at the beginning, but thought that I wanted to build something that would work out of the bat.
- jadielam 7y agoI think you should release the code. It might be helpful in its own ways.
- namibj 7y agoI hate how publishing on github makes people assume they have _any_ obligations to/for it. Just make an issue with the title "Use it as YOU see fit; I don't maintain this; if you pay I will probably look at your request" (the last is optional) . The sheer existence of this helps. You don't pay for hosting.
- abledon 7y agoWow if you figured out how to get gstreamer working -congrats . I’d love a gist in python explaining how to set it up —- the docs are so hard to understand