CONTENTS DELETED
The author has deleted this message.
|
On Wed, 2011-08-03 at 20:22 -0700, g-newbie wrote:
Hi, > I need help here, on how to get the language of embedded subtitles in a MKV > video file. So far, i can only get the subtitle type, which is S_TEXT_ASS, > but can't find a way to get the languauge of the subtitle. There will be a tag event before the first buffer with a GST_TAG_LANGUAGE tag, if the language is known. If you're using playbin2, you can get this information via GstTagList *tags; g_signal_emit_by_name (playbin2, "get-text-tags", n, &tags); ... process tags ... gst_tag_list_free (tags); where n is the n-th subtitle stream counting from 0. Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
CONTENTS DELETED
The author has deleted this message.
|
On Thu, 2011-08-04 at 01:29 -0700, g-newbie wrote:
> Thanks so much for the reply. But, i encounter compile error: "error: > 'GST_TAG_LANGUAGE' undeclared (first use in this function)". Below is the > code snippet on how i do it. > (snip) > I've tried instead with GST_TAG_LANGUAGE_CODE, but it returns no such string > the tag. It should've been GST_TAG_LANGUAGE_CODE, sorry. Do you get any tags at all though? Like many other things, the "get-xyz-tags" action signal will most likely only work once you've set the pipeline to PAUSED or PLAYING state *and* it has prerolled (ie. you have gotten an ASYNC_DONE message on the pipeline's bus). You need to wait for it to preroll, you can't just query it right after doing the _set_state(). Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
CONTENTS DELETED
The author has deleted this message.
|
have a look ISO639,a snapshot is
{"zh", "Chinese"}, {"en", "English"}, {"ja", "Japanese"}, {"fr", "French"}, {"de", "German"}, {"ko", "Korean"}, {"ga", "Irish"}, {"it", "Italian"}, {"mn", "Mongolian"}, {"es", "Spanish"}, {"pt", "Portuguese"}, {"ru", "Russian"}, {"sa", "Sanskrit"}, {"und", "Undetermined"}, 在 2011-08-04四的 02:04 -0700,g-newbie写道: > Hi, thanks. I think i missed out that part. After having the pipeline > prerolled, is able to get tag for subtitle already. But it returns "und" for > the GST_TAG_LANGUAGE_CODE, while my subtitle is in chinese language. Is this > correct? > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Anyone-knows-how-to-retrieve-embedded-subtitle-language-tp3717597p3718050.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel --------------------------------------------------------------------------------------------------- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --------------------------------------------------------------------------------------------------- _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by g-newbie
On Thu, 2011-08-04 at 02:04 -0700, g-newbie wrote:
> Hi, thanks. I think i missed out that part. After having the pipeline > prerolled, is able to get tag for subtitle already. But it returns "und" for > the GST_TAG_LANGUAGE_CODE, while my subtitle is in chinese language. Is this > correct? Depends, you'd have to check what information is contained in the file headers. Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |