Comment 20 for bug 502642

Revision history for this message
Oliver Joos (oliver-joos) wrote : Re: .ts files always get recognized as application/x-linguist and never as video/mpeg (transport stream)

@Sebastien: thanks for asking about the magic. This made me running the hard test described in last comment. Now I fixed the last false positives.

To accomplish this I added another 2 bits to the magic mask to only match if a transport stream is not scrambled. This is no big problem because scrambled streams could not be handled by common apps anyway. With this mask GIMP resources don't match anymore. In an installed Karmic not a single file matches. So now I consider it to be safe to include it in Lucid (LTS).

Furthermore I removed the glob pattern *.m2t from video/mpeg. According to http://en.wikipedia.org/wiki/MPEG_transport_stream and bug #89543 it should match video/mp2t.

A sample transport stream file is attached to the last comment.
[Correction of last comment: I took the proposal of Daniel Leidert, not Stanislav - see upstream]