FFmpeg
|
#include <stdint.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/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 "hevc.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 4050 of file movenc.c.
Referenced by compute_moov_size(), and mov_flush_fragment().
|
static |
Definition at line 85 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_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_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 95 of file movenc.c.
Referenced by ff_mov_write_packet(), mov_write_header(), and mov_write_trak_tag().
|
static |
Definition at line 101 of file movenc.c.
Referenced by mov_write_stco_tag().
|
static |
Definition at line 109 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 133 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 169 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 198 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 221 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 235 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 283 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 289 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 297 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 305 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 314 of file movenc.c.
Referenced by mov_write_esds_tag().
|
static |
Definition at line 325 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 377 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 385 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 393 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 403 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 412 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 437 of file movenc.c.
Referenced by mov_write_audio_tag().
Definition at line 478 of file movenc.c.
Referenced by mov_write_dvc1_tag(), and mov_write_trailer().
|
static |
Definition at line 553 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 570 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 582 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 607 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 627 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 648 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 755 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 767 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 777 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 788 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 835 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 865 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 882 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 907 of file movenc.c.
Referenced by find_compressor(), mov_create_timecode_track(), and mov_get_mpeg2_xdcam_codec_tag().
|
static |
Definition at line 920 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1004 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 1021 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1082 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 1108 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1124 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1137 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1152 of file movenc.c.
Referenced by mov_write_video_tag().
Definition at line 1165 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1191 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1274 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1294 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1329 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1349 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1383 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1424 of file movenc.c.
Referenced by mov_write_dinf_tag().
|
static |
Definition at line 1439 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1461 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1470 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1478 of file movenc.c.
Referenced by mov_write_gmhd_tag().
|
static |
Definition at line 1500 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1546 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1556 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1565 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
Definition at line 1624 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1639 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1666 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1702 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1717 of file movenc.c.
Referenced by mov_write_mvhd_tag(), and mov_write_tkhd_tag().
|
static |
Definition at line 1731 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1806 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1838 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1889 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1900 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1918 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1939 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1963 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1992 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 2005 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2016 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2069 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2085 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 2105 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 2119 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 2144 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2162 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2189 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2217 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2253 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2267 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), and mov_write_psp_udta_tag().
|
static |
Definition at line 2278 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
|
static |
Definition at line 2289 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 2296 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2318 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2344 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2400 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 2413 of file movenc.c.
Referenced by mov_write_moov_tag().
Definition at line 2450 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2473 of file movenc.c.
Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 2532 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2537 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2542 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2551 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2637 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2646 of file movenc.c.
Referenced by mov_write_traf_tag().
Definition at line 2697 of file movenc.c.
Referenced by mov_write_trun_tag().
|
static |
Definition at line 2703 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2753 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2773 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 2808 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2822 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2849 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2871 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2883 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 2907 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 2933 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2945 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3010 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3071 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 3092 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 3149 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 3274 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), mov_create_timecode_track(), and mov_write_single_packet().
|
static |
Definition at line 3446 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_subtitle_end_packet().
|
static |
Definition at line 3474 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_trailer().
|
static |
|
static |
Definition at line 3544 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3636 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3684 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3723 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
|
static |
Definition at line 4068 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 4093 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
|
static |
|
static |
enum AVPixelFormat pix_fmt |
uint32_t tag |
Definition at line 984 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(), 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(), 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_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 985 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(), process_output(), 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 1120 of file movenc.c.
Referenced by mov_write_fiel_tag().