how to add taglist for languages other than english?

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

how to add taglist for languages other than english?

vijayp
Hi,
  I have developed plugins for wma.I am trying to display to meta in gst-auto-launch. For some streamsthe meta data are in Japanese language in wide char format
  But taglist will accept only utf8 format.
 
  I tried by using 'wcsrtombs" to convert the wide char to multi byte string  but when i tried to add the converted string to tag list using  gst_tag_list_add it is giving
  warning as :string format not in utf - 8 format.

  Can any one help me how to convert the wide char to utf8 for languages other than english ,and to add in tag list


Regards,
Vijay P
 




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

Re: how to add taglist for languages other than english?

Tim-Philipp Müller-2
On Thu, 2012-02-23 at 20:32 +0530, vijay wrote:

>   I have developed plugins for wma.I am trying to display to meta in
> gst-auto-launch. For some streamsthe meta data are in Japanese
> language in wide char format
>   But taglist will accept only utf8 format.
>  
>   I tried by using 'wcsrtombs" to convert the wide char to multi byte
> string  but when i tried to add the converted string to tag list using
> gst_tag_list_add it is giving
>   warning as :string format not in utf - 8 format.
>
>   Can any one help me how to convert the wide char to utf8 for
> languages other than english ,and to add in tag list

You might find these GLib APIs useful:
http://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html
http://developer.gnome.org/glib/stable/glib-Unicode-Manipulation.html

It's what asfdemux uses anyway ;)

 Cheers
  -Tim

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