Skip to content

derVedro/Nautilus-fileconverter-43

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

nautilus-fileconverter

A python script to extend Nautilus using nautilus-python. There is a nemo branch as well.

Features

This programm can convert images, audio files and videos with the help of the default context menu in Nautilus.

It converts

  • image files to: JPEG, PNG, BMP, GIF, WebP
  • audio files to: MP3, WAV, AAC, FLAC, M4A, OGG, OPUS
  • video files to: MP4, WebM, MKV, AVI, GIF (bad quality), MP3, WAV

Install dependencies

The extension has a few dependencies which have to be installed.

nautilus-python needs to be installed to install extensions:

   Debian based distros:
    sudo apt install nautilus-python

   Fedora based distros:
    sudo dnf install nautilus-python

   Arch based distros:
    sudo pacman -Sy python-nautilus

python-pillow is needed to convert images. It can be installed using pip:

    pip install Pillow

ffmpeg is needed to convert audio and video.

   Debian based distros:
    sudo apt install ffmpeg

   Fedora based distros:
    sudo dnf install ffmpeg

   Arch based distros:
    sudo pacman -S ffmpeg

GNOME's file viewer Nautilus should be installed, otehrwise it will be hard to install extension to it.

note: The extension is only tested on Fedora Linux 37 (Workstation Edition). I can't guarantee that it's working for everyone.

Install the extension

  • Download the 'nautilus-fileconverter.py' file from Github.
  • For a systemwide installation move the file to '/usr/share/nautilus-python/extensions/' using this command in the dictonary with the file:
        sudo mv nautilus-fileconverter.py /usr/share/nautilus-python/extensions/nautilus-fileconverter.py
  • For a user spesific installation move the file to '~/.local/share/nautilus-python/extensions/' using this command in the dictonary with the file:
        mv nautilus-fileconverter.py ~/.local/share/nautilus-python/extensions/nautilus-fileconverter.py
  • Now you only have to restart Nautilus using the following commands:
        nautilus -q 
    
        nohup nautilus & disown

Usage

Just right click on an supported file and choose the "Convert to..." option. In this sub menu you can select any file type you want to convert to.

Converting a file can take some time. There is no indicator when the process is done, the context menu just freezes. If Gnome says that Nautilus is not responding while converting a large file, click 'wait', the process should continue.

If you experience any issues with the extension, please report it on the issues page.

Authors