4
2
I have a bunch of movies in avi format on my disk. However, they don't contain any metadata like title etc.
I found a command which would do it for me :
ffmpeg -i input.avi -metadata title="Moonshine" -metadata author="Moonshine" -metadata copyright="2009" -metadata comment="foo" -acodec copy -vcodec copy output.avi
This works fine BUT it will only copy ONE audio track. My files contain more than one audio track. I want ffmpeg to copy everything and just give the file a title.
Also, is there any way to give the audio tracks a language name? For example a file contains 2 audio tracks. The first one is English and the second one is Russian. How do I name them correctly so when I use a video player it would show me in the language menu that the first one is English and the second one is Russian?
I think avi doesn't support much if any per-stream metadata (other than the necessary technical stuff).
-metadata:s:a:0 language=eng
didn't do anything. (byte-identical output with/without, muxing from an input avi to an output avi, where mplayer listed the language as "unknown" in the input.) I already suspected this, so this command was very helpful to verify that avi doesn't do track names / language metadata. – Peter Cordes – 2015-01-27T08:40:53.550update, actually the Avi-Mux GUI manual http://www.alexander-noe.com/video/amg/en_main_window.html talks about naming streams in AVI. Maybe just not supported by ffmpeg?
– Peter Cordes – 2015-01-27T17:45:09.327