Add Custom Mimetype Icon for HD Videos?

Everything about X, Gnome, KDE, ... and everything running on it

Add Custom Mimetype Icon for HD Videos?

Postby Fluke667 » 2018-10-19 19:10

I want to add a Custom Mimetype Icon for Videos over 720 width.

But there is no Tutorial on google and i have no idea how to do this...


Im Running Stretch with KDE and Breeze design
Fluke667
 
Posts: 3
Joined: 2018-10-14 11:04

Re: Add Custom Mimetype Icon for HD Videos?

Postby bw123 » 2018-10-19 20:52

I never tried it, but my first question would be:
How would you register a media type based on width?

found this interesting, thanks. Found it searching https://duckduckgo.com/html/?q=mimetype
https://en.wikipedia.org/wiki/Media_type

Maybe if you let people know *why* you want to handle these media types differently it would help get a better answer
User avatar
bw123
 
Posts: 3526
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Add Custom Mimetype Icon for HD Videos?

Postby Fluke667 » 2018-10-20 02:56

i have a big folder with alot Movies in different solutions 512x384 and 640x512 and 720x394

i want sort the Videos by solution or show them in any other way up with a icon
Fluke667
 
Posts: 3
Joined: 2018-10-14 11:04

Re: Add Custom Mimetype Icon for HD Videos?

Postby CwF » 2018-10-20 15:18

Interesting request.
i want sort the Videos by solution or show them in any other way up with a icon

I don't understand which way your looking at this.
One way is you want the 'file chooser dialog' or your file manager to sort your view by resolution. Here either program would need to look into the meta data of the file. Perhaps you're asking for an enhanced 'thumbnailer'.

It also occurs to me you might simple manually rename the files for order, simple enough.

Or create new 'mimetypes' as you say. Seems like a dead end of conflict.

Back to the thumbnailer point, I'm not all that familiar but I'm still looking for thiis kind of functionality in things and it seems missing. I want configurable balloon tips on everything...
CwF
 
Posts: 147
Joined: 2018-06-20 15:16

Re: Add Custom Mimetype Icon for HD Videos?

Postby bw123 » 2018-10-20 16:59

The filemanager idea is interesting. I know dolphin has tagging, maybe you could tag files over a certain resolution and then set a certain icon if the file has that tag? I'm not sure that would work, or the best/quickest way to use the tagging on multiple files. I don;t use dolphin much at all, but I think there are a couple of users here that are really good with it.

I don't think it's a mimetype issue, it sounds like you just want the icon changed, not open files with a different app.
User avatar
bw123
 
Posts: 3526
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Add Custom Mimetype Icon for HD Videos?

Postby stevepusser » 2018-10-20 17:11

The way most people handle it is to include "HD" or even the resolution in the file name, which makes sorting them trivial.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10130
Joined: 2009-10-06 05:53

Re: Add Custom Mimetype Icon for HD Videos?

Postby debiman » 2018-10-21 13:45

Fluke667 wrote:i have a big folder with alot Movies in different solutions 512x384 and 640x512 and 720x394

i want sort the Videos by solution or show them in any other way up with a icon


first of all: none of these is over 720px wide.
also, i must say that none of those specifies as HD nowadays.

may i assume you want to sort out those that are 720x394?

i look at some of my videos with
Code: Select all
file --mime somevideo.ext

and see nothing that would help.

of course you can script something with 'exiftool' or 'mediainfo', and move those files to a different folder, but that still doesn't give you different icons.
User avatar
debiman
 
Posts: 3017
Joined: 2013-03-12 07:18


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable