The metadata format of ffmpeg lets me add chapters to a video file, I have to feed the input file to ffmpeg with the -map_metadata parameter, and all works as expected.
In the ffmpeg documentation, little is written about what can go in the metadata file, it mentions sections can be either [CHAPTER] or [STREAM]. So I thought if it was possible to also specify the language of a certain audio stream with this metadata file and have everything set with this one file, or do I have so set the language using -metadata:s:a:0 language=eng?
I’m not sure how I would specify which stream to address with a [STREAM] section.
I tried
[STREAM]
index=0
language=eng
but that adds only an empty subtitle stream with the language tag ‘eng’, but no possibility of changing the language of already present audio stream #0
So currently I have to do:
ffmpeg -i input.mp4 -i meta.txt -map_metadata 1 -metadata:s:a:0 language=eng -codec copy output.mp4
Any way to make this shorter?
and on another note: what would best be the audio tag for an audio commentary stream? I know on DVDs these are usually also labeled in the language they are spoken, so I would typically have two english tracks, and no indication that the 2nd track is an audio commentary.