Go to the documentation of this file.
28 {
"WM/AlbumArtist",
"album_artist" },
29 {
"WM/AlbumTitle",
"album" },
30 {
"Author",
"artist" },
31 {
"Description",
"comment" },
32 {
"WM/Composer",
"composer" },
33 {
"WM/EncodedBy",
"encoded_by" },
34 {
"WM/EncodingSettings",
"encoder" },
35 {
"WM/Genre",
"genre" },
36 {
"WM/Language",
"language" },
37 {
"WM/OriginalFilename",
"filename" },
38 {
"WM/PartOfSet",
"disc" },
39 {
"WM/Publisher",
"publisher" },
40 {
"WM/Tool",
"encoder" },
41 {
"WM/TrackNumber",
"track" },
42 {
"WM/MediaStationCallSign",
"service_provider" },
43 {
"WM/MediaStationName",
"service_name" },
57 int ret,
type, picsize, desc_len;
60 if (
len < 1 + 4 + 2 + 2) {
80 if (!strncmp(mime->
str, mimetype,
sizeof(mimetype))) {
99 desc_len = (
len - picsize) * 2 + 1;
108 st =
s->streams[
s->nb_streams - 1];
133 if (id3v2_extra_meta) {
144 if (!strcmp(
name,
"WM/Picture"))
146 else if (!strcmp(
name,
"ID3"))
#define AV_LOG_WARNING
Something somehow does not look correct.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta, unsigned int max_search_size)
Read an ID3v2 tag, including supported extra metadata.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
int ff_id3v2_parse_chapters(AVFormatContext *s, ID3v2ExtraMeta *cur)
Create chapters for all CHAP tags found in the ID3v2 header.
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_ARRAY_ELEMS(a)
int avio_get_str16le(AVIOContext *pb, int maxlen, char *buf, int buflen)
Read a UTF-16 string from pb and convert it to UTF-8.
int ff_add_attached_pic(AVFormatContext *s, AVStream *st, AVIOContext *pb, AVBufferRef **buf, int size)
Add an attached pic to an AVStream.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
const AVMetadataConv ff_asf_metadata_conv[]
int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta *extra_meta)
Create a stream for each APIC (attached picture) extracted from the ID3v2 header.
const char *const ff_id3v2_picture_types[21]
int ff_asf_handle_byte_array(AVFormatContext *s, const char *name, int val_len)
Handles both attached pictures as well as id3 tags.
const CodecMime ff_id3v2_mime_tags[]
AVCodecID
Identify the syntax and semantics of the bitstream.
unsigned int avio_rl32(AVIOContext *s)
#define ID3v2_DEFAULT_MAGIC
Default magic bytes for ID3v2 header: "ID3".
int avio_r8(AVIOContext *s)
static int asf_read_picture(AVFormatContext *s, int len)
static int get_id3_tag(AVFormatContext *s, int len)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
Free memory allocated parsing special (non-text) metadata.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.