Monday, 9 July 2012

Changing title artist etc metadata in mpeg video in linux

Was working on a video timelapse, but the final file was missing meta data like title, copyright etc etc.

I tried EasyTag and Kid3 to see if they'd work but obv didn't work on Mpeg, in the end resorted to using ffmpeg from command line.

ffmpeg -i INPUT-FILE.mp4 -acodec copy -vcodec copy \
-metadata title='Time-lapse boat trip to St.Kilda' \
-metadata artist='Sea Harris (www.seaharris.co.uk)' \
-metadata date='2012' \
-metadata comment='Boat trip to St. Kilda'  \
OUTPUT-FILE.mp4

Pretty straight forward, -acodec and -vcodec specify the audio and video codec and by setting them to copy it doesn't need to encode just creates a new output file with the specified metadata.
 


No comments: