setting metadata tags in ges

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

setting metadata tags in ges

sumeeth kc
Hi all,
  In gstreamer editing services, I was trying to cut a file, which works fine. However, I would also like to copy the tags from the original file to the cut file. I am retrieving the input file tags via GST_MESSAGE_TAG, however to set the tags on the muxer, I dont have the reference to call gst_tag_setter_merge_tags(), since I believe the muxer exists inside the encode bin of the ges pipeline. How can I retrieve the reference to the muxer?

Thanks.
--Sumeeth.

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

Re: setting metadata tags in ges

Edward Hervey
Administrator
Hi,

On Tue, 2011-04-26 at 16:03 +0530, sumeeth kc wrote:
> Hi all,
>   In gstreamer editing services, I was trying to cut a file, which
> works fine. However, I would also like to copy the tags from the
> original file to the cut file. I am retrieving the input file tags via
> GST_MESSAGE_TAG, however to set the tags on the muxer, I dont have the
> reference to call gst_tag_setter_merge_tags(), since I believe the
> muxer exists inside the encode bin of the ges pipeline. How can I
> retrieve the reference to the muxer?

  You could retrieve the reference to the muxer by recursively searching
in encodebin (through gst_bin_iterate_elements()) for an element whose
factory klass contains 'Muxer' *or* that implements the GstTagSetter
interface.

  Ideally we should make encodebin implement the TagSetter interface
(and proxy the various calls to the contained compatible elements).

    Edward

>
> Thanks.
> --Sumeeth.
> _______________________________________________
> 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: setting metadata tags in ges

sumeeth kc
Thanks Edward for the response.

Regards,
Sumeeth

On Tue, Apr 26, 2011 at 7:30 PM, Edward Hervey <[hidden email]> wrote:
Hi,

On Tue, 2011-04-26 at 16:03 +0530, sumeeth kc wrote:
> Hi all,
>   In gstreamer editing services, I was trying to cut a file, which
> works fine. However, I would also like to copy the tags from the
> original file to the cut file. I am retrieving the input file tags via
> GST_MESSAGE_TAG, however to set the tags on the muxer, I dont have the
> reference to call gst_tag_setter_merge_tags(), since I believe the
> muxer exists inside the encode bin of the ges pipeline. How can I
> retrieve the reference to the muxer?

 You could retrieve the reference to the muxer by recursively searching
in encodebin (through gst_bin_iterate_elements()) for an element whose
factory klass contains 'Muxer' *or* that implements the GstTagSetter
interface.

 Ideally we should make encodebin implement the TagSetter interface
(and proxy the various calls to the contained compatible elements).

   Edward

>
> Thanks.
> --Sumeeth.
> _______________________________________________
> 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


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