[libav-tools] How to change metadata without creating a new file

Anton Khirnov anton at khirnov.net
Sun Jul 15 15:20:36 CEST 2012


On Sun, 15 Jul 2012 13:30:01 +0200, Chuck <chuck42 at gmx.de> wrote:
> Hello,
> 
> I want to use avconv to change the metadata of media files. Unfortunately I 
> haven't found a way to change the metadata without creating a new file (of 
> course `avconv -i test.mp3 -metadata title="test title" -c copy new.mp3` will 
> work, but will create a new file).
> 
> The command `avconv -i test.mp3 -metadata title="test title" test.mp3` will 
> regenerate test.mp3 in  another bitrate. Also `avconv -i test.mp3 -metadata 
> title="test title" -c copy test.mp3` does not work, because it destroys 
> test.mp3 (the file shrinks down to some kilobyte).
> 
> Is there a way to use avconv to change the metadata of a file without creating 
> a new one?
> 

No, it's not possible, neither libavformat API nor avconv design allows
for in-place editing of files.

Why is creating a new file such a big problem?

-- 
Anton Khirnov


More information about the libav-tools mailing list