Anyone knows how to retrieve embedded subtitle language?

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Aug 4 01:40:39 PDT 2011


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



More information about the gstreamer-devel mailing list