[FFmpeg-cvslog] Add a minor bump, changelog/ APIchanges entry and some documentation for APIC support.

Anton Khirnov git at videolan.org
Thu Mar 1 03:20:20 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Feb 28 12:07:53 2012 +0100| [322537478b63c6bc01e640643550ff539864d790] | committer: Anton Khirnov

Add a minor bump, changelog/APIchanges entry and some documentation for APIC support.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=322537478b63c6bc01e640643550ff539864d790
---

 Changelog             |    1 +
 doc/APIchanges        |    4 ++++
 doc/muxers.texi       |   34 ++++++++++++++++++++++++++++++++++
 libavformat/version.h |    2 +-
 4 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 65accca..9dc2ae9 100644
--- a/Changelog
+++ b/Changelog
@@ -10,6 +10,7 @@ version <next>:
 - Apple ProRes encoder
 - Sun Rasterfile Encoder
 - remove libpostproc
+- ID3v2 attached pictures reading and writing
 
 
 version 0.8:
diff --git a/doc/APIchanges b/doc/APIchanges
index 8b12de0..de57b2e 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -12,6 +12,10 @@ libavutil:   2011-04-18
 
 API changes, most recent first:
 
+2012-xx-xx - xxxxxxx - lavf 54.2.0 - avformat.h
+  Add AVStream.attached_pic and AV_DISPOSITION_ATTACHED_PIC,
+  used for dealing with attached pictures/cover art.
+
 2012-02-25 - c9bca80 - lavu 51.24.0 - error.h
   Add AVERROR_UNKNOWN
 
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 4878e76..82ea99a 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -361,5 +361,39 @@ Wrap around segment index once it reaches @var{limit}.
 avconv -i in.mkv -c copy -map 0 -f segment -list out.list out%03d.nut
 @end example
 
+ at section mp3
+
+The MP3 muxer writes a raw MP3 stream with an ID3v2 header at the beginning and
+optionally an ID3v1 tag at the end. ID3v2.3 and ID3v2.4 are supported, the
+ at code{id3v2_version} option controls which one is used. The legacy ID3v1 tag is
+not written by default, but may be enabled with the @code{write_id3v1} option.
+
+For seekable output the muxer also writes a Xing frame at the beginning, which
+contains the number of frames in the file. It is useful for computing duration
+of VBR files.
+
+The muxer supports writing ID3v2 attached pictures (APIC frames). The pictures
+are supplied to the muxer in form of a video stream with a single packet. There
+can be any number of those streams, each will correspond to a single APIC frame.
+The stream metadata tags @var{title} and @var{comment} map to APIC
+ at var{description} and @var{picture type} respectively. See
+ at url{http://id3.org/id3v2.4.0-frames} for allowed picture types.
+
+Note that the APIC frames must be written at the beginning, so the muxer will
+buffer the audio frames until it gets all the pictures. It is therefore advised
+to provide the pictures as soon as possible to avoid excessive buffering.
+
+Examples:
+
+Write an mp3 with an ID3v2.3 header and an ID3v1 footer:
+ at example
+avconv -i INPUT -id3v2_version 3 -write_id3v1 1 out.mp3
+ at end example
+
+Attach a picture to an mp3:
+ at example
+avconv -i input.mp3 -i cover.png -c copy -metadata:s:v title="Album cover"
+-metadata:s:v comment="Cover (Front)" out.mp3
+ at end example
 
 @c man end MUXERS
diff --git a/libavformat/version.h b/libavformat/version.h
index b944589..bcc8c4d 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -30,7 +30,7 @@
 #include "libavutil/avutil.h"
 
 #define LIBAVFORMAT_VERSION_MAJOR 54
-#define LIBAVFORMAT_VERSION_MINOR  1
+#define LIBAVFORMAT_VERSION_MINOR  2
 #define LIBAVFORMAT_VERSION_MICRO  0
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \



More information about the ffmpeg-cvslog mailing list