FFmpeg
Loading...
Searching...
No Matches
muxer.h File Reference
#include <stdint.h>
#include "libavutil/dict.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Data Structures

struct  OGGPage
 
struct  OGGStreamContext
 
struct  OGGMuxerMapping
 Codec mapping of the muxer: the parts of the Ogg encapsulation that depend on the codec. More...
 

Macros

#define MAX_PAGE_SIZE   65025
 

Functions

uint8_t * ff_ogg_write_vorbiscomment (int64_t offset, int bitexact, int *header_len, AVDictionary **m, int framing_bit, AVChapter **chapters, unsigned int nb_chapters)
 Allocate a comment header packet holding a VorbisComment.
 
int ff_ogg_build_xiph_headers (AVFormatContext *s, AVStream *st, int first_header_size, int comment_type, const char *name, int framing_bit)
 Build the headers of a codec using the Xiph header layout: identification, comment and setup packets laced in the extradata.
 

Variables

const OGGMuxerMapping ff_ogg_flac_muxer_mapping
 
const OGGMuxerMapping ff_ogg_opus_muxer_mapping
 
const OGGMuxerMapping ff_ogg_speex_muxer_mapping
 
const OGGMuxerMapping ff_ogg_theora_muxer_mapping
 
const OGGMuxerMapping ff_ogg_vorbis_muxer_mapping
 
const OGGMuxerMapping ff_ogg_vp8_muxer_mapping
 

Macro Definition Documentation

◆ MAX_PAGE_SIZE

#define MAX_PAGE_SIZE   65025

Definition at line 30 of file muxer.h.

Function Documentation

◆ ff_ogg_write_vorbiscomment()

uint8_t * ff_ogg_write_vorbiscomment ( int64_t offset,
int bitexact,
int * header_len,
AVDictionary ** m,
int framing_bit,
AVChapter ** chapters,
unsigned int nb_chapters )

Allocate a comment header packet holding a VorbisComment.

The metadata is converted to VorbisComment field names in place.

Parameters
offsetthe number of zeroed bytes before the VorbisComment, left for the codec's packet type
header_lenset to the packet size
framing_bitwhether the packet ends with a framing bit
Returns
the packet, to free with av_free(), or NULL on error

Definition at line 257 of file muxer.c.

Referenced by ff_ogg_build_xiph_headers(), flac_build_headers(), opus_build_headers(), speex_build_headers(), and vp8_build_headers().

◆ ff_ogg_build_xiph_headers()

int ff_ogg_build_xiph_headers ( AVFormatContext * s,
AVStream * st,
int first_header_size,
int comment_type,
const char * name,
int framing_bit )

Build the headers of a codec using the Xiph header layout: identification, comment and setup packets laced in the extradata.

Parameters
first_header_sizethe size of the identification header
comment_typethe packet type of the comment header
namethe codec name in the comment header
framing_bitwhether the comment header ends with a framing bit

Definition at line 287 of file muxer.c.

Referenced by theora_init(), and vorbis_init().

Variable Documentation

◆ ff_ogg_flac_muxer_mapping

const OGGMuxerMapping ff_ogg_flac_muxer_mapping
extern

Definition at line 73 of file flac.c.

◆ ff_ogg_opus_muxer_mapping

const OGGMuxerMapping ff_ogg_opus_muxer_mapping
extern

Definition at line 78 of file opus.c.

◆ ff_ogg_speex_muxer_mapping

const OGGMuxerMapping ff_ogg_speex_muxer_mapping
extern

Definition at line 66 of file speex.c.

◆ ff_ogg_theora_muxer_mapping

const OGGMuxerMapping ff_ogg_theora_muxer_mapping
extern

Definition at line 110 of file theora.c.

◆ ff_ogg_vorbis_muxer_mapping

const OGGMuxerMapping ff_ogg_vorbis_muxer_mapping
extern

Definition at line 29 of file vorbis.c.

◆ ff_ogg_vp8_muxer_mapping

const OGGMuxerMapping ff_ogg_vp8_muxer_mapping
extern

Definition at line 110 of file vp8.c.