file title is an option present on mkvtoolnix (92.0 eyeglow on debian 12.11)

I could single open every file, remove the file title and save, but that’s gonna take ages. almost 100 files.

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 days ago

    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=<whatever><EOL>” and replace that with “file=<EOL>” and stores the output to <original filename>.changed.

    • DaPorkchop_@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

      I would be very hesitant to run sed on a bunch of files consisting primarily of highly compressed binary data.