Reply To: SpaceFM – How to show frame size info of video file?

#60885
Xecure
Member

    I don’t know how to create custom columns, or have menu items display the result of a command, but I know how to create menu items that, when clicked, run a command and give you the output.

    0. Right-click on a video file inside SpaceFM.
    1. Move the mouse inside the Properties submenu and right-click on “Info” menu entry.
    2. Select New > Command Insert
    3. Give the menu entry a Name (example: Video Resolution
    4. Move to the “Command” tab if not already there, and add this as the command:
    ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 %f
    5. Go to the “Context” tab and in “Edit Rule” add this option:

    MIME Type, Begins with
    video

    Remember to click Add so it adds as a rule.
    6. Click OK and now you will have a Video Resolution option (that will only show in Properties> below Info when right-clicking on a video) you can click to get the Video resolution.

    Test it out.

    If there is a better way, so that the menu Item name displays the result instead of having to be clicked, please let us know.

    antiX Live system enthusiast.
    General Live Boot Parameters for antiX.