Libav 0.7.1
|
#include "movenc.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"
#include "avio.h"
#include "isom.h"
#include "avc.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "rtpenc.h"
#include <assert.h>
Go to the source code of this file.
static int ascii_to_wc | ( | AVIOContext * | pb, |
const uint8_t * | b | ||
) | [static] |
Definition at line 1627 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
int ff_mov_write_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) |
Definition at line 1989 of file movenc.c.
Referenced by ff_mov_add_hinted_packet().
static int ipod_get_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 615 of file movenc.c.
Referenced by mov_find_codec_tag().
static uint16_t language_code | ( | const char * | str | ) | [static] |
Definition at line 1638 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_psp_udta_tag(), and mov_write_uuidusmt_tag().
static void mov_create_chapter_track | ( | AVFormatContext * | s, |
int | tracknum | ||
) | [static] |
Definition at line 2094 of file movenc.c.
Referenced by mov_write_header().
static int mov_find_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 743 of file movenc.c.
Referenced by mov_write_header().
static int mov_get_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 694 of file movenc.c.
Referenced by mov_find_codec_tag().
static int mov_get_dv_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 632 of file movenc.c.
Referenced by mov_get_codec_tag().
static int mov_get_lpcm_flags | ( | enum CodecID | codec_id | ) | [static] |
Compute flags for 'lpcm' tag.
See CoreAudioTypes and AudioStreamBasicDescription at Apple.
Definition at line 386 of file movenc.c.
Referenced by mov_write_audio_tag().
static int mov_get_rawvideo_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 678 of file movenc.c.
Referenced by mov_get_codec_tag().
static int mov_parse_mpeg2_frame | ( | AVPacket * | pkt, |
uint32_t * | flags | ||
) | [static] |
Definition at line 1968 of file movenc.c.
Referenced by ff_mov_write_packet().
static int mov_pcm_le_gt16 | ( | enum CodecID | codec_id | ) | [static] |
Definition at line 320 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_3gp_udta_tag | ( | AVIOContext * | pb, |
AVFormatContext * | s, | ||
const char * | tag, | ||
const char * | str | ||
) | [static] |
Definition at line 1643 of file movenc.c.
Referenced by mov_write_udta_tag().
static int mov_write_ac3_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 196 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_amr_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 182 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_audio_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 411 of file movenc.c.
Referenced by mov_write_stsd_tag().
static int mov_write_avcc_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 529 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_avid_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 540 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_chpl_tag | ( | AVIOContext * | pb, |
AVFormatContext * | s | ||
) | [static] |
Definition at line 1665 of file movenc.c.
Referenced by mov_write_udta_tag().
static int mov_write_ctts_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 910 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_d263_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 504 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_dinf_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1021 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_dref_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 985 of file movenc.c.
Referenced by mov_write_dinf_tag().
static int mov_write_edts_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1284 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_enda_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 250 of file movenc.c.
Referenced by mov_write_wave_tag().
static int mov_write_esds_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 267 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
static int mov_write_extradata_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
This function writes extradata "as is".
Extradata must be formated like a valid atom (with size and tag)
Definition at line 244 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_ftyp_tag | ( | AVIOContext * | pb, |
AVFormatContext * | s | ||
) | [static] |
Definition at line 1851 of file movenc.c.
Referenced by mov_write_header().
static int mov_write_glbl_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 374 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_video_tag().
static int mov_write_gmhd_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1038 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_hdlr_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1073 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
static int mov_write_header | ( | AVFormatContext * | s | ) | [static] |
static int mov_write_hmhd_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1116 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_ilst_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1574 of file movenc.c.
Referenced by mov_write_meta_tag().
static int mov_write_itunes_hdlr_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1479 of file movenc.c.
Referenced by mov_write_meta_tag().
static int mov_write_mdat_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov | ||
) | [static] |
Definition at line 1839 of file movenc.c.
Referenced by mov_write_header().
static int mov_write_mdhd_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1153 of file movenc.c.
Referenced by mov_write_mdia_tag().
static int mov_write_mdia_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1183 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_meta_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1602 of file movenc.c.
Referenced by mov_write_udta_tag().
static int mov_write_minf_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1131 of file movenc.c.
Referenced by mov_write_mdia_tag().
static int mov_write_moov_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1795 of file movenc.c.
Referenced by mov_write_trailer().
static int mov_write_ms_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 328 of file movenc.c.
Referenced by mov_write_wave_tag().
static int mov_write_mvhd_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov | ||
) | [static] |
Definition at line 1418 of file movenc.c.
Referenced by mov_write_moov_tag().
static int mov_write_nmhd_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1030 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_pasp_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 790 of file movenc.c.
Referenced by mov_write_video_tag().
static void mov_write_psp_udta_tag | ( | AVIOContext * | pb, |
const char * | str, | ||
const char * | lang, | ||
int | type | ||
) | [static] |
Definition at line 1744 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
static int mov_write_rtp_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 872 of file movenc.c.
Referenced by mov_write_stsd_tag().
static int mov_write_smhd_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1054 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_stbl_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 999 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_stco_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 68 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_string_data_tag | ( | AVIOContext * | pb, |
const char * | data, | ||
int | lang, | ||
int | long_style | ||
) | [static] |
Definition at line 1495 of file movenc.c.
Referenced by mov_write_string_tag().
static int mov_write_string_metadata | ( | AVFormatContext * | s, |
AVIOContext * | pb, | ||
const char * | name, | ||
const char * | tag, | ||
int | long_style | ||
) | [static] |
Definition at line 1527 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
static int mov_write_string_tag | ( | AVIOContext * | pb, |
const char * | name, | ||
const char * | value, | ||
int | lang, | ||
int | long_style | ||
) | [static] |
Definition at line 1515 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
static int mov_write_stsc_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 129 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_stsd_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 892 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_stss_tag | ( | AVIOContext * | pb, |
MOVTrack * | track, | ||
uint32_t | flag | ||
) | [static] |
Definition at line 159 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_stsz_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 91 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_stts_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 944 of file movenc.c.
Referenced by mov_write_stbl_tag().
static int mov_write_subtitle_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 775 of file movenc.c.
Referenced by mov_write_stsd_tag().
static int mov_write_svq3_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 517 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_tapt_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1258 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_tkhd_tag | ( | AVIOContext * | pb, |
MOVTrack * | track, | ||
AVStream * | st | ||
) | [static] |
Definition at line 1194 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_trailer | ( | AVFormatContext * | s | ) | [static] |
static int mov_write_trak_tag | ( | AVIOContext * | pb, |
MOVTrack * | track, | ||
AVStream * | st | ||
) | [static] |
Definition at line 1379 of file movenc.c.
Referenced by mov_write_moov_tag().
static int mov_write_tref_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 1331 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_trkn_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1552 of file movenc.c.
Referenced by mov_write_ilst_tag().
static int mov_write_udta_sdp | ( | AVIOContext * | pb, |
AVFormatContext * | ctx, | ||
int | index | ||
) | [static] |
Definition at line 1360 of file movenc.c.
Referenced by mov_write_trak_tag().
static int mov_write_udta_tag | ( | AVIOContext * | pb, |
MOVMuxContext * | mov, | ||
AVFormatContext * | s | ||
) | [static] |
Definition at line 1691 of file movenc.c.
Referenced by mov_write_moov_tag().
static int mov_write_uuid_tag_ipod | ( | AVIOContext * | pb | ) | [static] |
Write uuid atom.
Needed to make file play in iPods running newest firmware goes after avcC atom in moov.trak.mdia.minf.stbl.stsd.avc1
Definition at line 763 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_uuid_tag_psp | ( | AVIOContext * | pb, |
MOVTrack * | mov | ||
) | [static] |
Definition at line 1342 of file movenc.c.
Referenced by mov_write_trak_tag().
static void mov_write_uuidprof_tag | ( | AVIOContext * | pb, |
AVFormatContext * | s | ||
) | [static] |
Definition at line 1907 of file movenc.c.
Referenced by mov_write_header().
static int mov_write_uuidusmt_tag | ( | AVIOContext * | pb, |
AVFormatContext * | s | ||
) | [static] |
Definition at line 1757 of file movenc.c.
Referenced by mov_write_moov_tag().
static int mov_write_video_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 803 of file movenc.c.
Referenced by mov_write_stsd_tag().
static int mov_write_vmhd_tag | ( | AVIOContext * | pb | ) | [static] |
Definition at line 1064 of file movenc.c.
Referenced by mov_write_minf_tag().
static int mov_write_wave_tag | ( | AVIOContext * | pb, |
MOVTrack * | track | ||
) | [static] |
Definition at line 338 of file movenc.c.
Referenced by mov_write_audio_tag().
static int mp4_get_codec_tag | ( | AVFormatContext * | s, |
MOVTrack * | track | ||
) | [static] |
Definition at line 587 of file movenc.c.
Referenced by mov_find_codec_tag().
static void putDescr | ( | AVIOContext * | pb, |
int | tag, | ||
unsigned int | size | ||
) | [static] |
Definition at line 258 of file movenc.c.
Referenced by mov_write_esds_tag().
static int64_t updateSize | ( | AVIOContext * | pb, |
int64_t | pos | ||
) | [static] |
Definition at line 57 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_ilst_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_minf_tag(), mov_write_moov_tag(), mov_write_ms_tag(), mov_write_rtp_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_subtitle_tag(), mov_write_tapt_tag(), mov_write_trak_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), and mov_write_wave_tag().
static int utf8len | ( | const uint8_t * | b | ) | [static] |
Definition at line 1616 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), and mov_write_psp_udta_tag().
unsigned bps |
Definition at line 660 of file movenc.c.
Referenced by ff_wma_init(), gxf_packet(), nsv_read_chunk(), output_packet(), raw_read_packet(), rso_read_header(), rso_read_packet(), and tta_read_header().
const AVCodecTag codec_3gp_tags[] [static] |
{ { CODEC_ID_H263, MKTAG('s','2','6','3') }, { CODEC_ID_H264, MKTAG('a','v','c','1') }, { CODEC_ID_MPEG4, MKTAG('m','p','4','v') }, { CODEC_ID_AAC, MKTAG('m','p','4','a') }, { CODEC_ID_AMR_NB, MKTAG('s','a','m','r') }, { CODEC_ID_AMR_WB, MKTAG('s','a','w','b') }, { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') }, { CODEC_ID_NONE, 0 }, }
const AVCodecTag codec_ipod_tags[] [static] |
{ { CODEC_ID_H264, MKTAG('a','v','c','1') }, { CODEC_ID_MPEG4, MKTAG('m','p','4','v') }, { CODEC_ID_AAC, MKTAG('m','p','4','a') }, { CODEC_ID_ALAC, MKTAG('a','l','a','c') }, { CODEC_ID_AC3, MKTAG('a','c','-','3') }, { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') }, { CODEC_ID_MOV_TEXT, MKTAG('t','e','x','t') }, { CODEC_ID_NONE, 0 }, }
const AVClass mov_muxer_class [static] |
{ .class_name = "MOV/3GP/MP4/3G2 muxer", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }
struct { ... } mov_pix_fmt_tags[] [static] |
Referenced by mov_get_rawvideo_codec_tag().
{ { "movflags", "MOV muxer flags", 0x42, FF_OPT_TYPE_FLAGS, {.dbl = 0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "movflags" }, { "rtphint", "Add RTP hint tracks", 0, FF_OPT_TYPE_CONST, {.dbl = FF_MOV_FLAG_RTP_HINT}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "movflags" }, FF_RTP_FLAG_OPTS(MOVMuxContext, rtp_flags), { NULL }, }
enum PixelFormat pix_fmt |
uint32_t tag |
Definition at line 659 of file movenc.c.
Referenced by aac_encode_frame(), aiff_read_header(), ape_read_header(), asf_write_header1(), au_read_header(), av_codec_get_tag(), av_dict_set(), av_find_info_tag(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_info(), avi_read_nikon(), avi_stream2fourcc(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), decode_frame(), dump_metadata(), dxa_read_header(), ff_id3v2_parse(), ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), ffm_read_header(), flv_write_header(), get_swf_tag(), gxf_material_tags(), gxf_track_tags(), id3v1_create_tag(), id3v1_set_string(), ipod_get_codec_tag(), lz_unpack(), main(), matroska_convert_tags(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_simpletag(), mkv_write_tag(), mkv_write_tracks(), mmf_read_header(), mov_find_codec_tag(), mov_get_codec_tag(), mov_get_dv_codec_tag(), mov_get_rawvideo_codec_tag(), mov_probe(), mov_read_meta(), mov_read_udta_string(), mov_write_audio_tag(), mp4_get_codec_tag(), mp4_read_iods(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), ogm_header(), pmt_cb(), process_line(), put_swf_end_tag(), put_swf_tag(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read_header(), rm_read_header(), rv10_write_header(), show_format(), show_stream(), siff_probe(), siff_read_header(), sol_read_header(), srt_to_ass(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), wv_read_block_header(), xan_decode_frame(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().