Libav
|
#include "config.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/md5.h"
#include "libavformat/avformat.h"
#include "compat/getopt.c"
Go to the source code of this file.
Macros | |
#define | HASH_SIZE 16 |
#define | check(value, ...) check_func(value, __LINE__, __VA_ARGS__) |
Functions | |
static void | count_warnings (void *avcl, int level, const char *fmt, va_list vl) |
static void | init_count_warnings (void) |
static void | reset_count_warnings (void) |
static int | io_write (void *opaque, uint8_t *buf, int size) |
static int | io_write_data_type (void *opaque, uint8_t *buf, int size, enum AVIODataMarkerType type, int64_t time) |
static void | init_out (const char *name) |
static void | close_out (void) |
static void | check_func (int value, int line, const char *msg,...) |
static void | init_fps (int bf, int audio_preroll, int fps) |
static void | init (int bf, int audio_preroll) |
static void | mux_frames (int n) |
static void | mux_gops (int n) |
static void | skip_gops (int n) |
static void | signal_init_ts (void) |
static void | finish (void) |
static void | help (void) |
int | main (int argc, char **argv) |
Variables | |
static const uint8_t | h264_extradata [] |
static const uint8_t | aac_extradata [] |
const char * | format = "mp4" |
AVFormatContext * | ctx |
uint8_t | iobuf [32768] |
AVDictionary * | opts |
int | write_file |
const char * | cur_name |
FILE * | out |
int | out_size |
struct AVMD5 * | md5 |
uint8_t | hash [HASH_SIZE] |
AVStream * | video_st |
AVStream * | audio_st |
int64_t | audio_dts |
int64_t | video_dts |
int | bframes |
int64_t | duration |
int64_t | audio_duration |
int | frames |
int | gop_size |
int64_t | next_p_pts |
enum AVPictureType | last_picture |
int | skip_write |
int | skip_write_audio |
int | clear_duration |
int | force_iobuf_size |
int | do_interleave |
int | fake_pkt_duration |
int | num_warnings |
int | check_faults |
#define HASH_SIZE 16 |
Definition at line 37 of file movenc.c.
Referenced by close_out(), and main().
#define check | ( | value, | |
... | |||
) | check_func(value, __LINE__, __VA_ARGS__) |
Definition at line 81 of file movenc.c.
Referenced by init_count_warnings().
Definition at line 98 of file movenc.c.
Referenced by init_fps(), and io_write_data_type().
|
static |
Definition at line 107 of file movenc.c.
Referenced by init_fps().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 246 of file movenc.c.
Referenced by main(), and mux_gops().
|
static |
Definition at line 309 of file movenc.c.
Referenced by main(), and skip_gops().
|
static |
Definition at line 338 of file movenc.c.
Referenced by aac_adtstoasc_filter(), decode_frame(), decode_slice(), ff_h264_execute_decode_slices(), ff_vaapi_common_end_frame(), io_open_default(), main(), merge_date(), mov_read_chapters(), opus_decode_subpacket(), output_packet(), parse_keyframes_index(), read_huffman_code_normal(), vaapi_h264_end_frame(), and xan_unpack().
|
static |
Definition at line 39 of file movenc.c.
Referenced by init_fps().
|
static |
const char* format = "mp4" |
Definition at line 47 of file movenc.c.
Referenced by av_register_input_format(), av_register_output_format(), avfilter_register_all(), config_output(), config_props(), configure_output_audio_filter(), configure_video_device(), dxva2_create_decoder(), ff_alsa_open(), ff_flac_parse_streaminfo(), ff_flv_decode_picture_header(), ff_flv_encode_picture_header(), ff_h261_encode_picture_header(), ff_h263_decode_picture_header(), ff_h263_encode_picture_header(), ff_intel_h263_decode_picture_header(), ff_mov_read_stsd_entries(), ff_vda_create_decoder(), ff_vda_default_init(), find_reorder_func(), flac_decode_init(), h261_decode_picture_header(), init_fps(), init_out(), list_capture_devices_by_type(), magy_decode_frame(), main(), mkv_write_stereo_mode(), mov_codec_id(), print_supported_formats(), and swap_sample_fmts_on_filter().
AVFormatContext* ctx |
Definition at line 48 of file movenc.c.
Referenced by aac_adtstoasc_filter(), aic_decode_close(), aic_decode_frame(), aic_decode_init(), amrwb_decode_frame(), amrwb_decode_init(), atrac3p_decode_frame(), atrac3p_decode_init(), av_bsf_alloc(), av_bsf_free(), av_hwdevice_ctx_alloc(), av_hwdevice_ctx_init(), av_hwdevice_get_hwframe_constraints(), av_hwdevice_hwconfig_alloc(), av_hwframe_ctx_alloc(), av_hwframe_ctx_init(), av_hwframe_get_buffer(), av_hwframe_transfer_data(), av_hwframe_transfer_get_formats(), av_md5_sum(), av_vorbis_parse_init(), avconv_cleanup(), avfoundation_list_capture_devices(), avfoundation_read_close(), bsf_child_next(), channelmap_config_input(), channelmap_filter_frame(), cllc_decode_close(), cllc_decode_frame(), cllc_decode_init(), codecctl_int(), color_config_props(), commit_bitstream_and_slice_buffer(), compand_drain(), compress_texture(), config_input(), config_input_overlay(), config_input_props(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_in(), config_props_out(), config_props_output(), configure_video_device(), cuda_buffer_free(), cuda_pool_alloc(), cudaupload_config_output(), cudaupload_filter_frame(), dash_write_header(), dds_decode(), decode_block(), decode_cabac_field_decoding_flag(), decode_cabac_intra_mb_type(), decode_cabac_mb_cbp_chroma(), decode_cabac_mb_cbp_luma(), decode_cabac_mb_chroma_pre_mode(), decode_cabac_mb_ref(), decode_cabac_mb_skip(), decode_close(), decode_end(), decode_flush(), decode_frame(), decode_init(), decode_intra4x4_modes(), decode_slice(), decode_slice_thread(), decode_wmv9(), decompress_chunks_thread(), decompress_texture_thread(), display_end_segment(), dnxhd_calc_bits_thread(), dnxhd_decode_close(), dnxhd_decode_frame(), dnxhd_decode_init(), dnxhd_encode_end(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_encode_thread(), dnxhd_mb_var_thread(), dnxhd_write_header(), dss_723_1_read_packet(), dss_read_close(), dss_read_header(), dss_read_packet(), dss_skip_audio_header(), dss_sp_read_packet(), dvbsub_close_decoder(), dvbsub_init_decoder(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvdsub_decode(), dvdsub_init(), dxv_close(), dxv_decode(), dxv_decompress_dxt1(), dxv_decompress_dxt5(), dxv_decompress_lzf(), dxv_decompress_raw(), dxv_init(), dxva2_alloc(), dxva2_create_decoder(), dxva2_get_buffer(), dxva2_get_decoder_configuration(), dxva2_h264_decode_slice(), dxva2_h264_start_frame(), dxva2_hevc_start_frame(), dxva2_init(), dxva2_mpeg2_start_frame(), dxva2_pool_alloc(), dxva2_retrieve_data(), dxva2_uninit(), dxva2_vc1_start_frame(), encode_close(), encode_frame(), encode_init(), encode_picture_ls(), encode_slice(), ff_dxva2_common_end_frame(), ff_h264_decode_mb_cabac(), ff_ivi_decode_close(), ff_ivi_decode_frame(), ff_jpeg2000_getsgnctxno(), ff_mpeg4_frame_end(), ff_nvenc_encode_close(), ff_nvenc_encode_frame(), ff_nvenc_encode_init(), ff_psy_preprocess_init(), ff_rtp_parse_set_dynamic_protocol(), ff_vaapi_encode2(), ff_vaapi_encode_close(), ff_vaapi_encode_init(), ff_vda_output_callback(), ffmal_copy_frame(), ffmal_update_format(), ffmmal_add_packet(), ffmmal_close_decoder(), ffmmal_decode(), ffmmal_fill_input_port(), ffmmal_fill_output_port(), ffmmal_flush(), ffmmal_init_decoder(), ffmmal_read_frame(), ffmmal_stop_decoder(), fic_decode_close(), fic_decode_frame(), fic_decode_init(), fic_decode_slice(), fic_draw_cursor(), fill_slice_long(), filter_child_next(), filter_frame(), find_quant_thread(), find_slice_quant(), flush(), flush_cache(), fmt_v4l2codec(), frame_alloc(), get_aspect_ratio(), get_cabac_cbf_ctx(), get_video_config(), gsm_decode_block(), handle_file(), hap_close(), hap_compress_frame(), hap_decode(), hap_encode(), hap_init(), hap_parse_frame_header(), hds_write_header(), hevc_find_frame_end(), hevc_parse(), hevc_parse_slice_header(), hevc_parser_close(), horizontal_frame_pack(), hq_hqa_decode_close(), hq_hqa_decode_frame(), hq_hqa_decode_init(), hqx_decode_close(), hqx_decode_frame(), hqx_decode_init(), hwdevice_ctx_free(), hwdownload_config_input(), hwdownload_config_output(), hwdownload_filter_frame(), hwdownload_uninit(), hwframe_ctx_free(), hwframe_pool_prealloc(), hwupload_config_output(), hwupload_filter_frame(), hwupload_query_formats(), hwupload_uninit(), init_out_session(), init_output_bsfs(), input_callback(), insert_filter(), insert_trim(), ism_write_header(), join_config_output(), join_request_frame(), latm_write_frame_header(), latm_write_header(), libkvazaar_close(), libkvazaar_encode(), libkvazaar_init(), libopenjpeg_decode_frame(), libopenjpeg_decode_init(), libopenjpeg_encode_close(), libopenjpeg_encode_frame(), libopenjpeg_encode_init(), libx265_encode_close(), libx265_encode_frame(), libx265_encode_init(), log_encoder_error(), mace_decode_frame(), main(), mimic_decode_end(), mimic_decode_frame(), mimic_decode_init(), mimic_init_thread_copy(), mov_read_cmov(), mov_write_udta_sdp(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), mpeg_decode_update_thread_context(), mss2_decode_end(), mss2_decode_frame(), mss2_decode_init(), mxf_read_local_tags(), nppscale_config_props(), nppscale_scale(), nuv_header(), nuv_packet(), nvenc_alloc_surface(), nvenc_check_cap(), nvenc_check_capabilities(), nvenc_check_codec_support(), nvenc_check_device(), nvenc_codec_specific_pic_params(), nvenc_find_free_reg_resource(), nvenc_get_output(), nvenc_load_libraries(), nvenc_open_session(), nvenc_override_rate_control(), nvenc_register_frame(), nvenc_set_timestamp(), nvenc_setup_device(), nvenc_setup_encoder(), nvenc_setup_extradata(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), nvenc_setup_rate_control(), nvenc_setup_surfaces(), nvenc_upload_frame(), open_output_file(), opt_map(), output_callback(), output_frame(), output_ready(), parse_nal_units(), parse_object_segment(), parse_palette_segment(), parse_pixel_format(), parse_presentation_segment(), print_sdp(), process_frame(), qsv_frame_alloc(), qsv_init_internal_session(), qsv_pool_alloc(), qsv_transfer_data_from(), qsv_transfer_data_to(), qsvdeint_config_props(), qsvdeint_filter_frame(), qsvdeint_request_frame(), qsvscale_config_props(), qsvscale_filter_frame(), queue_frames(), request_frame(), rscc_close(), rscc_decode_frame(), rscc_init(), rtmp_close(), rtmp_get_file_handle(), rtmp_open(), rtmp_read(), rtmp_read_pause(), rtmp_read_seek(), rtmp_write(), run_postproc(), scale_vaapi_config_input(), scale_vaapi_config_output(), scale_vaapi_filter_frame(), scale_vaapi_init(), scale_vaapi_uninit(), screenpresso_close(), screenpresso_decode_frame(), screenpresso_init(), section_write_packet(), setup_stream(), shall_we_drop(), shuffleplanes_config_input(), shuffleplanes_filter_frame(), sipr_decode_frame(), sipr_decoder_init(), smacker_decode_header_tree(), source_config_props(), spatial_frame_pack(), spdif_header_aac(), spdif_header_ac3(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_mpeg(), spdif_header_truehd(), spdif_write_header(), spdif_write_packet(), spdif_write_trailer(), tdsc_close(), tdsc_decode_frame(), tdsc_decode_jpeg_tile(), tdsc_decode_tiles(), tdsc_init(), tdsc_load_cursor(), tdsc_paint_cursor(), tdsc_parse_dtsm(), tdsc_parse_tdsf(), transfer_data_alloc(), vaapi_decode_init(), vaapi_decode_uninit(), vaapi_device_init(), vaapi_device_uninit(), vaapi_encode_alloc_output_buffer(), vaapi_encode_check_config(), vaapi_encode_clear_old(), vaapi_encode_free_output_buffer(), vaapi_encode_get_next(), vaapi_encode_h264_init_constant_bitrate(), vaapi_encode_h264_init_fixed_qp(), vaapi_encode_h264_init_internal(), vaapi_encode_h264_init_picture_params(), vaapi_encode_h264_init_sequence_params(), vaapi_encode_h264_init_slice_params(), vaapi_encode_h264_write_extra_header(), vaapi_encode_h264_write_sei(), vaapi_encode_h264_write_sequence_header(), vaapi_encode_h264_write_slice_header(), vaapi_encode_h265_init_constant_bitrate(), vaapi_encode_h265_init_fixed_qp(), vaapi_encode_h265_init_internal(), vaapi_encode_h265_init_picture_params(), vaapi_encode_h265_init_sequence_params(), vaapi_encode_h265_init_slice_params(), vaapi_encode_h265_write_sequence_header(), vaapi_encode_h265_write_slice_header(), vaapi_encode_issue(), vaapi_encode_make_packed_header(), vaapi_encode_make_param_buffer(), vaapi_encode_mangle_end(), vaapi_encode_mjpeg_init_internal(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mjpeg_init_tables(), vaapi_encode_mjpeg_write_extra_buffer(), vaapi_encode_mjpeg_write_image_header(), vaapi_encode_output(), vaapi_encode_step(), vaapi_encode_wait(), vaapi_frames_get_constraints(), vaapi_frames_init(), vaapi_frames_uninit(), vaapi_get_buffer(), vaapi_get_image_format(), vaapi_map_frame(), vaapi_mpeg4_start_frame(), vaapi_pool_alloc(), vaapi_retrieve_data(), vaapi_transfer_get_formats(), vble_decode_close(), vble_decode_frame(), vble_decode_init(), vc1test_write_packet(), vc1test_write_trailer(), vdpau_alloc(), vdpau_buffer_free(), vdpau_get_buffer(), vdpau_mpeg4_start_frame(), vdpau_pool_alloc(), vdpau_retrieve_data(), vdpau_transfer_data_to(), vdpau_uninit(), vertical_frame_pack(), vfw_read_close(), vfw_read_header(), vfw_read_packet(), videostream_cb(), vp56_decode_mv(), vp56_parse_mb_type(), vp56_parse_mb_type_models(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp6_parse_coeff(), vp6_parse_coeff_models(), vp8_decode(), vp8_encode(), vp8_free(), vpx_init(), xan_decode_frame(), xan_unpack(), and xcbgrab_read_close().
uint8_t iobuf[32768] |
Definition at line 49 of file movenc.c.
Referenced by init_fps().
AVDictionary* opts |
Definition at line 50 of file movenc.c.
Referenced by dash_write_header(), ff_rtp_chain_mux_open(), ff_rtsp_open_transport_ctx(), ff_tls_open_underlying(), ff_wms_parse_sdp_a_line(), ism_seek(), ism_write_header(), map_to_opts(), open_input(), open_input_file(), parse_filter(), rtmp_open(), rtsp_read_setup(), save_avio_options(), setup_find_stream_info_opts(), stream_component_open(), stream_setup(), vdpau_transfer_data_to(), and xcbgrab_read_header().
int write_file |
Definition at line 52 of file movenc.c.
Referenced by init_out(), and main().
const char* cur_name |
Definition at line 53 of file movenc.c.
Referenced by close_out(), and init_out().
FILE* out |
Definition at line 54 of file movenc.c.
Referenced by anti_sparseness(), av_base64_decode(), av_base64_encode(), av_get_token(), av_mlfg_get(), avs_decode_frame(), cdg_scroll(), cdxl_decode_ham6(), cdxl_decode_ham8(), clear_index_entries(), close_out(), compress_texture(), copy_moof(), cudaupload_filter_frame(), dc1394_read_common(), dca_subframe_footer(), decode_frame(), decode_ics(), decode_residual_spectrum(), decode_rle(), decorrelation(), doTest(), dpcm_decode_frame(), dss_sp_decode_frame(), dump_attachment(), epic_jb_decode_tile(), evaluate_lls(), f_func(), ff_avc_find_startcode(), ff_avc_write_annexb_extradata(), ff_dca_xll_decode_audio(), ff_do_elbg(), ff_filter_frame(), ff_get_cpu_flags_ppc(), ff_h264_execute_ref_pic_marking(), ff_ref_fdct(), ff_ref_idct(), ff_rle_encode(), ff_srtp_encrypt(), ff_twinvq_decode_frame(), ff_yuv2rgb_init_tables_ppc(), fft_ref(), filter(), filter_frame(), find_header_idx(), flac_decorrelate_indep_c(), flac_decorrelate_ls_c(), flac_decorrelate_ms_c(), flac_decorrelate_rs_c(), g723_1_decode_frame(), generate_codebook(), generate_new_codebooks(), grab_read_header(), gxf_resync_media(), h264_decode_frame(), h264_extradata_to_annexb(), h264_select_output_frame(), hls_window(), huf_decode(), hybrid2_re(), hybrid4_8_12_cx(), hybrid6_cx(), imdct_and_window(), imdct_and_windowing(), imdct_and_windowing_eld(), imdct_and_windowing_ld(), init_out(), io_write(), ir2_decode_plane(), ir2_decode_plane_inter(), jpg_decode_data(), list_formats(), log16(), main(), md5_close(), mjpeg_decode_app(), mss4_decode_dct_block(), mxf_interleave_get_packet(), nppscale_filter_frame(), on2avc_reconstruct_channel(), on2avc_reconstruct_stereo(), open_output_file(), opus_decode_packet(), output_buffer(), output_client_manifest(), output_mpd(), output_server_manifest(), paf_video_decode(), parse_iplconvkernel(), piz_uncompress(), pmt_cb(), pretwiddle(), process_frame(), ps_hybrid_analysis_c(), ps_hybrid_analysis_ileave_c(), put_main_header(), pxr24_uncompress(), qdm2_calculate_fft(), qdm2_decode_frame(), qmf_64_subbands(), qsv_transfer_data_from(), qsv_transfer_data_to(), qsvscale_filter_frame(), r3d_read_header(), ra288_decode_frame(), read_tree(), return_audio_frame(), rl2_rle_decode(), roq_dpcm_encode_frame(), sbr_make_f_tablelim(), set_side_data(), setup_stream(), targa_encode_frame(), targa_encode_normal(), targa_encode_rle(), test(), tm2_build_huff_table(), WINDOW_FUNC(), write_abst(), write_fragment(), write_fragments(), write_manifest(), write_packet(), xmlescape(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().
int out_size |
Definition at line 55 of file movenc.c.
Referenced by adx_encode_frame(), audio_decode_frame(), close_out(), estimate_best_b_count(), ff_avc_write_annexb_extradata(), filter_frame(), flush(), g722_encode_frame(), g726_reset(), init_out(), io_write(), io_write_data_type(), main(), opus_decode_subpacket(), rle_decode(), rtmp_calc_swf_verification(), rtmp_calc_swfhash(), ws_snd_decode_frame(), wsaud_read_packet(), and xwd_encode_frame().
struct AVMD5* md5 |
Definition at line 56 of file movenc.c.
Referenced by av_register_all(), do_adobe_auth(), do_llnw_auth(), main(), tak_read_header(), and verify_md5().
Definition at line 57 of file movenc.c.
Referenced by adpcm_compress_trellis(), bidir_refine(), close_out(), do_adobe_auth(), do_llnw_auth(), main(), and make_digest_auth().
AVStream* video_st |
Definition at line 59 of file movenc.c.
Referenced by avi_write_header(), main(), mov_write_uuidprof_tag(), and mxg_read_header().
AVStream * audio_st |
Definition at line 59 of file movenc.c.
Referenced by main(), and mxg_read_header().
int64_t audio_dts |
Definition at line 60 of file movenc.c.
Referenced by init_fps(), mux_frames(), and signal_init_ts().
int64_t video_dts |
Definition at line 60 of file movenc.c.
Referenced by init_fps(), mux_frames(), and signal_init_ts().
int bframes |
Definition at line 62 of file movenc.c.
Referenced by init_fps(), and mux_frames().
int64_t duration |
Definition at line 63 of file movenc.c.
Referenced by av_vorbis_parse_frame(), av_vorbis_parse_init(), celt_decode_allocation(), celt_decode_band(), compute_pkt_fields(), dca_parse(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), ff_ass_add_rect(), init_fps(), libvorbis_encode_frame(), main(), matroska_parse_block(), matroska_parse_frame(), mkv_write_ass_blocks(), mkv_write_packet_internal(), mkv_write_srt_blocks(), mov_flush_fragment(), mov_read_ctts(), mov_read_elst(), mov_read_stts(), mov_write_ctts_tag(), mov_write_edts_tag(), mov_write_sidx_tag(), mov_write_stts_tag(), mov_write_tkhd_tag(), mux_frames(), nsv_parse_NSVf_header(), process_input(), qdm2_decode_fft_packets(), qdm2_fft_decode_tones(), qdm2_fft_init_coefficient(), read_braindead_odml_indx(), read_frame(), rm_read_header(), rv10_write_header(), seek_to_start(), smjpeg_read_header(), srt_get_duration(), update_initial_durations(), update_stream_timings(), vorbis_packet(), and vp8_packet().
int64_t audio_duration |
Definition at line 64 of file movenc.c.
Referenced by init_fps(), and mux_frames().
int frames |
Definition at line 65 of file movenc.c.
Referenced by ac3_eac3_probe(), adts_aac_probe(), amr_handle_packet(), dfa_read_header(), flush(), hwframe_pool_prealloc(), init_fps(), mux_frames(), mxf_parse_mpeg2_frame(), paf_audio_decode(), rtp_send_ilbc(), and vc1t_read_header().
int gop_size |
Definition at line 66 of file movenc.c.
Referenced by encode_init(), init_fps(), main(), mux_frames(), and mux_gops().
int64_t next_p_pts |
Definition at line 67 of file movenc.c.
Referenced by mux_frames().
enum AVPictureType last_picture |
Definition at line 68 of file movenc.c.
Referenced by ff_mpeg_update_thread_context(), and mux_frames().
int skip_write |
Definition at line 69 of file movenc.c.
Referenced by mux_frames(), and skip_gops().
int skip_write_audio |
Definition at line 70 of file movenc.c.
Referenced by main(), and mux_frames().
int clear_duration |
Definition at line 71 of file movenc.c.
Referenced by main(), and mux_frames().
int force_iobuf_size |
Definition at line 72 of file movenc.c.
Referenced by init_fps(), and main().
int do_interleave |
Definition at line 73 of file movenc.c.
Referenced by main(), and mux_frames().
int fake_pkt_duration |
Definition at line 74 of file movenc.c.
Referenced by main(), and mux_frames().
int num_warnings |
Definition at line 76 of file movenc.c.
Referenced by count_warnings(), init_count_warnings(), and main().
int check_faults |
Definition at line 78 of file movenc.c.
Referenced by check_func(), and main().