Re: kaa.metadata english language code

Dan Saul <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
On Tue, Aug 31, 2010 at 7:35 AM, Jason Tackaberry <[email protected]> wrote:
>
> On Tue, 2010-08-31 at 03:15 -0500, Dan Saul wrote:
>
> > With kaa.metadata version 0.7.7 it seems that the english language
> > code is omitted. All other language codes show however.
>
> Can you test with kaa.metadata svn?  English is certainly there and
> working.

I just updated to SVN.
>>> info = kaa.metadata.parse('/media/MEDIA-7A/Air Force One/Air Force One.mkv' )
>>> print info.audio[1].language
German
>>> print info.audio[0].language
None
>>> info = kaa.metadata.parse('/home/dan/Desktop/Air Force One (1).mkv' )
>>> print info.audio[0].language
Undetermined
>>> print info.audio[1].language
German
So the undetermined change works, however the original (which was set
to eng when packaged with mmg) still shows None.

I was surprised when I saw this as well. It didn't make sense to omit
the eng language code, seems like that reasoning should have been
thrown out when we all moved to UTF-8 ;-)

But with the und change at least I can work around it, and this is
true to the format at least.

>
> The mkv parser was discarding the 'und' language code though.  Not sure
> why but it does seem wrong.
>
>
> > What I propose is that either when the track doesn't have
> > a language code that you place the language code "eng"/"English". Or
> > that when the lang code is "und" that you show that as the lang code.
> > As it stands it is impossible to know whether the language is English
> > or Undetermined from what kaa.metadata returns.
>
> Indeed mmg does do this, this is really surprising.  It doesn't seem
> correct to me.  I don't see anything in the spec about this.  I'll look
> at the code for an explanation in the comments, or try the matroska
> forums if that's a bust.  I suppose it could be some backward
> compatibility behaviour, but I want to verify.
>
> Meanwhile I've committed a change to kaa.metadata to at least preserve
> 'und' language codes in Matroska files.
>
> Cheers,
> Jason.

Thanks for the quick response and update though!

Dan

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.