<br><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 12:14 PM, <span dir="ltr"><<a href="mailto:gstreamer-devel-request@lists.sourceforge.net">gstreamer-devel-request@lists.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send gstreamer-devel mailing list submissions to<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gstreamer-devel-request@lists.sourceforge.net">gstreamer-devel-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gstreamer-devel-owner@lists.sourceforge.net">gstreamer-devel-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gstreamer-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [PATCH] gst-plugins-good: add a TV-norm selection<br>
parameter to v4l2sink (Clark, Rob)<br>
2. Re: [PATCH] gst-plugins-good: add a TV-norm selection<br>
parameter to v4l2sink (Tim-Philipp M?ller)<br>
3. how to do remuxing using gstreamer (Venu Vemulapally)<br>
4. building a gst plugin (vineeth)<br>
5. Problem while hinting a media file. (Rajesh Marathe)<br>
6. Use of GST_PTR_FORMAT on non glibc targets unavailable?<br>
(Alberto Vigata)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 10 Mar 2010 18:47:50 -0600<br>
From: "Clark, Rob" <<a href="mailto:rob@ti.com">rob@ti.com</a>><br>
Subject: Re: [gst-devel] [PATCH] gst-plugins-good: add a TV-norm<br>
selection parameter to v4l2sink<br>
To: Guennadi Liakhovetski <<a href="mailto:g.liakhovetski@gmx.de">g.liakhovetski@gmx.de</a>><br>
Cc: "<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>"<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:CB2948C5-08E2-4C7A-A09A-436F079A339F@ti.com">CB2948C5-08E2-4C7A-A09A-436F079A339F@ti.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
I agree that an enum would be a good idea (have a look at "flags" property.. search for GST_TYPE_V4L2_DEVICE_FLAGS in gstv4l2object.c for an example)<br>
<br>
also.. I think it might be a good idea to put this property in gstv4l2object.c (see the install/get/set_property_helper functions).. so that both v4l2sink and v4l2src get the property.<br>
<br>
<br>
BR,<br>
-R<br>
<br>
On Mar 10, 2010, at 1:04 PM, Guennadi Liakhovetski wrote:<br>
<br>
> Linux video (v4l2) output drivers can support multiple TV norms, add a<br>
> parameter to the v4l2sink plugin to select one.<br>
><br>
> Signed-off-by: Guennadi Liakhovetski <<a href="mailto:g.liakhovetski@gmx.de">g.liakhovetski@gmx.de</a>><br>
> ---<br>
> Ok, I have no idea what's the patch submission procudure here, for now I<br>
> just followed the one I'm familiar with - from the Linux kernel. Feel free<br>
> to point me out to some doc.<br>
><br>
> diff -u a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c<br>
> --- a/sys/v4l2/gstv4l2sink.c 2010-03-08 16:41:32.000000000 +0100<br>
> +++ b/sys/v4l2/gstv4l2sink.c 2010-03-10 19:44:29.000000000 +0100<br>
> @@ -75,6 +75,7 @@<br>
> PROP_OVERLAY_LEFT,<br>
> PROP_OVERLAY_WIDTH,<br>
> PROP_OVERLAY_HEIGHT,<br>
> + PROP_TV_NORM,<br>
> };<br>
><br>
><br>
> @@ -251,6 +252,11 @@<br>
> "The height of the video overlay; default is equal to negotiated image height",<br>
> 0, 0xffffffff, 0, G_PARAM_READWRITE));<br>
><br>
> + g_object_class_install_property (gobject_class, PROP_TV_NORM,<br>
> + g_param_spec_string ("tv-norm", "TV norm",<br>
> + "One of NTSC-M, NTSC-J, NTSC-443, PAL-B, PAL-M, PAL-N",<br>
> + "NTSC-M", G_PARAM_READWRITE));<br>
> +<br>
> basesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_get_caps);<br>
> basesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_set_caps);<br>
> basesink_class->buffer_alloc = GST_DEBUG_FUNCPTR (gst_v4l2sink_buffer_alloc);<br>
> @@ -280,6 +286,7 @@<br>
><br>
> v4l2sink->overlay_fields_set = 0;<br>
> v4l2sink->state = 0;<br>
> + v4l2sink->tv_norm = V4L2_STD_NTSC_M;<br>
> }<br>
><br>
><br>
> @@ -367,6 +374,7 @@<br>
> gst_v4l2sink_set_property (GObject * object,<br>
> guint prop_id, const GValue * value, GParamSpec * pspec)<br>
> {<br>
> + const gchar *norm;<br>
> GstV4l2Sink *v4l2sink = GST_V4L2SINK (object);<br>
><br>
> if (!gst_v4l2_object_set_property_helper (v4l2sink->v4l2object,<br>
> @@ -395,6 +403,23 @@<br>
> v4l2sink->overlay_fields_set |= OVERLAY_HEIGHT_SET;<br>
> gst_v4l2sink_sync_overlay_fields (v4l2sink);<br>
> break;<br>
> + case PROP_TV_NORM:<br>
> + norm = g_value_get_string (value);<br>
> + if (strcmp (norm, "NTSC-M") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_NTSC_M;<br>
> + else if (strcmp (norm, "NTSC-J") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_NTSC_M_JP;<br>
> + else if (strcmp (norm, "NTSC-443") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_NTSC_443;<br>
> + else if (strcmp (norm, "PAL-B") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_PAL_B;<br>
> + else if (strcmp (norm, "PAL-M") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_PAL_M;<br>
> + else if (strcmp (norm, "PAL-N") == 0)<br>
> + v4l2sink->tv_norm = V4L2_STD_PAL_N;<br>
> + else<br>
> + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);<br>
> + break;<br>
> default:<br>
> G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);<br>
> break;<br>
> @@ -427,6 +452,28 @@<br>
> case PROP_OVERLAY_HEIGHT:<br>
> g_value_set_uint (value, v4l2sink->overlay.height);<br>
> break;<br>
> + case PROP_TV_NORM:<br>
> + switch (v4l2sink->tv_norm) {<br>
> + case V4L2_STD_NTSC_M:<br>
> + g_value_set_string (value, "NTSC-M");<br>
> + break;<br>
> + case V4L2_STD_NTSC_M_JP:<br>
> + g_value_set_string (value, "NTSC-J");<br>
> + break;<br>
> + case V4L2_STD_NTSC_443:<br>
> + g_value_set_string (value, "NTSC-443");<br>
> + break;<br>
> + case V4L2_STD_PAL_B:<br>
> + g_value_set_string (value, "PAL-B");<br>
> + break;<br>
> + case V4L2_STD_PAL_M:<br>
> + g_value_set_string (value, "PAL-M");<br>
> + break;<br>
> + case V4L2_STD_PAL_N:<br>
> + g_value_set_string (value, "PAL-N");<br>
> + break;<br>
> + }<br>
> + break;<br>
> default:<br>
> G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);<br>
> break;<br>
> @@ -591,6 +638,11 @@<br>
> return FALSE;<br>
> }<br>
><br>
> + if (!gst_v4l2_set_norm (v4l2sink->v4l2object, v4l2sink->tv_norm)) {<br>
> + GST_DEBUG_OBJECT (v4l2sink, "unsupported TV norm %llx", v4l2sink->tv_norm);<br>
> + return FALSE;<br>
> + }<br>
> +<br>
> gst_v4l2sink_sync_overlay_fields (v4l2sink);<br>
><br>
> v4l2sink->current_caps = gst_caps_ref (caps);<br>
> diff -u a/sys/v4l2/gstv4l2sink.h b/sys/v4l2/gstv4l2sink.h<br>
> --- a/sys/v4l2/gstv4l2sink.h 2009-11-20 10:59:46.000000000 +0100<br>
> +++ b/sys/v4l2/gstv4l2sink.h 2010-03-10 19:34:54.000000000 +0100<br>
> @@ -28,6 +28,7 @@<br>
> #include <gst/video/gstvideosink.h><br>
> #include <gstv4l2object.h><br>
> #include <gstv4l2bufferpool.h><br>
> +#include <linux/videodev2.h><br>
><br>
> GST_DEBUG_CATEGORY_EXTERN (v4l2sink_debug);<br>
><br>
> @@ -72,6 +73,7 @@<br>
> guint8 overlay_fields_set;<br>
><br>
> guint8 state;<br>
> + v4l2_std_id tv_norm;<br>
> };<br>
><br>
> struct _GstV4l2SinkClass {<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 11 Mar 2010 01:11:41 +0000<br>
From: Tim-Philipp M?ller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>><br>
Subject: Re: [gst-devel] [PATCH] gst-plugins-good: add a TV-norm<br>
selection parameter to v4l2sink<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Message-ID: <1268269901.14177.10.camel@zingle><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Wed, 2010-03-10 at 20:04 +0100, Guennadi Liakhovetski wrote:<br>
<br>
Hi,<br>
<br>
> Ok, I have no idea what's the patch submission procudure here, for now I<br>
> just followed the one I'm familiar with - from the Linux kernel. Feel free<br>
> to point me out to some doc.<br>
<br>
<a href="http://gstreamer.freedesktop.org/wiki/SubmittingPatches" target="_blank">http://gstreamer.freedesktop.org/wiki/SubmittingPatches</a> has some<br>
pointers.<br>
<br>
It would be great if you could put your patch into bugzilla so it's not<br>
forgotten about. Thanks!<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 10 Mar 2010 18:29:39 -0800<br>
From: Venu Vemulapally <<a href="mailto:venu.vemulapally@gmail.com">venu.vemulapally@gmail.com</a>><br>
Subject: [gst-devel] how to do remuxing using gstreamer<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Message-ID:<br>
<<a href="mailto:54a9a6551003101829p7e86fdc7pa50cdbf6e84480fe@mail.gmail.com">54a9a6551003101829p7e86fdc7pa50cdbf6e84480fe@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi All,<br>
<br>
I am trying to convert a MP4 container format AV file to TS file with<br>
out changing AV formats, Only I want to change the container format. Is it<br>
possible with gstreamer to achieve this ? If so how to do this please<br>
suggest me .<br>
<br>
<br>
Thanks,<br>
Venu<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 11 Mar 2010 09:49:14 +0530<br>
From: vineeth <<a href="mailto:nvineeth@gmail.com">nvineeth@gmail.com</a>><br>
Subject: [gst-devel] building a gst plugin<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Message-ID:<br>
<<a href="mailto:aee77e321003102019u4f1a27fdvdc2097b72b2fc72c@mail.gmail.com">aee77e321003102019u4f1a27fdvdc2097b72b2fc72c@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi all,<br>
I was going through the Plugin writers guide, and I sincerely feel that<br>
the chapter 9<<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-testapp.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-testapp.html</a>>should<br>
also describe how to build the test plugin "my_filter"<br>
that was described all the way along and also being used in the test app.<br>
BTW, I used the following command to do this,<br>
gcc `pkg-config --libs --cflags gstreamer-0.10` gstexamplefilter.c<br>
--shared -o ~/.gstreamer-0.10/plugins/libexamplefilter.so<br>
<br>
But was unable to load it,<br>
<br>
I got the following error message, when I ran it through valgrind :<br>
<br>
==3068== Memcheck, a memory error detector.<br>
==3068== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.<br>
==3068== Using LibVEX rev 1884, a library for dynamic binary translation.<br>
==3068== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.<br>
==3068== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation<br>
framework.<br>
==3068== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.<br>
==3068== For more details, rerun with: -v<br>
==3068==<br>
==3069== Invalid read of size 1<br>
==3069== at 0x42DC3D7: g_str_hash (in /usr/lib/libglib-2.0.so.0.2000.1)<br>
==3069== by 0x42AA3FA: g_hash_table_lookup (in<br>
/usr/lib/libglib-2.0.so.0.2000.1)<br>
==3069== by 0x42A3EB6: g_intern_string (in<br>
/usr/lib/libglib-2.0.so.0.2000.1)<br>
==3069== by 0x4095A48: (within /usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x4096F51: gst_plugin_load_file (in<br>
/usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x40A0B8E: (within /usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x40A0CA7: gst_registry_scan_path (in<br>
/usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x40547B2: (within /usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x40551AC: (within /usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x40568FA: (within /usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== by 0x42C7DCA: g_option_context_parse (in<br>
/usr/lib/libglib-2.0.so.0.2000.1)<br>
==3069== by 0x4055FA5: gst_init_check (in<br>
/usr/lib/libgstreamer-0.10.so.0.19.0)<br>
==3069== Address 0x1 is not stack'd, malloc'd or (recently) free'd<br>
<br>
ERROR: Caught a segmentation fault while loading plugin file:<br>
/home/pubuntu/.gstreamer-0.10/plugins/libexamplefilter.so<br>
<br>
Please either:<br>
- remove it and restart.<br>
- run with --gst-disable-segtrap and debug.<br>
....<br>
<br>
<br>
Any idea about what is going wrong?<br>
Thanks<br>
<br>
Br,<br>
V<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 11 Mar 2010 11:03:04 +0530<br>
From: Rajesh Marathe <<a href="mailto:rmarathe@i-rode.com">rmarathe@i-rode.com</a>><br>
Subject: [gst-devel] Problem while hinting a media file.<br>
To: Discussion of the development of GStreamer<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <1268285584.4329.9.camel@localhost.localdomain><br>
Content-Type: text/plain<br>
<br>
Hi,<br>
<br>
Can anybody please tell me how to 'hint' a media file so that I can<br>
stream RTSP (over TCP)/RTP (over UDP) media from Server to Gstreamer<br>
0.10.22 based clients ?<br>
<br>
regards,<br>
Rajesh Marathe.<br></blockquote><div> </div><div>Use "MP4Box -hint <mediafile>"<br>Rgds,<br>Satheesh.A<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 10 Mar 2010 22:32:04 -0800<br>
From: Alberto Vigata <<a href="mailto:alberto@nelalabs.com">alberto@nelalabs.com</a>><br>
Subject: [gst-devel] Use of GST_PTR_FORMAT on non glibc targets<br>
unavailable?<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Message-ID:<br>
<<a href="mailto:2ab842261003102232n5f3e5df3n2be1a193ef0f830a@mail.gmail.com">2ab842261003102232n5f3e5df3n2be1a193ef0f830a@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hello All,<br>
<br>
I was playing around with gstreamer today on windows using ossbuild<br>
available at <a href="http://code.google.com/p/ossbuild/" target="_blank">http://code.google.com/p/ossbuild/</a> and I stumbled?across<br>
with an issue regarding the customized printf style formatting<br>
GST_PTR_FORMAT that seems to be used pervasively around the code.<br>
Typical GST_PTR_FORMAT usage goes as follows<br>
<br>
GST_LOG ("caps are %" GST_PTR_FORMAT, caps);<br>
<br>
GST_PTR_FORMAT seems to resolve to either "p" or "P" depending on<br>
preprocessor defs, with the idea that the GST debug system will<br>
introduce %p or %P as a new format flag for g_printerr() that will<br>
take the GType following the format string and format it accordingly.<br>
<br>
My problem is that this is not working in my windows builds. After<br>
further inspection, seems that in order for this to work, the GST<br>
debug system is using 'register_printf_specifier' on gstinfo.c to<br>
register the new format types and then after some massaging ends<br>
calling g_printerr() of GLib to do the final debug output. Seems like<br>
'register_printf_specifier' is a glibc specific feature therefore is<br>
not available in any target that is not using glibc. This seems a<br>
little bit odd to me.<br>
<br>
Is GST_PTR_FORMAT really available only on glibc targets?<br>
<br>
thanks in advance,<br>
Alberto<br>
<br>
<br>
<br>
------------------------------<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
End of gstreamer-devel Digest, Vol 46, Issue 41<br>
***********************************************<br>
</blockquote></div><br>