FFmpeg
2.8.15
|
#include <stdint.h>
#include <inttypes.h>
#include "movenc.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"
#include "avio.h"
#include "isom.h"
#include "avc.h"
#include "libavcodec/ac3_parser.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/vc1_common.h"
#include "libavcodec/raw.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/intfloat.h"
#include "libavutil/mathematics.h"
#include "libavutil/libm.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "libavutil/pixdesc.h"
#include "libavutil/timecode.h"
#include "libavutil/color_utils.h"
#include "hevc.h"
#include "rtpenc.h"
#include "mov_chan.h"
Go to the source code of this file.
Data Structures | |
struct | eac3_info |
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 5345 of file movenc.c.
Referenced by compute_moov_size(), and mov_flush_fragment().
|
static |
Definition at line 99 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_hdlr_tag(), mov_write_psp_udta_tag(), mov_write_tmcd_tag(), and mov_write_track_metadata().
|
static |
Definition at line 111 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_chpl_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_gmhd_tag(), mov_write_hdlr_tag(), mov_write_hvcc_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_sidx_tag(), mov_write_source_reference_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_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_track_metadata(), 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 121 of file movenc.c.
Referenced by mov_write_stco_tag().
|
static |
Definition at line 129 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 153 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 189 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 218 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 241 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 255 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 459 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 516 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 522 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 530 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 538 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 547 of file movenc.c.
Referenced by mov_write_esds_tag().
|
static |
Definition at line 558 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_subtitle_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 612 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 620 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 628 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 640 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 651 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 679 of file movenc.c.
Referenced by mov_write_audio_tag().
Definition at line 722 of file movenc.c.
Referenced by mov_write_dvc1_tag().
|
static |
Definition at line 805 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 821 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 833 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 858 of file movenc.c.
Referenced by get_samples_per_packet(), mov_flush_fragment(), mov_write_stts_tag(), mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 878 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 899 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1011 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1023 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1033 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1044 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1115 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1128 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1160 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1179 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1204 of file movenc.c.
Referenced by find_compressor(), mov_create_timecode_track(), mov_get_h264_codec_tag(), and mov_get_mpeg2_xdcam_codec_tag().
|
static |
Definition at line 1217 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1279 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1359 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1384 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1448 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 1474 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1490 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1503 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1520 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1533 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1558 of file movenc.c.
Referenced by mov_write_video_tag().
Definition at line 1632 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1660 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1766 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1786 of file movenc.c.
Referenced by mov_write_tmcd_tag().
|
static |
Definition at line 1805 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1848 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1868 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1904 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1949 of file movenc.c.
Referenced by mov_write_dinf_tag().
|
static |
Definition at line 1964 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1991 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2000 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2008 of file movenc.c.
Referenced by mov_write_gmhd_tag().
|
static |
Definition at line 2030 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2076 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2086 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2095 of file movenc.c.
Referenced by mov_write_hdlr_tag(), mov_write_minf_tag(), and mov_write_trak_tag().
|
static |
Definition at line 2101 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
Definition at line 2174 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 2189 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 2219 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 2258 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2277 of file movenc.c.
Referenced by mov_write_mvhd_tag(), and mov_write_tkhd_tag().
|
static |
Definition at line 2291 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2394 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2426 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2511 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2522 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2540 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2561 of file movenc.c.
Referenced by mov_write_track_udta_tag().
|
static |
Definition at line 2575 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2602 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2655 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2684 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 2697 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2708 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2768 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2784 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 2804 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 2818 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 2843 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2861 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2888 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2916 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2955 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2969 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2989 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
|
static |
Definition at line 3000 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 3007 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 3029 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 3055 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 3110 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 3123 of file movenc.c.
Referenced by mov_write_moov_tag().
Definition at line 3161 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 3184 of file movenc.c.
Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3248 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 3253 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 3258 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 3267 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3354 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
Definition at line 3363 of file movenc.c.
Referenced by mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 3369 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 3429 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 3482 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 3503 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 3538 of file movenc.c.
Referenced by mov_add_tfra_entries().
|
static |
Definition at line 3552 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 3592 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 3604 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 3644 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 3667 of file movenc.c.
Referenced by mov_write_sidx_tags().
|
static |
Definition at line 3728 of file movenc.c.
Referenced by get_sidx_size(), mov_write_moof_tag(), and mov_write_trailer().
|
static |
Definition at line 3763 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 3783 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 3807 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 3833 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3845 of file movenc.c.
Referenced by mov_write_identification().
|
static |
Definition at line 3920 of file movenc.c.
Referenced by mov_write_identification().
|
static |
Definition at line 3983 of file movenc.c.
Referenced by mov_flush_fragment(), and mov_write_header().
|
static |
Definition at line 4010 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 4031 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 4091 of file movenc.c.
Referenced by ff_mov_write_packet(), and mov_flush_fragment().
|
static |
Definition at line 4117 of file movenc.c.
Referenced by mov_auto_flush_fragment(), and mov_write_packet().
|
static |
Definition at line 4290 of file movenc.c.
Referenced by mov_write_single_packet(), and mov_write_trailer().
|
static |
Definition at line 4304 of file movenc.c.
Referenced by ff_mov_write_packet(), and mov_write_single_packet().
int ff_mov_write_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) |
Definition at line 4327 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), mov_create_chapter_track(), mov_create_timecode_track(), and mov_write_single_packet().
|
static |
Definition at line 4573 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_subtitle_end_packet().
|
static |
Definition at line 4620 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_trailer().
|
static |
|
static |
Definition at line 4690 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 4787 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 4842 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 4883 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 4909 of file movenc.c.
Referenced by mov_create_dvd_sub_decoder_specific_info().
Definition at line 4925 of file movenc.c.
Referenced by mov_write_header().
|
static |
|
static |
Definition at line 5358 of file movenc.c.
Referenced by compute_sidx_size().
|
static |
Definition at line 5376 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 5401 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 5416 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
|
static |
enum AVPixelFormat pix_fmt |
Definition at line 1338 of file movenc.c.
Referenced by mov_get_rawvideo_codec_tag().
uint32_t tag |
Definition at line 1339 of file movenc.c.
Referenced by aac_encode_frame(), add_input_streams(), aiff_read_header(), ape_read_header(), apng_find_chunk(), apng_probe(), apng_read_header(), apng_read_packet(), asf_write_header1(), av_codec_get_tag(), av_dict_set(), av_find_info_tag(), av_get_audio_frame_duration(), avformat_find_stream_info(), avformat_match_stream_specifier(), avi_extract_stream_metadata(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_stream2fourcc(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), check_content_type(), check_tag(), copy_tag(), decode_frame_common(), decode_interframe_v4(), decode_interframe_v4a(), 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(), find_sidx(), get_swf_tag(), guess_ni_flag(), gxf_material_tags(), gxf_track_tags(), hq_hqa_decode_frame(), id3v1_create_tag(), id3v1_set_string(), id3v2_check_write_tag(), id3v2_parse(), iff_read_header(), 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_stereo_mode(), mkv_write_tag(), mkv_write_tags(), mkv_write_track(), mmf_read_header(), mov_find_codec_tag(), mov_get_codec_tag(), mov_get_dv_codec_tag(), mov_get_h264_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_get_rawvideo_codec_tag(), mov_probe(), mov_read_custom(), mov_read_custom_2plus(), mov_read_meta(), mov_read_udta_string(), mov_write_audio_tag(), mp4_get_codec_tag(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mxf_parse_package_comments(), new_output_stream(), nuv_resync(), ogm_header(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_mp4_descr(), parse_multipart_header(), parse_video_info(), 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(), read_moof_duration(), rm_read_header(), rv10_write_header(), sami_paragraph_to_ass(), set_codec_str(), show_tags(), siff_probe(), siff_read_header(), skip_tag(), smjpeg_write_header(), sol_read_header(), srt_to_ass(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), vs2av_log(), write_metadata(), write_odml_master(), write_stream_codec_info(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), xan_decode_frame(), xv_write_header(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().
unsigned bps |
Definition at line 1340 of file movenc.c.
Referenced by av_get_audio_frame_duration(), avr_read_header(), buffer_size_after_time_downloaded(), config_input(), copy_samples(), decode_element(), decode_subframe(), decode_wave_header(), ff_audio_resample(), ff_put_wav_header(), ff_spp_init_x86(), ff_wma_init(), gxf_packet(), main(), nist_read_header(), nsv_read_chunk(), parse_waveformatex(), process_output(), pvf_read_header(), rso_read_header(), swap_sample_fmts_on_filter(), tta_read_header(), and webm_dash_manifest_compute_bandwidth().
const { ... } mov_pix_fmt_tags[] |
Referenced by mov_get_rawvideo_codec_tag().
|
static |
|
static |