FFmpeg
|
#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 "libavcodec/vc1.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/intfloat.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "rtpenc.h"
#include "mov_chan.h"
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | MOV_CLASS(flavor) |
#define | READ_BLOCK |
Variables | |
static const AVOption | options [] |
static const AVCodecTag | codec_ipod_tags [] |
struct { | |
enum AVPixelFormat pix_fmt | |
uint32_t tag | |
unsigned bps | |
} | mov_pix_fmt_tags [] |
static const AVCodecTag | codec_3gp_tags [] |
static const AVCodecTag | codec_f4v_tags [] |
static const uint16_t | fiel_data [] |
#define MOV_CLASS | ( | flavor | ) |
#define READ_BLOCK |
Referenced by shift_data().
|
static |
Definition at line 3997 of file movenc.c.
Referenced by compute_moov_size(), and mov_flush_fragment().
|
static |
Definition at line 81 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_chan_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_gmhd_tag(), mov_write_hdlr_tag(), mov_write_ilst_tag(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_mfra_tag(), mov_write_minf_tag(), mov_write_moof_tag_internal(), mov_write_moov_tag(), mov_write_ms_tag(), mov_write_mvex_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_tcmi_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_traf_tag(), mov_write_trak_tag(), mov_write_trun_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_wave_tag(), and mov_write_wfex_tag().
|
static |
Definition at line 91 of file movenc.c.
Referenced by ff_mov_write_packet(), mov_write_header(), and mov_write_trak_tag().
|
static |
Definition at line 97 of file movenc.c.
Referenced by mov_write_stco_tag().
|
static |
Definition at line 105 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 129 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 165 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 194 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 217 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 231 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
This function writes extradata "as is".
Extradata must be formatted like a valid atom (with size and tag).
Definition at line 279 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 285 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 293 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 301 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 310 of file movenc.c.
Referenced by mov_write_esds_tag().
|
static |
Definition at line 321 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 373 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 381 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 389 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 399 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 408 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 433 of file movenc.c.
Referenced by mov_write_audio_tag().
Definition at line 474 of file movenc.c.
Referenced by mov_write_dvc1_tag(), and mov_write_trailer().
|
static |
Definition at line 549 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 566 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_video_tag().
|
static |
Compute flags for 'lpcm' tag.
See CoreAudioTypes and AudioStreamBasicDescription at Apple.
Definition at line 578 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 603 of file movenc.c.
Referenced by get_samples_per_packet(), mov_write_stts_tag(), mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 618 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 639 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 746 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 758 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 769 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 816 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 845 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 862 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 887 of file movenc.c.
Referenced by find_compressor(), mov_create_timecode_track(), and mov_get_mpeg2_xdcam_codec_tag().
|
static |
Definition at line 900 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 981 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 998 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1059 of file movenc.c.
Referenced by mov_write_header().
|
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 1085 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1101 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1114 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1129 of file movenc.c.
Referenced by mov_write_video_tag().
Definition at line 1142 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1168 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1249 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1269 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1304 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1324 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1358 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1399 of file movenc.c.
Referenced by mov_write_dinf_tag().
|
static |
Definition at line 1414 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1436 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1445 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1453 of file movenc.c.
Referenced by mov_write_gmhd_tag().
|
static |
Definition at line 1475 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1521 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1531 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1540 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
Definition at line 1599 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1614 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1641 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1677 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1692 of file movenc.c.
Referenced by mov_write_mvhd_tag(), and mov_write_tkhd_tag().
|
static |
Definition at line 1706 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1781 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1813 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1864 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1875 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1893 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1914 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1938 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1967 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 1980 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1991 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2044 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2060 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 2080 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 2094 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 2119 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2137 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2164 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2192 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2227 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2241 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), and mov_write_psp_udta_tag().
|
static |
Definition at line 2252 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
|
static |
Definition at line 2263 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_psp_udta_tag(), and mov_write_uuidusmt_tag().
|
static |
Definition at line 2270 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2292 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2318 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2374 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 2387 of file movenc.c.
Referenced by mov_write_moov_tag().
Definition at line 2424 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2447 of file movenc.c.
Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 2506 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2511 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2516 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2525 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2611 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2620 of file movenc.c.
Referenced by mov_write_traf_tag().
Definition at line 2671 of file movenc.c.
Referenced by mov_write_trun_tag().
|
static |
Definition at line 2677 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2727 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2747 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 2782 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2796 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2823 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2845 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2857 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 2881 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 2907 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2919 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2982 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3043 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 3064 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 3121 of file movenc.c.
Referenced by mov_write_packet(), mov_write_single_packet(), and mov_write_trailer().
int ff_mov_write_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) |
Definition at line 3246 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), mov_create_timecode_track(), and mov_write_single_packet().
|
static |
Definition at line 3398 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_subtitle_end_packet().
|
static |
Definition at line 3426 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_trailer().
|
static |
|
static |
Definition at line 3496 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3588 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3636 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3675 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
|
static |
Definition at line 4015 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 4040 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
|
static |
|
static |
enum AVPixelFormat pix_fmt |
uint32_t tag |
Definition at line 961 of file movenc.c.
Referenced by aac_encode_frame(), add_input_streams(), aiff_read_header(), ape_read_header(), asf_write_header1(), av_codec_get_tag(), av_dict_set(), av_find_info_tag(), av_get_audio_frame_duration(), avformat_find_stream_info(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_stream2fourcc(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), copy_tag(), decode_frame(), dump_metadata(), dxa_read_header(), eval_function(), ff_mov_get_channel_layout_tag(), 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(), id3v2_check_write_tag(), id3v2_parse(), ipod_get_codec_tag(), ircam_read_header(), ircam_write_header(), libschroedinger_decode_frame(), lz_unpack(), main(), matroska_convert_tags(), metasound_decode_init(), 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_mpeg2_xdcam_codec_tag(), mov_get_rawvideo_codec_tag(), mov_probe(), mov_read_custom_metadata(), mov_read_meta(), mov_read_udta_string(), mov_write_audio_tag(), mp4_get_codec_tag(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), new_output_stream(), nuv_resync(), ogm_header(), parse_fragment(), parse_mp4_descr(), pmt_cb(), process_line(), put_meta(), put_swf_end_tag(), put_swf_tag(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read_chapter(), read_header(), rm_read_header(), rv10_write_header(), sami_paragraph_to_ass(), show_tags(), siff_probe(), siff_read_header(), smjpeg_write_header(), sol_read_header(), srt_to_ass(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), vs_2_av_log_wrapper(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), xan_decode_frame(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().
unsigned bps |
Definition at line 962 of file movenc.c.
Referenced by av_get_audio_frame_duration(), avr_read_header(), copy_samples(), decode_element(), decode_subframe(), decode_wave_header(), ff_put_wav_header(), ff_wma_init(), gxf_packet(), main(), nist_read_header(), nsv_read_chunk(), parse_waveformatex(), pvf_read_header(), rso_read_header(), swap_sample_fmts_on_filter(), and tta_read_header().
struct { ... } mov_pix_fmt_tags[] |
Referenced by mov_get_rawvideo_codec_tag().
|
static |
|
static |
|
static |
Definition at line 1097 of file movenc.c.
Referenced by mov_write_fiel_tag().