ffmeta
ffmeta is a simple Bash script for editing the title and description metadata of media files using your preferred text editor.
You can download the script here.
It extracts the existing metadata into temporary files, opens them for editing, then writes the updated values back to the original file without re-encoding the media.
Features
- Edit metadata in your favourite text editor
- Preserves audio and video streams (
-c copy) - Uses temporary files that are automatically cleaned up
- Supports any media format that FFmpeg can read and write metadata for
Requirements
- Bash
- FFmpeg (
ffmpegandffprobe)
Installation
Make the script executable:
chmod +x ffmetaOptionally place it somewhere in your PATH, for example:
sudo install -m755 ffmeta /usr/local/bin/Usage
ffmeta <media-file>Example:
ffmeta episode.mp3The script will:
- Extract the current title.
- Open it in your default editor.
- Extract the current description.
- Open it in your default editor.
- Save the updated metadata back to the original file.
Editor
The script uses the editor specified by the EDITOR environment variable.
For example:
export EDITOR=vimIf EDITOR is not set, it defaults to:
nano
Notes
The media streams are copied without re-encoding, so editing metadata is typically very fast.
Temporary files are removed automatically when the script exits.