3

I run ffmpeg -i 1.mp4 -map_metadata -1 -codec copy 2.mp4 to remove all the metadata. But ffmpeg add handler_name : SoundHandler to audio track and handler_name : VideoHandler to video track.

Is there a option to disable it?

I am running ffmpeg 3.4.

1 Answer 1

4

Edit: Now possible. You can specify a custom value, including an empty string to remove it.

ffmpeg -i 1.mp4 -map_metadata -1 -codec copy -metadata:s handler_name=somestring 2.mp4
9
  • I have submitted a bug report to ffmpeg. I will something else for replacement now.
    – Joshua
    Jun 17, 2018 at 11:14
  • Where's the bug?
    – Gyan
    Jun 17, 2018 at 11:32
  • 1
    @DavidMoles trac.ffmpeg.org/ticket/7262
    – Gyan
    Sep 24, 2019 at 18:33
  • 2
    You have to tell ffmpeg that an empty string is ok. Add -empty_hdlr_name 1
    – Gyan
    Mar 9, 2020 at 4:57
  • 1
    Wow, -empty_hdlr_name 1 worked, thanks! The complete command is ffmpeg -i input.m4a -c copy -metadata:s:a:0 handler_name='' -empty_hdlr_name 1 output.m4a
    – wisbucky
    Jun 18, 2021 at 9:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .