Hi,
trying to make a less knwon video intergate into kde. The video is played without trouble by mplayer,vlc and kaffeine - just the extension "*.mts" and magic is unknown to most tools.
Dolphin should recognise the file type and generate previews as it does for any other video formats.
So I have
$ cat ~/.kde/share/mimelnk/video/x-pana.desktop [Desktop Entry] Type=MimeType MimeType=video/x-mpeg Patterns=*.mts; DefaultApp=mplayer
Doplhin still says it is a "mts type document" and not doing any previews. Added magic to /etc/magic so that "file" works.. no progress:(
Any idea how to do it?
Richard
--- Name and OpenPGP keys available from pgp key servers
Am 18.01.2014 23:19, schrieb Richard Z:
trying to make a less knwon video intergate into kde. The video is played without trouble by mplayer,vlc and kaffeine - just the extension "*.mts" and magic is unknown to most tools.
Dolphin should recognise the file type and generate previews as it does for any other video formats.
So I have
$ cat ~/.kde/share/mimelnk/video/x-pana.desktop [Desktop Entry] Type=MimeType MimeType=video/x-mpeg Patterns=*.mts; DefaultApp=mplayer
Doplhin still says it is a "mts type document" and not doing any previews. Added magic to /etc/magic so that "file" works.. no progress:(
Any idea how to do it?
did you create ~/.kde/share/mimelnk/video/x-pana.desktop by hand? if yes why?
right click a file -> properties -> settings for file extension
On Sat, Jan 18, 2014 at 11:33:10PM +0100, Reindl Harald wrote:
Am 18.01.2014 23:19, schrieb Richard Z:
trying to make a less knwon video intergate into kde. The video is played without trouble by mplayer,vlc and kaffeine - just the extension "*.mts" and magic is unknown to most tools.
Dolphin should recognise the file type and generate previews as it does for any other video formats.
So I have
$ cat ~/.kde/share/mimelnk/video/x-pana.desktop [Desktop Entry] Type=MimeType MimeType=video/x-mpeg Patterns=*.mts; DefaultApp=mplayer
Doplhin still says it is a "mts type document" and not doing any previews. Added magic to /etc/magic so that "file" works.. no progress:(
Any idea how to do it?
did you create ~/.kde/share/mimelnk/video/x-pana.desktop by hand? if yes why?
yes - did not find any other way.
right click a file -> properties -> settings for file extension
this is F19 and both dolphin and konqueror offer me file->properties but no settings there. I tried around with the properties menu.
Richard
--- Name and OpenPGP keys available from pgp key servers
Am 18.01.2014 23:54, schrieb Richard Z:
did you create ~/.kde/share/mimelnk/video/x-pana.desktop by hand? if yes why?
yes - did not find any other way.
right click a file -> properties -> settings for file extension
this is F19 and both dolphin and konqueror offer me file->properties but no settings there. I tried around with the properties menu
simply not true, any kde version offers it see screenhsot (very low quality because list limits)
On Sun, Jan 19, 2014 at 12:27:25AM +0100, Reindl Harald wrote:
Am 18.01.2014 23:54, schrieb Richard Z:
did you create ~/.kde/share/mimelnk/video/x-pana.desktop by hand? if yes why?
yes - did not find any other way.
right click a file -> properties -> settings for file extension
this is F19 and both dolphin and konqueror offer me file->properties but no settings there. I tried around with the properties menu
simply not true, any kde version offers it see screenhsot (very low quality because list limits)
yes, I have played with this setting before. It is called "File Type Options" in en_US, hence the confusion.
This dialog allows me to specify which programs to launch when doubleclicked but I don't see how I could use it to specify a mime type. When I select the video in file manager it still says "mts document" as mime type and still no preview. Btw changing the text field saying "Decription:mts document" for some reason does not work?
Richard
--- Name and OpenPGP keys available from pgp key servers
On Sun, Jan 19, 2014 at 12:27:25AM +0100, Reindl Harald wrote:
Am 18.01.2014 23:54, schrieb Richard Z:
did you create ~/.kde/share/mimelnk/video/x-pana.desktop by hand? if yes why?
yes - did not find any other way.
Some progress - got it working, though it feels very hackish at the moment. None of the recipes or books that were on the internet seems to work.
There is an undocumented "kmimetypefinder" program that can be run from commandline and apparently displays what kde thinks the file type is.
In my case it displayed "application/x-extension-mts.xml", a strace did reveal that this comes from ~/.local/share/mime/application/x-extension-mts.xml
I have moved that file to ~/.local/share/mime/video/mts.xml and edited it to contain mimetype video/mp4.
Now "kmimetypefinder *.mts" says kmimetypefinder(27645) KMimeType::findByUrlHelper: Glob file refers to "application/x-extension-mts" but this mimetype does not exist! video/mp2t (accuracy 20)
and dolphin works as expected. Looking again at the strace it seems that the application/x-extension-mts.xml was the problem and removing it would be enough to fix the problem.
How do I find out where application/x-extension-mts.xml was generated from? How do I override it properly?
Richard
--- Name and OpenPGP keys available from pgp key servers
On Sat, Jan 18, 2014 at 11:54:37PM +0100, Richard Z wrote:
On Sat, Jan 18, 2014 at 11:33:10PM +0100, Reindl Harald wrote:
right click a file -> properties -> settings for file extension
this is F19 and both dolphin and konqueror offer me file->properties but no settings there. I tried around with the properties menu.
looking at konqueror/settings/configure/file associations there are already video/mp2t, video/mp4 and video/x-msvideo associations for files ending "*.mts".
That doesn´t seem enough?
Richard
--- Name and OpenPGP keys available from pgp key servers