[gst-devel] using xoverlay

Vinod Nanjaiah Vinod_Nanjaiah at mindtree.com
Fri Dec 14 16:42:21 CET 2007


Hi!

Can someone please help me in getting xoverlay to work.
I am able to play video in the default window, but I can't get the xoverlay
window to work.
I came acorss some example codes that suggested passing the videosink 
to gst_bus_set_sync_handler instead of pipeline. Even that didn't work.


I'm following the example code below (as given in gstxoverlay ref manual).
I don't have much idea about UI programming.


static GstBusSyncReply
create_window (GstBus * bus, GstMessage * message, GstPipeline * pipeline)
{
 // ignore anything but 'prepare-xwindow-id' element messages
 if (GST_MESSAGE_TYPE (message) != GST_MESSAGE_ELEMENT)
   return GST_BUS_PASS;
 if (!gst_structure_has_name (message->structure, "prepare-xwindow-id"))
   return GST_BUS_PASS;
 win = XCreateSimpleWindow (disp, root, 0, 0, 320, 240, 0, 0, 0);
 XSetWindowBackgroundPixmap (disp, win, None);
 XMapRaised (disp, win);
 XSync (disp, FALSE);
 gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC (message)),
win);
 gst_message_unref (message);
 return GST_BUS_DROP;
}

...
int
main (int argc, char **argv)
{
...
 bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
 gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline);
...
}


Regards,
Vinod

-----Original Message-----
From: gstreamer-devel-bounces at lists.sourceforge.net
[mailto:gstreamer-devel-bounces at lists.sourceforge.net] On Behalf Of
gstreamer-devel-request at lists.sourceforge.net
Sent: Friday, December 14, 2007 5:16 AM
To: gstreamer-devel at lists.sourceforge.net
Subject: gstreamer-devel Digest, Vol 19, Issue 21

Send gstreamer-devel mailing list submissions to
	gstreamer-devel at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
or, via email, send a message with subject or body 'help' to
	gstreamer-devel-request at lists.sourceforge.net

You can reach the person managing the list at
	gstreamer-devel-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gstreamer-devel digest..."


Today's Topics:

   1. help (Daniel Shachrur)
   2. rtpmp4gpay  server pipeline not working (kash)
   3. Re: help (Edward Hervey)
   4. Multi-track video container ? (Florent)
   5. using gstxoverlay (Vinod Nanjaiah)
   6. AVI metadata help - where's the date? (Dr. Michael J. Chudobiak)
   7. Re: AVI metadata help - where's the date? (Tim M?ller)
   8. Re: [gst-cvs] tpm gst-plugins-base:	gst-plugins-base/
      gst-plugins-base/gst-libs/gst/pbutils/ (Jan Schmidt)
   9. Re: Multi-track video container ? (Jan Schmidt)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Dec 2007 11:40:31 +0000
From: Daniel Shachrur <deneeel at hotmail.com>
Subject: [gst-devel] help
To: <gstreamer-devel at lists.sourceforge.net>
Message-ID: <BLU111-W43F83A432723BD59EF3CEFA9660 at phx.gbl>
Content-Type: text/plain; charset="windows-1255"


hi,
 
with mplayer i can use the -wid flag to indicate which widget will display
for example a video stream.
 
is there something of that kind with gstreamer?
 
 
thanks a lot
 
Daniel
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Thu, 13 Dec 2007 08:29:56 -0500 (EST)
From: "kash" <alwaysbcool at excite.com>
Subject: [gst-devel] rtpmp4gpay  server pipeline not working
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <20071213132956.DB0478A18D at xprdmxin.myway.com>
Content-Type: text/plain; charset="us-ascii"






hi,



i am trying to run this pipeline as server



 gst-launch-0.10 osssrc blocksize=4096 !
"audio/x-raw-int,rate=48000,channels=2" ! aacenc ! queue ! rtpmp4gpay !
udpsink port=5000 host=<ip>



but the thing is after just passing 2-3 audio buffers , the pipeline hangs , 



EOS message comes from aac encoder which i had placed in encoder PLUGIN .



 



any ideas





regards

kash



 





_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!





------------------------------

