[FFmpeg-user] help to use -atag

James Darnley james.darnley at gmail.com
Fri Mar 18 00:29:44 CET 2011

On 18/03/2011, rramos at unl.edu.ar <rramos at unl.edu.ar> wrote:
> Hello
> I need to tag to mp3 for separate MP3 audiobooks into chapters for
> blind people.
> I used the option -atag to try to create a tag called Chapter 1
> as follows:
> ffmpeg -i audio.mp3 -atag chapter1 audio.mp3
> The resulting ouput was av_internal_write_frame(): Error while opening file
> And try:
> ffmpeg -i clasicos.mp3 -ss 00:00:00 -atag c/tag clasicos.mp3
> ffmpeg -i clasicos.mp3 -ss 00:00:00 -atag fource/chap clasicos.mp3
> But the resulting output file was the same, has no tag.

Of course not, that's not what that option does.  It forces the output
to use the four bytes you gave to describe the audio.  The help quite
clearly says:
-atag fourcc/tag    force audio tag/fourcc

You can set metadata with the -metadata option.  E.g:
-metadata "title=Chapter 1"

More information about the ffmpeg-user mailing list