[vlc-devel] [PATCH] Detecting language of subtitles using its filename

Eduardo Piombino drakorg at gmail.com
Sat Feb 2 19:26:01 CET 2013


Regarding the prefixes, I've found a reference for 2 and 3 digit codes that
you may find interesting:

http://www.science.co.il/language/Codes.asp?s=code3

Accepting both (2 and 3 digits) would be great.

Best regards,
Eduardo.


On Sat, Feb 2, 2013 at 3:13 PM, Eduardo Piombino <drakorg at gmail.com> wrote:

> Support for this "extension" should not break anything. Regular subs
> without the prefix should be accepted as always, but subtitles that meet
> this naming convention, if any, should be considered as alternative subs
> for the same movie. That's all.
>
> Regarding where it is accepted, as I stated, oppo player, and philips are
> aware of this convention (at least) and will decode the 2 letter prefix
> into the language (English for "en", Italian for "it", French for "fr",
> etc). I have seen some confussion for Spanish for example, where I've seen
> the "es", "esp", "sp" and "spa" prefixes.
>
> However, if you stick to some naming convention for automatic decoding,
> lets say "es", and leave the default behaviour of leaving the prefix intact
> (without decoding) if it doesnt match any of the names in the convention,
> then the worst that can happen is that it will show up as "ESP", and you
> will still know what it is. It's a huge step forward, with no backdraws.
> You can even use this default behaviour to give the track any custom name
> like Walter also suggested.
>
> If it can be extended or be improved further, no doubt of it, but it is a
> huge improvement over current state, where Track numbers don't do the job
> for describing its contents.
>
> Here are two more threads on this subject, plus the one that Walter has
> already posted.
>
>
> http://superuser.com/questions/346599/what-is-naming-convention-for-subtitle-files
>
> https://groups.google.com/forum/#!msg/mx-videoplayer/TjK8CZWtUhQ/WZDbNE18ogAJ
>
> Best regards,
> Eduardo
>
> On Sat, Feb 2, 2013 at 1:46 PM, Edward Wang <edward.c.wang at compdigitec.com
> > wrote:
>
>> On 13-02-02 11:44 AM, Eduardo Piombino <drakorg at gmail.com> wrote:
>>
>>> Hi, I dont think its in any RFC but at least its standarized.
>>>
>> Where? Do other media players support it?
>>
>> Also, does this patch break support for regular subtitles (without the
>> language extension)?
>>
>>
>> Regards,
>>         Edward Wang
>> ______________________________**_________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/**listinfo/vlc-devel<http://mailman.videolan.org/listinfo/vlc-devel>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130202/5b1ddb8a/attachment.html>


More information about the vlc-devel mailing list