... | ... |
@@ -12,6 +12,10 @@ libavutil: 2011-04-18 |
12 | 12 |
|
13 | 13 |
API changes, most recent first: |
14 | 14 |
|
15 |
+2012-xx-xx - xxxxxxx - lavf 54.2.0 - avformat.h |
|
16 |
+ Add AVStream.attached_pic and AV_DISPOSITION_ATTACHED_PIC, |
|
17 |
+ used for dealing with attached pictures/cover art. |
|
18 |
+ |
|
15 | 19 |
2012-02-25 - c9bca80 - lavu 51.24.0 - error.h |
16 | 20 |
Add AVERROR_UNKNOWN |
17 | 21 |
|
... | ... |
@@ -361,5 +361,39 @@ Wrap around segment index once it reaches @var{limit}. |
361 | 361 |
avconv -i in.mkv -c copy -map 0 -f segment -list out.list out%03d.nut |
362 | 362 |
@end example |
363 | 363 |
|
364 |
+@section mp3 |
|
365 |
+ |
|
366 |
+The MP3 muxer writes a raw MP3 stream with an ID3v2 header at the beginning and |
|
367 |
+optionally an ID3v1 tag at the end. ID3v2.3 and ID3v2.4 are supported, the |
|
368 |
+@code{id3v2_version} option controls which one is used. The legacy ID3v1 tag is |
|
369 |
+not written by default, but may be enabled with the @code{write_id3v1} option. |
|
370 |
+ |
|
371 |
+For seekable output the muxer also writes a Xing frame at the beginning, which |
|
372 |
+contains the number of frames in the file. It is useful for computing duration |
|
373 |
+of VBR files. |
|
374 |
+ |
|
375 |
+The muxer supports writing ID3v2 attached pictures (APIC frames). The pictures |
|
376 |
+are supplied to the muxer in form of a video stream with a single packet. There |
|
377 |
+can be any number of those streams, each will correspond to a single APIC frame. |
|
378 |
+The stream metadata tags @var{title} and @var{comment} map to APIC |
|
379 |
+@var{description} and @var{picture type} respectively. See |
|
380 |
+@url{http://id3.org/id3v2.4.0-frames} for allowed picture types. |
|
381 |
+ |
|
382 |
+Note that the APIC frames must be written at the beginning, so the muxer will |
|
383 |
+buffer the audio frames until it gets all the pictures. It is therefore advised |
|
384 |
+to provide the pictures as soon as possible to avoid excessive buffering. |
|
385 |
+ |
|
386 |
+Examples: |
|
387 |
+ |
|
388 |
+Write an mp3 with an ID3v2.3 header and an ID3v1 footer: |
|
389 |
+@example |
|
390 |
+avconv -i INPUT -id3v2_version 3 -write_id3v1 1 out.mp3 |
|
391 |
+@end example |
|
392 |
+ |
|
393 |
+Attach a picture to an mp3: |
|
394 |
+@example |
|
395 |
+avconv -i input.mp3 -i cover.png -c copy -metadata:s:v title="Album cover" |
|
396 |
+-metadata:s:v comment="Cover (Front)" out.mp3 |
|
397 |
+@end example |
|
364 | 398 |
|
365 | 399 |
@c man end MUXERS |
... | ... |
@@ -30,7 +30,7 @@ |
30 | 30 |
#include "libavutil/avutil.h" |
31 | 31 |
|
32 | 32 |
#define LIBAVFORMAT_VERSION_MAJOR 54 |
33 |
-#define LIBAVFORMAT_VERSION_MINOR 1 |
|
33 |
+#define LIBAVFORMAT_VERSION_MINOR 2 |
|
34 | 34 |
#define LIBAVFORMAT_VERSION_MICRO 0 |
35 | 35 |
|
36 | 36 |
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |