jshttp / mime-db

Media Type Database
MIT License
1.09k stars 256 forks source link

Add file extensions for video/mp2t type #239

Closed pniewiejski closed 3 years ago

pniewiejski commented 3 years ago

While using https://github.com/jshttp/mime-types I noticed that it fails to perform lookup for *.m2ts files. Once this PR gets merged, published, and mime-types is updated to use the updated version of mime-db the problem should be resolved.

pniewiejski commented 3 years ago

Thanks for quick response. AFAIK This mime type was originally introduced in RFC 3555 and it’s also listed by iana (https://www.iana.org/assignments/media-types/video/MP2T) but they do not explicitly name “tsv”, “tsa”, “m2t”, “m2ts” as extensions, even though they are commonly used extensions.

I'll try to look up if they are not mentioned in some other documentation.

pniewiejski commented 3 years ago

Hi, Sorry for taking such a long time. I did look for a meaningful documentation that links these formats with video/mp2t but I only found a reference in Blu-ray. I thought that it would be easier to find some official documentation given that this mime type is commonly used with these extensions. I'm going to close this pull request.