Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.ml

9 replies

lemm.ee

If you are talking about the mkv embedded title, try this:

find -type f -iname "*.mkv" | while read "i" ; do mkvpropedit "${i}" --edit info --set "title=" ; done
17
retmasreply
lemm.ee

Current directory and all its subdirectories - to be exact :)

You can execute the find command only (with arguments, so until the pipe) to verify modified files beforehand.

7

Seems like it has a CLI. You can figure out how to do this action with a CLI command, then do something like find -name *mkv -exec ... to execute that command for all the files.

4

Why? mkvpropedit already does everything OP wants. No need to get ffmpeg involved.

1

I've been using some ancient java app called jmkvpropedit to do this.

1
sopuli.xyz

Someone with more experience on sed or awk should chime in, but out of memory something like this (which MOST LIKELY WONT WORK, verify it before running it on anything important):

find -name *mkv -exec sed -e's/file=.*/file=' > {}.changed \;

That, at least in theory, reads every .mkv file recursively in a current working directory, finds lines that contain "file=" and replace that with "file=" and stores the output to .changed.

1

Emacs Dired would be my goto here, though it's cumbersome if you dont know the bindings.

kill-rectangle and multiple-cursors within Dired are immensely useful

Edit: Oh, I just understood you want to mass modify the files themselves. In which case wgrep is useful here within Emacs, for modifying multiple buffers.

It essentially runs a grep command on a directory, collates all the results in a single buffer, lets you modify that buffer for all files, and then save in one go

1

You reached the end

aaa | Spyke