Message: 3
Date: Thu, 13 Dec 2007 17:45:22 +0100
From: Edward Hervey <bilboed at gmail.com>
Subject: Re: [gst-devel] help
To: Daniel Shachrur <deneeel at hotmail.com>
Cc: gstreamer-devel at lists.sourceforge.net
Message-ID: <1197564322.11378.1.camel at localhost>
Content-Type: text/plain

Hi,

  Use the gst_x_overlay_set_xwindow_id() method on your video sink.

    Edward

On Thu, 2007-12-13 at 11:40 +0000, Daniel Shachrur wrote:
> hi,
>  
> with mplayer i can use the -wid flag to indicate which widget will
> display for example a video stream.
>  
> is there something of that kind with gstreamer?
>  
>  
> thanks a lot
>  
> Daniel
> 
> 
> ______________________________________________________________________
> Express yourself instantly with MSN Messenger! MSN Messenger
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________ gstreamer-devel mailing
list gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




------------------------------

Message: 4
Date: Thu, 13 Dec 2007 17:09:52 +0100
From: Florent <fthiery at gmail.com>
Subject: [gst-devel] Multi-track video container ?
To: gstreamer-devel <gstreamer-devel at lists.sourceforge.net>
Message-ID:
	<1efe3a6e0712130809t760410ddyca2f8d8bb48a539c at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Is it currently possible to mux simultaneous live video sources (and
one audio) into one container ? In theory, both matroska and mp4
(among others) could do it, but i have really no idea if this is
possible using gstreamer/gst-ffmpeg.

Any hints would be appreciated, like videotestsrc gst-launch pipeline
samples (if this is doable).

Cheers

Florent



------------------------------

Message: 5
Date: Thu, 13 Dec 2007 21:55:57 +0530
From: "Vinod Nanjaiah" <Vinod_Nanjaiah at mindtree.com>
Subject: [gst-devel] using gstxoverlay
To: <gstreamer-devel at lists.sourceforge.net>
Message-ID:
	<16271F716C971E4BBBE29C45FA4A01380681D212 at mtw01ex01.mindtree.com>
Content-Type: text/plain;	charset="us-ascii"

Hi!
I am trying to use the gst_x_overlay_set_xwindow_id function as given in the
example code at
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-lib
s/html/gst-plugins-base-libs-gstxoverlay.html#GstXOverlay

But, my code doesn't reach till the point where is actually calls
gst_x_overlay_set_xwindow_id () since the 'prepare-xwindow-id' message is
never received from the bus.

Now, should I be posting 'prepare-xwindow-id' message myself?

Regards,
Vinod



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. If you have received this message by mistake please notify the
sender by return e-mail and delete this message from your system. Any
unauthorized use or dissemination of this message in whole or in part is
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for
viruses and defects. While MindTree Consulting Limited (MindTree) has put in
place checks to minimize the risks, MindTree will not be responsible for any
viruses or defects or any forwarded attachments emanating either from within
MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages
sent to or from MindTree e-mail address. Messages sent to or from this e-mail
address may be stored on the MindTree e-mail system or else where.



------------------------------

Message: 6
Date: Thu, 13 Dec 2007 16:26:45 -0500
From: "Dr. Michael J. Chudobiak" <mjc at avtechpulse.com>
Subject: [gst-devel] AVI metadata help - where's the date?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <4761A395.1040207 at avtechpulse.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi all,

I'm trying to modify gthumb to allow it to read video metadata using 
gstreamer. It works, but I seem to be missing something - exiftool can 
extract more metadata than gstreamer - like the original recording date. 
Is that to be expected?

For instance, an AVI from my Canon PowerShot SD800IS gives the following 
in exiftool:

[mjc at flay trunk]$ exiftool -s -G1 MVI_1082.AVI
[ExifTool]      ExifToolVersion                 : 7.00
[File]          FileName                        : MVI_1082.AVI
... snip ...
[RIFF]          FrameRate                       : 30
[RIFF]          MaxDataRate                     : 2024 kB/s
[RIFF]          FrameCount                      : 1103
[RIFF]          StreamCount                     : 2
[RIFF]          StreamType                      : Audio
[RIFF]          Codec                           :
[RIFF]          Quality                         : 10000
[RIFF]          SampleSize                      : 1 byte
[RIFF]          Encoding                        : Microsoft PCM
[RIFF]          NumChannels                     : 1
[RIFF]          SampleRate                      : 11024
[RIFF]          AvgBytesPerSec                  : 11024
[RIFF]          BitsPerSample                   : 8
[RIFF]          DateTimeOriginal                : 2007:11:23 20:46:30
[RIFF]          Software                        : CanonMVI06
... snip ...


