gstreamer-devel Digest, Vol 15, Issue 56

Andol Li yandol at hotmail.com
Wed Apr 25 05:47:57 PDT 2012


hi everyone, 

I am Andol, currently a phd in huddersfield university in UK. The project I am about to do is about implementing opencv-based hand gesture recognition functions in a gstreamer plugin. my nick name in IRC is andol, my blog is 
http://www.andol.info/ , and the repository I am going to host my codes is github 
https://github.com/yandol/gstreamer-hand-recognitionI wish my work could provide some interesting features to gstreamer in terms of multimedia interactions .looking forward to working with you guys.

cheers

Andol 
===yandol at hotmail.comhttp://www.andol.info

> From: gstreamer-devel-request at lists.freedesktop.org
> Subject: gstreamer-devel Digest, Vol 15, Issue 56
> To: gstreamer-devel at lists.freedesktop.org
> Date: Tue, 24 Apr 2012 09:12:41 -0700
> 
> Send gstreamer-devel mailing list submissions to
> 	gstreamer-devel at lists.freedesktop.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> or, via email, send a message with subject or body 'help' to
> 	gstreamer-devel-request at lists.freedesktop.org
> 
> You can reach the person managing the list at
> 	gstreamer-devel-owner at lists.freedesktop.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gstreamer-devel digest..."
> 
> 
> Today's Topics:
> 
>    1. GSoC students welcome (Stefan Sauer)
>    2. Re: Audio Metadata (Stefan Sauer)
>    3. Re: GSoC students welcome (Peteris Krisjanis)
>    4. wavparser not negotiate with my plugin (rajashekar)
>    5. Re: Audio Metadata (Sree Gowri)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 24 Apr 2012 14:13:05 +0200
> From: Stefan Sauer <ensonic at hora-obscura.de>
> Subject: GSoC students welcome
> To: gstreamer-devel <gstreamer-devel at lists.freedesktop.org>
> Message-ID: <4F9698D1.1060401 at hora-obscura.de>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi,
> 
> this year we have 8 students working on various topics during the Google
> summer of code program. Welcome from the gstreamer community. I'd like
> to ask the students to introduce them self (just reply to this mail).
> Please tell a little about the work you are going to do, what your
> nickname in IRC is, where you have your blog and where you will host
> your code (e.g. github).
> 
> Happy hacking!
> 
> Stefan
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 24 Apr 2012 14:16:16 +0200
> From: Stefan Sauer <ensonic at hora-obscura.de>
> Subject: Re: Audio Metadata
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID: <4F969990.5090001 at hora-obscura.de>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 04/24/2012 11:18 AM, Sree Gowri wrote:
> >
> >
> > On Mon, Apr 16, 2012 at 12:53 AM, Stefan Sauer
> > <ensonic at hora-obscura.de <mailto:ensonic at hora-obscura.de>> wrote:
> >
> >     On 04/12/2012 06:23 AM, Sree Gowri wrote:
> >>     Hi,
> >>
> >>     I am trying to extract audio metadata like
> >>     streamurl,streamtitle,artist,genre,album.However I am not able to
> >>     extract the metadata using GstTagList. Below is the snippet of
> >>     the code. Does anyone suggest what are the additions to be done
> >>     in order to extract the metadata?
> >>
> >>     Only the following data has been extracted.
> >>                  layer: 3
> >>                  mode: joint
> >>                  emphasis: none
> >>                  audio codec: MPEG-1 layer 3
> >>                  bitrate: 128000
> >>
> >>     Pipeline is as follows:
> >>
> >>     [code]
> >>     app->pipeline= gst_parse_launch("appsrc name=mysource !
> >>     audio/mpeg  ! mad !  alsasink", NULL);
> >>     [/code]
> >     "appsrc name=mysource ! audio/mpeg  ! mp3parse ! mad !  alsasink"
> >     or even better
> >     "appsrc name=mysource ! audio/mpeg  ! decodebin2!  alsasink"
> >
> >     Stefan
> >
> >>
> >>     Audio data fed to the appsrc element
> >>
> >>     [code]
> >>     buf =( GstBuffer *) gst_app_buffer_new (data, READBUF, g_free, data);
> >>     g_signal_emit_by_name (GST_APP_SRC (app->appsrc), "push-buffer",
> >>     buf, &ret);
> >>     [/code]
> >>
> >>     Bus message
> >>
> >>     [code]
> >>     case GST_MESSAGE_TAG:
> >>     {
> >>         GstTagList *tags = NULL;
> >>             char *artist;
> >>             gst_message_parse_tag (message, &tags);
> >>             g_print ("Got tags from element %s:\n", GST_OBJECT_NAME
> >>     (message->src));
> >>             if (gst_tag_list_get_string (tags, GST_TAG_ARTIST, &artist))
> >>             {
> >>                printf("got artist: %s\n",artist);
> >>             }
> >>             else
> >>             {
> >>               printf("no artist!! \n");
> >>             }
> >>             gst_tag_list_foreach (tags, print_tag, NULL);
> >>             g_print ("\n");
> >>             gst_tag_list_free (tags);
> >>             break;
> >>     [/code]
> >>
> >>     print_tag function code
> >>     [code]
> >>     static void print_tag (const GstTagList * list, const gchar *
> >>     tag, gpointer unused)
> >>     {
> >>       gint i, count;
> >>       count = gst_tag_list_get_tag_size (list, tag);
> >>       for (i = 0; i < count; i++) {
> >>         gchar *str;
> >>         if (gst_tag_get_type (tag) == G_TYPE_STRING) {
> >>           if (!gst_tag_list_get_string_index (list, tag, i, &str))
> >>             g_assert_not_reached ();
> >>      
> >>         } else {
> >>           str =
> >>               g_strdup_value_contents (gst_tag_list_get_value_index
> >>     (list, tag, i));
> >>         }
> >>         if (i == 0) {
> >>           g_print ("  %15s: %s\n", gst_tag_get_nick (tag), str);
> >>         } else {
> >>           g_print ("                 : %s\n", str);
> >>         }
> >>         g_free (str);
> >>       }
> >>     }
> >>     [/code]
> >>
> >>     Thanks and Regards,
> >>     Sree Gowri
> >
> >       Hi stephan,
> >
> >       First would like to thank you for the input you provided.
> >    
> >       I tried both the pipelines that you have mentioned,however meta
> > data has not been    extracted.
> >  
> >      Kindly request you to let me know if there are any other changes
> > that needs to be done.
> 
> Are you sure the stream you are looking at is tagged with such metadata?
> Try gst-launch-0.10 -t playbin2 uri=...
> 
> Stefan
> 
> >  
> > Regards,
> > Sree Gowri
> >  
> >
> >>
> >>     _______________________________________________
> >>     gstreamer-devel mailing list
> >>     gstreamer-devel at lists.freedesktop.org <mailto:gstreamer-devel at lists.freedesktop.org>
> >>     http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >     _______________________________________________
> >     gstreamer-devel mailing list
> >     gstreamer-devel at lists.freedesktop.org
> >     <mailto:gstreamer-devel at lists.freedesktop.org>
> >     http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120424/9546a42b/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 24 Apr 2012 17:04:59 +0300
> From: Peteris Krisjanis <pecisk at gmail.com>
> Subject: Re: GSoC students welcome
> To: Stefan Sauer <ensonic at hora-obscura.de>
> Cc: gstreamer-devel <gstreamer-devel at lists.freedesktop.org>
> Message-ID: <1335276299.9959.30.camel at pecisk.vsaa.lv>
> Content-Type: text/plain; charset="UTF-8"
> 
> Hi everyone!
> 
> I'm Peteris Krisjanis, student from University of Latvia. I will
> implement Gstreamer based waveform widget, which could be used then by
> other applications to show waveform data. I plan to support caching for
> faster waveform redrawing, and to allow customisation, like having
> different wavform styles and adding overlays as cursors, fade points,
> etc.
> 
> My nick at freenode IRC (and elsewhere) is pecisk, my blog is
> pecisk.blogspot.com, and I plan to host my code in github
> https://github.com/Pecisk/waveformwidget.
> 
> See ya,
> Peter.
> 
> O , 2012-04-24 14:13 +0200, Stefan Sauer rakst?ja:
> Hi,
> > 
> > this year we have 8 students working on various topics during the
> Google
> > summer of code program. Welcome from the gstreamer community. I'd like
> > to ask the students to introduce them self (just reply to this mail).
> > Please tell a little about the work you are going to do, what your
> > nickname in IRC is, where you have your blog and where you will host
> > your code (e.g. github).
> > 
> > Happy hacking!
> > 
> > Stefan
> > 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 24 Apr 2012 07:37:22 -0700 (PDT)
> From: rajashekar <rajashekar.alusa at gmail.com>
> Subject: wavparser not negotiate with my plugin
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID: <1335278242961-4583694.post at n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
> 
> hi all,
> i wrote a plugin name my_plugin, it just push the buffer's to soruce pad
> whatever it receives on sinkpad.
> 
> the capabilities of source pad & sink pad are same, i.e.,
> audio/x-raw-int,
> signed = true, width = 16, depth = 16, rate = 8000, channels = [ 1, 2] ;
> 
> 
> now pipeline is :
> 
> gst-launch filesrc location=file.wav ! wavparse ! my_plugin ! alsasink 
> 
> then it shows error message is 
> 
> pipeline is prerolling...
> error from element Gstpipeline0: /pipeline/gstwavparse : wavparse0 :
> internal data flow error
> Additional debug info :
> gstwavparse.c(2048) : in gst_wavparse_loop : Gstpipeline0:
> /pipeline/gstwavparse : wavparse0
> streaming task paused, reason not linked (-1)
> ERROR : pipeline does not preroll
> setting pipeline to null
> 
> 
> if i change my plugin rate is 16000, then it is working fine, 
> what is problem,  can anybody explain please.
> 
> Advance Thanks
> rajashekar
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/wavparser-not-negotiate-with-my-plugin-tp4583694p4583694.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Tue, 24 Apr 2012 21:42:39 +0530
> From: Sree Gowri <sreegowris at gmail.com>
> Subject: Re: Audio Metadata
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID:
> 	<CAHHUHfGyoJb8m7PAyBbxVjTH+F6FF+jbS8pvvZKU_2dcuNVS4Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On Tue, Apr 24, 2012 at 5:46 PM, Stefan Sauer <ensonic at hora-obscura.de>wrote:
> 
> > **
> > On 04/24/2012 11:18 AM, Sree Gowri wrote:
> >
> >
> >
> > On Mon, Apr 16, 2012 at 12:53 AM, Stefan Sauer <ensonic at hora-obscura.de>wrote:
> >
> >>  On 04/12/2012 06:23 AM, Sree Gowri wrote:
> >>
> >> Hi,
> >>
> >> I am trying to extract audio metadata like
> >> streamurl,streamtitle,artist,genre,album.However I am not able to extract
> >> the metadata using GstTagList. Below is the snippet of the code. Does
> >> anyone suggest what are the additions to be done in order to extract the
> >> metadata?
> >>
> >> Only the following data has been extracted.
> >>              layer: 3
> >>              mode: joint
> >>              emphasis: none
> >>              audio codec: MPEG-1 layer 3
> >>              bitrate: 128000
> >>
> >> Pipeline is as follows:
> >>
> >> [code]
> >> app->pipeline= gst_parse_launch("appsrc name=mysource ! audio/mpeg  ! mad
> >> !  alsasink", NULL);
> >> [/code]
> >>
> >>  "appsrc name=mysource ! audio/mpeg  ! mp3parse ! mad !  alsasink"
> >> or even better
> >> "appsrc name=mysource ! audio/mpeg  ! decodebin2 !  alsasink"
> >>
> >> Stefan
> >>
> >>
> >> Audio data fed to the appsrc element
> >>
> >> [code]
> >> buf =( GstBuffer *) gst_app_buffer_new (data, READBUF, g_free, data);
> >> g_signal_emit_by_name (GST_APP_SRC (app->appsrc), "push-buffer", buf,
> >> &ret);
> >> [/code]
> >>
> >> Bus message
> >>
> >> [code]
> >> case GST_MESSAGE_TAG:
> >> {
> >>     GstTagList *tags = NULL;
> >>         char *artist;
> >>         gst_message_parse_tag (message, &tags);
> >>         g_print ("Got tags from element %s:\n", GST_OBJECT_NAME
> >> (message->src));
> >>         if (gst_tag_list_get_string (tags, GST_TAG_ARTIST, &artist))
> >>         {
> >>            printf("got artist: %s\n",artist);
> >>         }
> >>         else
> >>         {
> >>           printf("no artist!! \n");
> >>         }
> >>         gst_tag_list_foreach (tags, print_tag, NULL);
> >>         g_print ("\n");
> >>         gst_tag_list_free (tags);
> >>         break;
> >> [/code]
> >>
> >> print_tag function code
> >> [code]
> >> static void print_tag (const GstTagList * list, const gchar * tag,
> >> gpointer unused)
> >> {
> >>   gint i, count;
> >>   count = gst_tag_list_get_tag_size (list, tag);
> >>   for (i = 0; i < count; i++) {
> >>     gchar *str;
> >>     if (gst_tag_get_type (tag) == G_TYPE_STRING) {
> >>       if (!gst_tag_list_get_string_index (list, tag, i, &str))
> >>         g_assert_not_reached ();
> >>
> >>     } else {
> >>       str =
> >>           g_strdup_value_contents (gst_tag_list_get_value_index (list,
> >> tag, i));
> >>     }
> >>     if (i == 0) {
> >>       g_print ("  %15s: %s\n", gst_tag_get_nick (tag), str);
> >>     } else {
> >>       g_print ("                 : %s\n", str);
> >>     }
> >>     g_free (str);
> >>   }
> >> }
> >> [/code]
> >>
> >> Thanks and Regards,
> >> Sree Gowri
> >>
> >>        Hi stephan,
> >
> >       First would like to thank you for the input you provided.
> >
> >       I tried both the pipelines that you have mentioned,however meta data
> > has not been    extracted.
> >
> >      Kindly request you to let me know if there are any other changes that
> > needs to be done.
> >
> >
> > Are you sure the stream you are looking at is tagged with such metadata?
> > Try gst-launch-0.10 -t playbin2 uri=...
> >
> > Stefan
> >
> 
>    Yes the stream contains the metadata like streamTitle, streamUrl. In
> order to check does the stream really has metadata, appsrc buffer is
> written to a file and checked using hexedit and I can find the
> metadata.Sure will try your suggestion tomorrow and update you. Thankyou.
> 
> >
> >
> >
> > Regards,
> > Sree Gowri
> >
> >
> >>
> >> _______________________________________________
> >> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >>
> >>
> >>
> >> _______________________________________________
> >> gstreamer-devel mailing list
> >> gstreamer-devel at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >>
> >>
> >
> > _______________________________________________
> > gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120424/2efba888/attachment.htm>
> 
> ------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> End of gstreamer-devel Digest, Vol 15, Issue 56
> ***********************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120425/d1c205e7/attachment-0001.htm>


More information about the gstreamer-devel mailing list