When I try using the normal way in Windows 10, it throws an error. I have some videos I uploaded to a YouTube channel a long time ago, and I’d like to share them, but first I need to remove the metadata.

The normal way I do this for images is to right click and select “Remove Properties and Personal Information,” but when I try to do this with an mp4, it doesn’t succeed. I’ve checked the security settings to make sure I have full control over this file, which I do, but it seems impossible to remove this metadata. I’ve tried saving-as using VLC and even tried within different folders, but nothing works.

Surely there must be a tool to remove metadata from a mp4 just as there is with an image, but none of my searches have been helpful. I’d much appreciate it if anyone can help!

  • @Nawor3565@lemmy.blahaj.zone
    link
    fedilink
    English
    8
    edit-2
    8 months ago

    Use FFmpeg. You can copy only the audio and video channels (and subtitles) without anything else using a command like:

    ffmpeg -i INPUT.mp4 -map_metadata -1 -c:v copy -c:a copy -c:s copy OUTPUT.mp4

    • LinkOpensChest.wavOP
      link
      English
      18 months ago

      I’ve downloaded FFmepg in the past, but I’m too dull and non-techy to understand it. I’m bound to royally fuck up anything in command prompt. Is there a setting I can use in Windows to allow me to remove the metadata by right clicking like I can with documents or images?

      • @Nawor3565@lemmy.blahaj.zone
        link
        fedilink
        English
        5
        edit-2
        8 months ago

        You can try installing Handbrake, it’s basically a user interface to make using FFmpeg easier. As far as removing all the metadata with a click, I’m not aware of anything that does that.

        Honestly though, I think this is a simple enough case that you could figure it out even if you’re non-techy. The basic steps would be:

        • make a folder somewhere to keep everything in one place

        • download FFmpeg from here (this is one of the official Windows builds)

        • extract the 7z file you downloaded, there’s a folder inside called “bin” and inside of that should be three .exe files, one of which is just named “ffmpeg.exe”. Put that .exe into the folder you made earlier

        • open Notepad, copy/paste the command from my first comment into Notepad, and save it as something like “remove_metadata.bat” to your folder from earlier. In the window where you choose where to save the file, make sure you choose the file type “all files” from the drop down in order to save it as a .bat.

        After setting it up, you can just put any .mp4 into the same folder, rename it INPUT.mp4, and run your .bat file by double-clicking it. It should create a new file called OUTPUT.mp4 in the same folder with all of the metadata removed.

          • @Nawor3565@lemmy.blahaj.zone
            link
            fedilink
            English
            3
            edit-2
            8 months ago

            Sorry for the late reply, but it looks like somehow Notepad++ got set as the default program to open .bat files. Right click the .bat file, choose “open with”, and you should get an option to open it with command line / cmd.

            EDIT: or just change it to .cmd, which should work basically the same way.

            • LinkOpensChest.wavOP
              link
              English
              18 months ago

              I too am sorry for the late reply, but thank you so much! I’ll try it again asap.

        • LinkOpensChest.wavOP
          link
          English
          18 months ago

          I’ll try this, thanks! It’s really surprising though that you can’t just delete the metadata like you can with a normal file. Is there something unusual about mp4 format that disallows this?

          • @Nawor3565@lemmy.blahaj.zone
            link
            fedilink
            English
            38 months ago

            I think it’s just that software to edit video streams is inherently more complicated than editing images. Although the metadata shouldn’t be encoded into the streams, so maybe it’s just a case of no one has gotten around to making such a program yet.

  • @kurcatovium@lemm.ee
    link
    fedilink
    English
    3
    edit-2
    8 months ago

    I would probably use something like Musicbrainz Pickard or some more feature rich player like Foobar2000.

    • LinkOpensChest.wavOP
      link
      English
      18 months ago

      Haven’t heard of either one of these, thanks! Musicbrainz Pickard looks pretty intuitive based on the screenshots, and I like that it’s also available for Linux. I’ll try that one first.

      • @MiddledAgedGuy@beehaw.org
        link
        fedilink
        English
        28 months ago

        My two cents is that it’s a bit unintuitive, but ymmv. It’s not overly difficult though, and a great piece of software. So do try!

        • LinkOpensChest.wavOP
          link
          English
          18 months ago

          I just used it. It was easy enough to edit/remove metadata, which is all I want to do for now. It reminds me a bit of a Windows 95 era app, which is the time period when I became acclimated to Windows software.

          Anyway, it took just a few seconds to do what I want to do. I’m still quite baffled why removing/editing metadata in a mp4 is unsupported in Windows. It seems like such a basic thing.

          • @MiddledAgedGuy@beehaw.org
            link
            fedilink
            English
            2
            edit-2
            8 months ago

            Glad it worked out!

            Warning: soapbox. I feel like Windows is commonly considered to be user friendly. It may be easy enough to use, but I find it’s quite user hostile.

            • LinkOpensChest.wavOP
              link
              English
              18 months ago

              I totally agree with you about Windows. Even Microsoft’s forums are generally unhelpful if you don’t want to use their OS they way they think you should use it. I’m gradually switching to Linux and will not be using Windows 11. Whatever minor conveniences I may miss out on are worth moving to an OS built with users in mind and with a friendly community of people who are actually helpful.

              • @MiddledAgedGuy@beehaw.org
                link
                fedilink
                English
                27 months ago

                Yeah, I have to use Microsoft products for work and I’ve stumbled across their forums for issues before. I don’t think it’s ever once been helpful. Solutions on Linux forums are hit and miss, but still much better.

                Welcome to the Linux community!

            • LinkOpensChest.wavOP
              link
              English
              1
              edit-2
              7 months ago

              I finally got around to trying it, and I’ve realized that the “open with” option is absent from the right-click menu for some reason. I’m trying to find out why, but so far no luck. I checked the registry key, and it’s intact and should be giving me the option. I hate Windows.

              Edit: So after a lot of searching, I discovered that I must have had Notepad++ set up wrong, because I found a registry entry from Notepad++ in HKEY_CLASSES_ROOT \ .bat

              I didn’t want to just delete the value, so I ended up uninstalling Notepad++ from my PC entirely, and the “open with” option returned, and the registry entry disappeared. Notepad++ is a popular app, so I feel like a lot of the people I found by searching who have the same problem might have this app installed with the registry entry to remove “open with” from the .bat file extension specifically. I knew something was up because I tested other files on my PC, and “open with” was still there. So frustrating, but your solution works now! Thanks!

      • @kurcatovium@lemm.ee
        link
        fedilink
        English
        28 months ago

        Yeah, I use it on linux too. I’d substitute Foobar for Strawberry player on linux for playbacl and tags editing.

  • LinkOpensChest.wavOP
    link
    English
    18 months ago

    I figured out I can send it to myself on Molly, and the metadata will be automatically removed, but surely there’s a better way to do this very basic thing?

    Later, I’ll have access to my laptop that runs Linux, so I’ll see if it works there to do it in a more civilized manner.