Nemo - View Additional Attributes in File details

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
anandrkris

Nemo - View Additional Attributes in File details

Post by anandrkris »

Hi,

For video files, i would like to see the duration of the file w/o opening it. Is this currently available? View > Visible columns has very few options in my opinion.

Regards,
Anand
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
eanfrid

Re: Nemo - View Additional Attributes in File details

Post by eanfrid »

You can install "mediainfo-gui" and create a nemo script action available with a right-click on the file in nemo.

Open your "~/.local/share/nemo/actions" folder and create this file: mediainfo.nemo_action, then put this inside:

Code: Select all

[Nemo Action]
Name=Media properties
Comment=Media properties
Exec=mediainfo-gui %F
Icon-Name=mediainfo
Selection=S
Extensions=mp3;avi;flv;<whatever>;
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

Thanks. It worked like a charm. :) A helpful and neat workaround but appearing as a column would be better, say, to sort, by duration,etc. I should perhaps put a feature request on this.

Update - https://github.com/linuxmint/nemo/issues/337 added here.
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

Hello!

I installed "mediainfo-gui" and made that file in "~/.local/share/nemo/actions" folder but nothing new happens... Can you help me with this? I don't know where I made a wrong step...
eanfrid

Re: Nemo - View Additional Attributes in File details

Post by eanfrid »

So what is the actual content of your "/home/<username>/.local/share/nemo/actions/mediainfo.nemo_action" ?
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

I put the code you give:

Code: Select all

[Nemo Action]
Name=Media properties
Comment=Media properties
Exec=mediainfo-gui %F
Icon-Name=mediainfo
Selection=S
Extensions=mp3;avi;flv;<whatever>;
eanfrid

Re: Nemo - View Additional Attributes in File details

Post by eanfrid »

"<whatever>" is supposed to be a valid file extension in this file :)

Mine is:

Code: Select all

[Nemo Action]
Name=Propriétés média
Comment=Propriétés Mediainfo
Exec=mediainfo-gui %F
Icon-Name=mediainfo
Selection=S
Extensions=mp3;avi;flv;webm;mp4;mkv;
Also, maybe are you running an older nemo release where scripts support was not yet actually working ?
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

Haha, silly me! :D :D

I'm using Nemo 1.8.3
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

But still, when I change that, nothing happens... Do I need to do something else?
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

TRZALICA wrote:But still, when I change that, nothing happens... Do I need to do something else?
There should be an additional option "Media properties" when you right-click a media file in Nemo. It doesnt show up?
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

After restart it shows up... Weird, before even for bigger corrections or modifications restart wasn't necessary...

Thanks for help!!

Are there any signs that this will be implemented in Nemo in a near future?? Because, this is quite irritating lapse...

P.S. I still can't see how long video file is on this way... :/
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

Hmm. I am not currentl;y at my home PC where I have this installed. But I remember seeing duration in a pop-up like this.
[rimg]http://pricklytech.files.wordpress.com/2011/10/mediainfo.png[/rimg]

Could you add your comments https://github.com/linuxmint/nemo/issues/337 here? If more users request for this, perhaps might get picked up soon.
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

After I once again do the steps as it was described, it finally works! :)

I will add my comment on github and I hope that Mint team will add these functionalities soon.
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

Good news. Looks like it is fixed and should be available in daily build ppa shortly, as per developer comments.
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

anandrkris wrote:Good news. Looks like it is fixed and should be available in daily build ppa shortly, as per developer comments.
But it isn't available yet :(
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

Its working for me. You have to install nemo-media-columns from the repo.
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

How to do that? I searched in Synaptic and nothing there... Where did you find that?
anandrkris

Re: Nemo - View Additional Attributes in File details

Post by anandrkris »

[url]http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-nightly/ubuntu/[/url] - Check here and add the PPA. Am running development daily build of cinnamon which gives latest updates. Please note it could be unstable although I haven't faced any issues. Obviously, not recommended for production usage.
TRZALICA

Re: Nemo - View Additional Attributes in File details

Post by TRZALICA »

Thanks! :) I appreciate your help!
bobzilla

Re: Nemo - View Additional Attributes in File details

Post by bobzilla »

Sorry to bump but that line should say

Code: Select all

Exec=mediainfo-gui "%F"
The fix doesn't seem to have made it to the Arch repos yet.
Locked

Return to “Cinnamon”