46 {
"movflags",
"MOV muxer flags", offsetof(
MOVMuxContext,
flags),
AV_OPT_TYPE_FLAGS, {.dbl = 0}, INT_MIN, INT_MAX,
AV_OPT_FLAG_ENCODING_PARAM,
"movflags" },
55 #define MOV_CLASS(flavor)\
56 static const AVClass flavor ## _muxer_class = {\
57 .class_name = #flavor " muxer",\
58 .item_name = av_default_item_name,\
60 .version = LIBAVUTIL_VERSION_INT,\
88 for (i=0; i<track->
entry; i++) {
101 int i, j, entries = 0, tst = -1, oldtst = -1;
108 for (i=0; i<track->
entry; i++) {
110 if(oldtst != -1 && tst != oldtst) {
118 sSize =
FFMAX(1, sSize);
125 for (i=0; i<track->
entry; i++) {
138 int index = 0, oldval = -1, i;
139 int64_t entryPos, curpos;
147 for (i=0; i<track->
entry; i++) {
168 int64_t curpos, entryPos;
176 for (i=0; i<track->
entry; i++) {
208 int fscod, bsid, bsmod, acmod, lfeon, frmsizecod;
225 if ((acmod & 1) && acmod != 1)
270 avio_w8(pb, (size>>(7*i)) | 0x80);
277 int decoderSpecificInfoLen = track->
vosLen ? 5+track->
vosLen : 0;
284 putDescr(pb, 0x03, 3 + 5+13 + decoderSpecificInfoLen + 5+1);
289 putDescr(pb, 0x04, 13 + decoderSpecificInfoLen);
347 uint32_t layout_tag, bitmap;
355 "lack of channel information\n");
448 uint32_t
tag = track->
tag;
501 else if(track->
tag ==
MKTAG(
'm',
'p',
'4',
'a'))
509 else if(track->
vosLen > 0)
590 for (i = 0; i < 10; i++)
632 (tag ==
MKTAG(
't',
'x',
'3',
'g') ||
633 tag ==
MKTAG(
't',
'e',
'x',
't'))))
638 "Quicktime/Ipod might not play the file\n");
650 else tag =
MKTAG(
'd',
'v',
'c',
' ');
653 else tag =
MKTAG(
'd',
'v',
'p',
'p');
656 else tag =
MKTAG(
'd',
'v',
'h',
'p');
659 else tag =
MKTAG(
'd',
'v',
'h',
'6');
668 static const struct {
724 "the file may be unplayable!\n");
731 tag =
MKTAG(
'm',
's', ((ms_tag >> 8) & 0xff), (ms_tag & 0xff));
733 "the file may be unplayable!\n");
787 0x0000, 0x0100, 0x0201, 0x0206, 0x0209, 0x020e
792 unsigned mov_field_order = 0;
834 char compressor_name[32];
865 memset(compressor_name,0,32);
869 avio_w8(pb, strlen(compressor_name));
877 if(track->
tag ==
MKTAG(
'm',
'p',
'4',
'v'))
891 else if(track->
vosLen > 0)
943 uint32_t entries = 0;
947 ctts_entries =
av_malloc((track->
entry + 1) *
sizeof(*ctts_entries));
948 ctts_entries[0].
count = 1;
950 for (i=1; i<track->
entry; i++) {
952 ctts_entries[entries].
count++;
956 ctts_entries[entries].
count = 1;
960 atom_size = 16 + (entries * 8);
965 for (i=0; i<entries; i++) {
977 uint32_t entries = -1;
982 stts_entries =
av_malloc(
sizeof(*stts_entries));
988 for (i=0; i<track->
entry; i++) {
992 if (i && duration == stts_entries[entries].duration) {
993 stts_entries[entries].
count++;
997 stts_entries[entries].
count = 1;
1002 atom_size = 16 + (entries * 8);
1007 for (i=0; i<entries; i++) {
1105 const char *hdlr, *descr =
NULL, *hdlr_type =
NULL;
1111 descr =
"DataHandler";
1113 hdlr = (track->
mode ==
MODE_MOV) ?
"mhlr" :
"\0\0\0\0";
1116 descr =
"VideoHandler";
1119 descr =
"SoundHandler";
1121 if (track->
tag ==
MKTAG(
't',
'x',
'3',
'g')) hdlr_type =
"sbtl";
1122 else hdlr_type =
"text";
1123 descr =
"SubtitleHandler";
1126 descr =
"HintHandler";
1173 }
else if (track->
tag ==
MKTAG(
'r',
't',
'p',
' ')) {
1205 "FATAL error, file duration too long for timebase, this file will not be\n"
1206 "playable with quicktime. Choose a different timebase or a different\n"
1207 "container format\n");
1276 sample_aspect_ratio = 1;
1319 int entry_size, entry_count,
size;
1320 int64_t delay, start_ct = track->
cluster[0].
cts;
1325 entry_size = (version == 1) ? 20 : 12;
1326 entry_count = 1 + (delay > 0);
1327 size = 24 + entry_count * entry_size;
1392 char buf[1000] =
"";
1396 av_strlcatf(buf,
sizeof(buf),
"a=control:streamid=%d\r\n", index);
1422 if (track->
tag ==
MKTAG(
'r',
't',
'p',
' '))
1426 if (0.0 != sample_aspect_ratio && 1.0 != sample_aspect_ratio)
1434 int i, has_audio = 0, has_video = 0;
1444 if (audio_profile < 0)
1445 audio_profile = 0xFF - has_audio;
1446 if (video_profile < 0)
1447 video_profile = 0xFF - has_video;
1463 int maxTrackID = 1, i;
1464 int64_t maxTrackLenTemp, maxTrackLen = 0;
1473 if(maxTrackLen < maxTrackLenTemp)
1474 maxTrackLen = maxTrackLenTemp;
1475 if(maxTrackID < mov->tracks[i].trackID)
1541 int size = 16 + strlen(data);
1554 return strlen(data) + 4;
1560 if (value && value[0]) {
1571 const char *
name,
const char *
tag,
1574 int l, lang = 0,
len, len2;
1582 snprintf(tag2,
sizeof(tag2),
"%s-", tag);
1584 len2 = strlen(t2->
key);
1599 int size = 0, track = t ? atoi(t->
value) : 0;
1684 return (((str[0]-0x60) & 0x1F) << 10) + (((str[1]-0x60) & 0x1F) << 5) + ((str[2]-0x60) & 0x1F);
1688 const char *
tag,
const char *str)
1697 if (!strcmp(tag,
"yrrc"))
1702 if (!strcmp(tag,
"albm") &&
1720 for (i = 0; i < nb_chapters; i++) {
1789 const char *str,
const char *lang,
int type)
1900 int has_h264 = 0, has_video = 0;
1917 minor = has_h264 ? 0x100 : 0x200;
1920 minor = has_h264 ? 0x20000 : 0x10000;
1958 int audio_kbitrate= AudioCodec->
bit_rate / 1000;
1959 int video_kbitrate=
FFMIN(VideoCodec->
bit_rate / 1000, 800 - audio_kbitrate);
2016 int i, closed_gop = 0;
2018 for (i = 0; i < pkt->
size - 4; i++) {
2019 c = (c<<8) + pkt->
data[i];
2021 closed_gop = pkt->
data[i+4]>>6 & 0x01;
2022 }
else if (c == 0x100) {
2023 int temp_ref = (pkt->
data[i+1]<<2) | (pkt->
data[i+2]>>6);
2024 if (!temp_ref || closed_gop)
2040 unsigned int samplesInChunk = 0;
2042 uint8_t *reformatted_data =
NULL;
2045 if (!size)
return 0;
2049 static uint16_t packed_size[16] =
2050 {13, 14, 16, 18, 20, 21, 27, 32, 6, 0, 0, 0, 0, 0, 0, 1};
2053 while (len < size && samplesInChunk < 100) {
2054 len += packed_size[(pkt->
data[
len] >> 3) & 0x0F];
2057 if(samplesInChunk > 1){
2058 av_log(s,
AV_LOG_ERROR,
"fatal error, input is not a single packet, implement a AVParser for it\n");
2114 if (pkt->
dts != pkt->
pts)
2138 reformatted_data, size);
2153 track->
tag =
MKTAG(
't',
'e',
'x',
't');
2167 len = strlen(t->
value);
2183 int i, hint_track = 0;
2214 #if FF_API_FLAG_RTP_HINT
2215 if (s->
flags & AVFMT_FLAG_RTP_HINT) {
2217 "via the -movflags rtphint muxer option "
2251 "codec not currently supported in container\n", i);
2258 if (track->
tag ==
MKTAG(
'm',
'x',
'3',
'p') || track->
tag ==
MKTAG(
'm',
'x',
'3',
'n') ||
2259 track->
tag ==
MKTAG(
'm',
'x',
'4',
'p') || track->
tag ==
MKTAG(
'm',
'x',
'4',
'n') ||
2260 track->
tag ==
MKTAG(
'm',
'x',
'5',
'p') || track->
tag ==
MKTAG(
'm',
'x',
'5',
'n')) {
2265 track->
height = track->
tag>>24 ==
'n' ? 486 : 576;
2270 "WARNING codec timebase is very high. If duration is too long,\n"
2271 "file may not be playable by quicktime. Specify a shorter timebase\n"
2272 "or choose different container.\n");
2294 "sample rate %dhz\n", i, track->
timescale);
2314 #if FF_API_TIMESTAMP
2316 mov->
time = s->timestamp;
2322 mov->
time += 0x7C25B080;
2390 #if CONFIG_MOV_MUXER
2395 .extensions =
"mov",
2408 .priv_class = &mov_muxer_class,
2411 #if CONFIG_TGP_MUXER
2416 .extensions =
"3gp",
2425 .priv_class = &tgp_muxer_class,
2428 #if CONFIG_MP4_MUXER
2433 .mime_type =
"application/mp4",
2434 .extensions =
"mp4",
2447 .priv_class = &mp4_muxer_class,
2450 #if CONFIG_PSP_MUXER
2455 .extensions =
"mp4,psp",
2468 .priv_class = &psp_muxer_class,
2471 #if CONFIG_TG2_MUXER
2476 .extensions =
"3g2",
2485 .priv_class = &tg2_muxer_class,
2488 #if CONFIG_IPOD_MUXER
2493 .mime_type =
"application/mp4",
2494 .extensions =
"m4v,m4a",
2503 .priv_class = &ipod_muxer_class,
static int utf8len(const uint8_t *b)
static int mov_write_extradata_tag(AVIOContext *pb, MOVTrack *track)
This function writes extradata "as is".
AVFormatContext * rtp_ctx
the format context for the hinting rtp muxer
int ff_mov_iso639_to_lang(const char lang[4], int mp4)
void avio_wb64(AVIOContext *s, uint64_t val)
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
static int ascii_to_wc(AVIOContext *pb, const uint8_t *b)
static int mov_get_lpcm_flags(enum CodecID codec_id)
Compute flags for 'lpcm' tag.
static int mov_write_dinf_tag(AVIOContext *pb)
#define GET_UTF8(val, GET_BYTE, ERROR)
Convert a UTF-8 character (up to 4 bytes) to its 32-bit UCS-4 encoded form.
AV_WL32 AV_WL24 AV_WL16 AV_RB32
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
Return the written size and a pointer to the buffer.
static int mov_write_ac3_tag(AVIOContext *pb, MOVTrack *track)
static void mov_write_psp_udta_tag(AVIOContext *pb, const char *str, const char *lang, int type)
const AVCodecTag codec_movaudio_tags[]
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int mov_write_dref_tag(AVIOContext *pb)
static int mov_write_string_metadata(AVFormatContext *s, AVIOContext *pb, const char *name, const char *tag, int long_style)
int src_track
the track that this hint track describes
#define AV_LOG_WARNING
Something somehow does not look correct.
int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt, int track_index, int sample, uint8_t *sample_data, int sample_size)
static int mov_get_rawvideo_codec_tag(AVFormatContext *s, MOVTrack *track)
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
static int mov_write_ms_tag(AVIOContext *pb, MOVTrack *track)
static av_always_inline uint64_t av_double2int(double f)
Reinterpret a double as a 64-bit integer.
static int mov_write_pasp_tag(AVIOContext *pb, MOVTrack *track)
void * av_realloc(void *ptr, size_t size)
Allocate or reallocate a block of memory.
#define FF_ARRAY_ELEMS(a)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
static uint16_t language_code(const char *str)
static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
static int mov_write_glbl_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_stsc_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_fiel_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_uuidusmt_tag(AVIOContext *pb, AVFormatContext *s)
static int mov_pcm_le_gt16(enum CodecID codec_id)
void avio_wl32(AVIOContext *s, unsigned int val)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
static int mov_write_uuid_tag_psp(AVIOContext *pb, MOVTrack *mov)
#define MOV_CLASS(flavor)
static int mov_get_codec_tag(AVFormatContext *s, MOVTrack *track)
static void mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s)
static const AVOption options[]
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
static int mov_write_tapt_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_vmhd_tag(AVIOContext *pb)
static int mov_write_amr_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
static double av_q2d(AVRational a)
Convert rational to double.
int chapter_track
qt chapter track number
static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id, uint64_t channel_layout, uint32_t *bitmap)
Get the channel layout tag for the specified codec id and channel layout.
static int mov_write_itunes_hdlr_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
AVCodecContext * avcodec_alloc_context3(AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
static int mov_write_subtitle_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_chan_tag(AVIOContext *pb, MOVTrack *track)
bitstream reader API header.
int av_match_ext(const char *filename, const char *extensions)
Return a positive value if the given filename has one of the given extensions, 0 otherwise.
static int mov_write_wave_tag(AVIOContext *pb, MOVTrack *track)
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void ff_mov_close_hinting(MOVTrack *track)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static int mov_write_uuid_tag_ipod(AVIOContext *pb)
Write uuid atom.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
int av_get_bits_per_sample(enum CodecID codec_id)
Return codec bits per sample.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
static const uint16_t fiel_data[]
static int mov_write_nmhd_tag(AVIOContext *pb)
struct AVOutputFormat * oformat
preferred ID for MPEG-1/2 video decoding
static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
int height
active picture (w/o VBI) height for D-10/IMX
struct MOVMuxContext MOVMuxContext
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
static int mov_write_meta_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
static int mov_write_mdat_tag(AVIOContext *pb, MOVMuxContext *mov)
static int mov_write_stsz_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_ilst_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
static int mov_write_avid_tag(AVIOContext *pb, MOVTrack *track)
static int64_t updateSize(AVIOContext *pb, int64_t pos)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
int rc_max_rate
maximum bitrate
static int mov_write_udta_sdp(AVIOContext *pb, AVFormatContext *ctx, int index)
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
int hint_track
the track that hints this track, -1 if no hint track is set
static void put_bits(PutBitContext *s, int n, unsigned int value)
Write up to 31 bits into a bitstream.
const AVCodecTag ff_codec_wav_tags[]
int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size)
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
const AVCodecTag ff_mp4_obj_type[]
const AVCodecTag ff_codec_movsubtitle_tags[]
static int mov_write_mdhd_tag(AVIOContext *pb, MOVTrack *track)
int flags
A combination of AV_PKT_FLAG values.
uint64_t channel_layout
Audio channel layout.
AVCodecContext * codec
codec context
int rc_buffer_size
decoder bitstream buffer size
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
unsigned int nb_streams
A list of all streams in the file.
int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size)
static int mov_write_stts_tag(AVIOContext *pb, MOVTrack *track)
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int bit_rate
the average bitrate
static int mov_write_trkn_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
int void avio_flush(AVIOContext *s)
char filename[1024]
input or output filename
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
const AVCodecTag ff_codec_bmp_tags[]
static int mov_write_chpl_tag(AVIOContext *pb, AVFormatContext *s)
#define MOV_PARTIAL_SYNC_SAMPLE
int width
picture width / height.
int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
static int mov_write_avcc_tag(AVIOContext *pb, MOVTrack *track)
void avio_wb24(AVIOContext *s, unsigned int val)
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
int tref_id
trackID of the referenced track
static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
static int mov_write_string_tag(AVIOContext *pb, const char *name, const char *value, int lang, int long_style)
static int mov_write_smhd_tag(AVIOContext *pb)
static int mov_write_stco_tag(AVIOContext *pb, MOVTrack *track)
static void mov_create_chapter_track(AVFormatContext *s, int tracknum)
int64_t end
chapter start/end time in time_base units
int frame_size
Samples per packet, initialized when calling 'init'.
static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track)
#define MOV_INDEX_CLUSTER_SIZE
static int mov_write_trak_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
static int mov_write_d263_tag(AVIOContext *pb)
enum AVMediaType codec_type
static int mov_write_ctts_tag(AVIOContext *pb, MOVTrack *track)
int sample_rate
samples per second
#define FF_RTP_FLAG_OPTS(ctx, fieldname)
void avio_w8(AVIOContext *s, int b)
main external API structure.
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_hmhd_tag(AVIOContext *pb)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0 ...
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
static const struct @81 mov_pix_fmt_tags[]
static void putDescr(AVIOContext *pb, int tag, unsigned int size)
static unsigned int get_bits1(GetBitContext *s)
static int mov_write_edts_tag(AVIOContext *pb, MOVTrack *track)
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FF_MOV_FLAG_RTP_HINT
static void skip_bits(GetBitContext *s, int n)
#define FF_COMPLIANCE_NORMAL
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
rational number numerator/denominator
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
packed RGB 8:8:8, 24bpp, BGRBGR...
static const AVCodecTag codec_3gp_tags[]
static int mov_write_enda_tag(AVIOContext *pb)
void avio_wb16(AVIOContext *s, unsigned int val)
static int mp4_get_codec_tag(AVFormatContext *s, MOVTrack *track)
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
static int mov_write_trailer(AVFormatContext *s)
static int mov_write_3gp_udta_tag(AVIOContext *pb, AVFormatContext *s, const char *tag, const char *str)
static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov)
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc)
static int mov_write_gmhd_tag(AVIOContext *pb)
AVRational time_base
time base in which the start/end timestamps are specified
static int mov_write_mdia_tag(AVIOContext *pb, MOVTrack *track)
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
CodecID
Identify the syntax and semantics of the bitstream.
static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_iods_tag(AVIOContext *pb, MOVMuxContext *mov)
static int mov_write_stss_tag(AVIOContext *pb, MOVTrack *track, uint32_t flag)
packed RGB 8:8:8, 24bpp, RGBRGB...
int channels
number of audio channels
static int mov_write_string_data_tag(AVIOContext *pb, const char *data, int lang, int long_style)
void * priv_data
Format private data.
static int mov_write_header(AVFormatContext *s)
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s)
void avio_wb32(AVIOContext *s, unsigned int val)
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
static const AVCodecTag codec_ipod_tags[]
enum AVFieldOrder field_order
Field order.
#define AV_DICT_IGNORE_SUFFIX
static int mov_write_rtp_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_tref_tag(AVIOContext *pb, MOVTrack *track)
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
static int mov_write_stbl_tag(AVIOContext *pb, MOVTrack *track)
#define CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).
int rc_min_rate
minimum bitrate
static int ipod_get_codec_tag(AVFormatContext *s, MOVTrack *track)
static int mov_write_stsd_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_svq3_tag(AVIOContext *pb)
#define MKTAG(a, b, c, d)
int strict_std_compliance
strictly follow the standard (MPEG4, ...).
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
const AVCodecTag codec_movvideo_tags[]
int ff_isom_write_avcc(AVIOContext *pb, const uint8_t *data, int len)
#define AV_NOPTS_VALUE
Undefined timestamp value.
preferred ID for decoding MPEG audio layer 1, 2 or 3
unsigned int samplesInChunk