but the gstreamer debug output only shows:

Tags: taglist, video-codec=(string)"Motion\ JPEG";
Tags: taglist, audio-codec=(string)"Uncompressed\ 8-bit\ PCM\ audio";
Tags: taglist, encoder=(string)CanonMVI06;

I would really like to extract the metadata date! (Beware that Exiftool 
renames all the tags using its own scheme...)

The source code for my metadata reader is here 
http://svn.gnome.org/viewvc/gthumb/trunk/libgthumb/gth-gstreamer-utils.c?view
=markup

Any help would be appreciated!


- Mike



------------------------------

Message: 7
Date: Thu, 13 Dec 2007 23:20:19 +0000
From: Tim M?ller <t.i.m at zen.co.uk>
Subject: Re: [gst-devel] AVI metadata help - where's the date?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <1197588019.9470.3.camel at zingle>
Content-Type: text/plain

On Thu, 2007-12-13 at 16:26 -0500, Dr. Michael J. Chudobiak wrote:

Hi,

> I'm trying to modify gthumb to allow it to read video metadata using 
> gstreamer. It works, but I seem to be missing something - exiftool can 
> extract more metadata than gstreamer - like the original recording date. 
> Is that to be expected?
>  (snip)
> [RIFF]          DateTimeOriginal                : 2007:11:23 20:46:30
> [RIFF]          Software                        : CanonMVI06
>  (snip)
> I would really like to extract the metadata date! (Beware that Exiftool 
> renames all the tags using its own scheme...)

Please file a bug/feature request in bugzilla and make a sample file
available then.

Cheers
 -Tim





------------------------------

Message: 8
Date: Thu, 13 Dec 2007 23:42:44 +0000
From: Jan Schmidt <thaytan at noraisin.net>
Subject: Re: [gst-devel] [gst-cvs] tpm gst-plugins-base:
	gst-plugins-base/	gst-plugins-base/gst-libs/gst/pbutils/
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <4761C374.9050605 at noraisin.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

tpm at kemper.freedesktop.org wrote:
> CVS Root:       /cvs/gstreamer
> Module:         gst-plugins-base
> Changes by:     tpm
> Date:           Thu Dec 13 2007  11:40:24 UTC
>
> Log message:
> 	* gst-libs/gst/pbutils/descriptions.c: (formats):
> 	  Add description for 'private' dts caps (who come up with that
name?).
>   
It's because of the fact that this mapping of DTS is from an MPEG-2 
'private stream'

J.
> Modified files:
>     .               : ChangeLog
>     gst-libs/gst/pbutils: descriptions.c
>
> Links:
>
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeL
og.diff?r1=1.3634&r2=1.3635
>
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-lib
s/gst/pbutils/descriptions.c.diff?r1=1.5&r2=1.6
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> gstreamer-cvs mailing list
> gstreamer-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs
>
>   




------------------------------

Message: 9
Date: Thu, 13 Dec 2007 23:46:20 +0000
From: Jan Schmidt <thaytan at noraisin.net>
Subject: Re: [gst-devel] Multi-track video container ?
To: Florent <fthiery at gmail.com>
Cc: gstreamer-devel <gstreamer-devel at lists.sourceforge.net>
Message-ID: <4761C44C.4070903 at noraisin.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Florent wrote:
> Hi,
>
> Is it currently possible to mux simultaneous live video sources (and
> one audio) into one container ? In theory, both matroska and mp4
> (among others) could do it, but i have really no idea if this is
> possible using gstreamer/gst-ffmpeg.
>   
Yes, any muxer that can accept 2 streams (1 audio, 1 video) can also 
usually do more of each and still be happy.

You just need to request more pads of each type... video_0, video_1, and 
send them data.

J.
> Any hints would be appreciated, like videotestsrc gst-launch pipeline
> samples (if this is doable).
>
> Cheers
>
> Florent
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>   




------------------------------

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

------------------------------

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


End of gstreamer-devel Digest, Vol 19, Issue 21
***********************************************


DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.




More information about the gstreamer-devel mailing list