Multiple GStreamer elements in a window

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple GStreamer elements in a window

Kenny Meyer
Hello,

I am writing an application to view multiple network cameras (webcams
over the Internet) on a wall in Python using the GTK+ toolkit, but I
need to gather ideas about how to do that.

I have 4 years experience with Python, but I just started to learn to
use GStreamer recently.

Basically, I have a GTK+ window, and I would like to display the camera
outputs in a grid (GTK H/VBoxes). I wrote code where each camera cell
would be a gtk.DrawingArea, but I cannot stop/play/pause the cameras on
demand.

I wonder if there would be a better approach?

Could you please point me to existing code samples, documentation, etc;
or give me further references to educational resources?


Cheers,
Kenny
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple GStreamer elements in a window

Olivier Aubert-2
Hello

Instead of "compositing" the videos through gtk, you could composite
them directly in gstreamer with the videomixer element.
This site
http://www.oz9aec.net/index.php/gstreamer/347-more-gstreamer-tips-picture-in-picture-compositing 
has great information and examples.

Regards,
Olivier

On Tue, 2011-02-15 at 21:30 -0300, Kenny Meyer wrote:

> Hello,
>
> I am writing an application to view multiple network cameras (webcams
> over the Internet) on a wall in Python using the GTK+ toolkit, but I
> need to gather ideas about how to do that.
>
> I have 4 years experience with Python, but I just started to learn to
> use GStreamer recently.
>
> Basically, I have a GTK+ window, and I would like to display the camera
> outputs in a grid (GTK H/VBoxes). I wrote code where each camera cell
> would be a gtk.DrawingArea, but I cannot stop/play/pause the cameras on
> demand.
>
> I wonder if there would be a better approach?
>
> Could you please point me to existing code samples, documentation, etc;
> or give me further references to educational resources?
>
>
> Cheers,
> Kenny
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple GStreamer elements in a window

Kenny Meyer
On Wed, Feb 16, 2011 at 5:58 AM, Olivier Aubert
<[hidden email]> wrote:

> Hello
>
> Instead of "compositing" the videos through gtk, you could composite
> them directly in gstreamer with the videomixer element.
> This site
> http://www.oz9aec.net/index.php/gstreamer/347-more-gstreamer-tips-picture-in-picture-compositing
> has great information and examples.
>
> Regards,
> Olivier
>
> On Tue, 2011-02-15 at 21:30 -0300, Kenny Meyer wrote:
>> Hello,
>>
>> I am writing an application to view multiple network cameras (webcams
>> over the Internet) on a wall in Python using the GTK+ toolkit, but I
>> need to gather ideas about how to do that.
>>
>> I have 4 years experience with Python, but I just started to learn to
>> use GStreamer recently.
>>
>> Basically, I have a GTK+ window, and I would like to display the camera
>> outputs in a grid (GTK H/VBoxes). I wrote code where each camera cell
>> would be a gtk.DrawingArea, but I cannot stop/play/pause the cameras on
>> demand.
>>
>> I wonder if there would be a better approach?
>>
>> Could you please point me to existing code samples, documentation, etc;
>> or give me further references to educational resources?
>>
>>
>> Cheers,
>> Kenny
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

Thanks Olivier! I thought about a single element (videomixer), but it
should be possible to trigger events for each "video" like
pause/play/stop. Can you do that with a single videomixer element?
It still seems a little obscure to me if you don't have separate elements.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple GStreamer elements in a window

Luis de Bethencourt
On Wed, Feb 16, 2011 at 12:27 PM, Kenny Meyer <[hidden email]> wrote:

> On Wed, Feb 16, 2011 at 5:58 AM, Olivier Aubert
> <[hidden email]> wrote:
>> Hello
>>
>> Instead of "compositing" the videos through gtk, you could composite
>> them directly in gstreamer with the videomixer element.
>> This site
>> http://www.oz9aec.net/index.php/gstreamer/347-more-gstreamer-tips-picture-in-picture-compositing
>> has great information and examples.
>>
>> Regards,
>> Olivier
>>
>> On Tue, 2011-02-15 at 21:30 -0300, Kenny Meyer wrote:
>>> Hello,
>>>
>>> I am writing an application to view multiple network cameras (webcams
>>> over the Internet) on a wall in Python using the GTK+ toolkit, but I
>>> need to gather ideas about how to do that.
>>>
>>> I have 4 years experience with Python, but I just started to learn to
>>> use GStreamer recently.
>>>
>>> Basically, I have a GTK+ window, and I would like to display the camera
>>> outputs in a grid (GTK H/VBoxes). I wrote code where each camera cell
>>> would be a gtk.DrawingArea, but I cannot stop/play/pause the cameras on
>>> demand.
>>>
>>> I wonder if there would be a better approach?
>>>
>>> Could you please point me to existing code samples, documentation, etc;
>>> or give me further references to educational resources?
>>>
>>>
>>> Cheers,
>>> Kenny
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
> Thanks Olivier! I thought about a single element (videomixer), but it
> should be possible to trigger events for each "video" like
> pause/play/stop. Can you do that with a single videomixer element?
> It still seems a little obscure to me if you don't have separate elements.

This shouldn't be a problem.

Luis
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel