I’d like to see embedded cover arts as thumbnails for mkv files. This is possible using ffmegtumbnailer with the flag -m.
So I installed the thumbnailer and modified it’s config. However it doesn’t work, Nemo doesn’t show any thumbnail after installing it, not even without the flag -m.
When running the thumbnailer from a terminal, it gives an error:
tonyrulez@fedora:~/Video$ ffmpegthumbnailer -i sample.mkv -o test1.png
Error: Failed to open output file: test1.png
At the same time, SELinux alert pops up. It tells me to add a rule for it to work, so I do as it tells me:
I am not a selinux expert, but I think it would help if you could show the output of ausearch -c 'ffmpegthumbnail'. Then maybe some real expert can have a look at the message and see if it make sense.
And while you are at it: run ls -Z ~/Videos and post the output, restricted to the files in question. Normally it should look something like -rw-rw-r--. 1 laolux laolux unconfined_u:object_r:user_home_t:s0 136M 9 1 2020 sample.mkv
You can try outputting to ~/.cache/thumbnails/ or ~/.cache/thumbnails/normal vice videos. I’m not sure where Cinnamon/nemo normally puts them.
Sometimes, it can take multiple attempts to get SELINUX local policy modules working, for this one on my machine (F36/Gnome) it took three before the rule worked. I’d make the rule, try the command receive and additional SEALERT and update the rule again.
Hi @grumpey you are correct! Had no idea I have to run multiple times the selinux commands. After 3 tries it finally generated the thumbnail without an error, and in Nemo the thumbnails also started showing up.
… Appologies just figured this out:
put selinux in permissive mode sudo setenforce 0
command that’s causing you problems
and then generate the local policy module with all of the denials vice repeating it over and over again.
and then put selinux back in enforcing sudo setenforce 1