Comment 2 for bug 502642

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

Binary package hint: shared-mime-info

I checked Hardy, Jaunty and Karmic: *.ts files are always mapped to application/x-linguist by /usr/share/mime/packages/freedesktop.org.xml. But there are several Linux-based settop boxes that record videos in *.ts-files. So if application/x-linguist is obsolete then it should simply be replaced by video/mpeg. Otherwise the mime framework has to distinguish such files by inspecting their headers. If someone knows more about x-linguist files, please add a comment!

The problem has already been reported upstream two month ago (see freedesktop.org above). But for 10.04 LTS we should fix it by a patch, if it is not fixed upstream by then.

As a workaround copy the attached file to ~/.local/share/mime/packages/mpeg-ts.xml and update your mime-database with:
$ update-mime-database ~/.local/share/mime

To trigger the regeneration of failed thumbnails just delete them:
$ rm ~/.thumbnails/fail/gnome-thumbnail-factory/*.png

ProblemType: Bug
Architecture: i386
Date: Sun Jan 3 17:47:29 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: shared-mime-info 0.70-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=de_CH.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: shared-mime-info
Uname: Linux 2.6.31-16-generic i686