Linux command
mkvpropedit 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Delete title
mkvpropedit -d title [path/to/file.mkv]
Example
mkvpropedit [path/to/file.mkv] -e track:s3 -s flag-hearing-impaired=1
Example
mkvpropedit [path/to/file.mkv] -e track:a2 -s flag-default=1
Delete name
mkvpropedit [path/to/file.mkv] -e track:v1 -d name
Example
mkvpropedit [path/to/file.mkv] -e track:a1 -s language=eng
List all editable properties
mkvpropedit -l
说明
mkvpropedit modifies properties of existing Matroska files without requiring a complete remux. It can edit segment information (titles, UIDs), track headers (language codes, names, flags), chapters, tags, and attachments. Track selectors use the format track:TYPE_NUMBER where TYPE is v (video), a (audio), s (subtitle), or b (button), and NUMBER starts at 1. Using track:n selects the nth track regardless of type.
参数
- -e, --edit _selector_
- Select segment info or track to edit (info, track:n, track:an, track:vn, track:sn)
- -s, --set _name=value_
- Set property value; creates if not exists
- -a, --add _name=value_
- Add property; allows duplicates
- -d, --delete _name_
- Remove property
- -t, --tags _selector:filename_
- Add, replace, or remove tags
- -c, --chapters _filename_
- Add, replace, or remove chapters
- --add-attachment _filename_
- Attach file to container
- --delete-attachment _selector_
- Remove attachment
- -l, --list-property-names
- Display all editable properties with descriptions
- -p, --parse-mode _mode_
- Set parsing mode: fast (default) or full for damaged files
- -v, --verbose
- Show Matroska elements as processed
FAQ
What is the mkvpropedit command used for?
mkvpropedit modifies properties of existing Matroska files without requiring a complete remux. It can edit segment information (titles, UIDs), track headers (language codes, names, flags), chapters, tags, and attachments. Track selectors use the format track:TYPE_NUMBER where TYPE is v (video), a (audio), s (subtitle), or b (button), and NUMBER starts at 1. Using track:n selects the nth track regardless of type.
How do I run a basic mkvpropedit example?
Run `mkvpropedit -d title [path/to/file.mkv]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --edit _selector_ do in mkvpropedit?
Select segment info or track to edit (info, track:n, track:an, track:vn, track:sn)