[FFmpeg-user] Help with metadata writing (mp4)... what's possible?

Peter van Houten petervdh at gmail.com
Thu Dec 6 21:08:06 EET 2018

On Thursday December 6, 2018 at 20:26 <nortok00 at gmail.com> wrote:
> Hello all,
> I'm hoping someone can help with understanding writing metadata to files
> using ffmpeg. The type of metadata I'm referencing is information such as
> movie/song title, artist, album, author, genre, show, etc.

Not sure if this is comprehensive enough but here are a few from a
script I use to clear and/or insert metadata:

ffmpeg -i "$i" -c:v copy -c:a copy -c:s copy -metadata description=""
-metadata title="" -metadata year="" -metadata category="" -metadata
podcast="" -metadata genre="" -metadata artist="" -metadata date=""
-metadata album="" -metadata comment="" -metadata media_type=""
-metadata:s:v:0 title="" -metadata:s:v:0 language=eng -disposition:v:0
default -metadata:s:a:0 title="" -metadata:s:a:0 language=eng
-disposition:a:0 default -metadata:s:a:1 title="" -metadata:s:a:1
language=eng -disposition:a:1 none -metadata:s:a:2 title=""
-metadata:s:a:2 language=eng -disposition:a:2 none -metadata:s:a:3
title="" -metadata:s:a:3 language=fre -disposition:a:3 none
-metadata:s:a:4 title="" -metadata:s:a:4 language=ita -disposition:a:4
none -metadata:s:a:5 title="" -metadata:s:a:5 language=eng
-disposition:a:5 none -metadata:s:s:0 title="Default" -metadata:s:s:0
language=eng -disposition:s:0 none -metadata:s:s:1 title="Second"
-metadata:s:s:1 language=eng -disposition:s:1 none -metadata:s:s:2
title="Third" -metadata:s:s:2 language=dut -disposition:s:2 none
-metadata:s:s:3 title="Fourth" -metadata:s:s:3 language=fre
-disposition:s:3 none -metadata:s:s:4 title="Fifth" -metadata:s:s:4
language=eng -disposition:s:4 none -y "$o"


More information about the ffmpeg-user mailing list