FFmpeg
Functions | Variables
demuxing_decoding.c File Reference
#include <libavutil/imgutils.h>
#include <libavutil/samplefmt.h>
#include <libavutil/timestamp.h>
#include <libavformat/avformat.h>

Go to the source code of this file.

Functions

static int output_video_frame (AVFrame *frame)
 
static int output_audio_frame (AVFrame *frame)
 
static int decode_packet (AVCodecContext *dec, const AVPacket *pkt)
 
static int open_codec_context (int *stream_idx, AVCodecContext **dec_ctx, AVFormatContext *fmt_ctx, enum AVMediaType type)
 
static int get_format_from_sample_fmt (const char **fmt, enum AVSampleFormat sample_fmt)
 
int main (int argc, char **argv)
 

Variables

static AVFormatContextfmt_ctx = NULL
 
static AVCodecContextvideo_dec_ctx = NULL
 
static AVCodecContextaudio_dec_ctx
 
static int width
 
static int height
 
static enum AVPixelFormat pix_fmt
 
static AVStreamvideo_stream = NULL
 
static AVStreamaudio_stream = NULL
 
static const char * src_filename = NULL
 
static const char * video_dst_filename = NULL
 
static const char * audio_dst_filename = NULL
 
static FILE * video_dst_file = NULL
 
static FILE * audio_dst_file = NULL
 
static uint8_tvideo_dst_data [4] = {NULL}
 
static int video_dst_linesize [4]
 
static int video_dst_bufsize
 
static int video_stream_idx = -1
 
static int audio_stream_idx = -1
 
static AVFrameframe = NULL
 
static AVPacket pkt
 
static int video_frame_count = 0
 
static int audio_frame_count = 0
 

Detailed Description

Demuxing and decoding example.

Show how to use the libavformat and libavcodec API to demux and decode audio and video data.

Definition in file demuxing_decoding.c.

Function Documentation

◆ output_video_frame()

static int output_video_frame ( AVFrame frame)
static
Examples
demuxing_decoding.c.

Definition at line 58 of file demuxing_decoding.c.

Referenced by decode_packet().

◆ output_audio_frame()

static int output_audio_frame ( AVFrame frame)
static
Examples
demuxing_decoding.c.

Definition at line 89 of file demuxing_decoding.c.

Referenced by decode_packet().

◆ decode_packet()

static int decode_packet ( AVCodecContext dec,
const AVPacket pkt 
)
static
Examples
demuxing_decoding.c.

Definition at line 109 of file demuxing_decoding.c.

Referenced by main().

◆ open_codec_context()

static int open_codec_context ( int stream_idx,
AVCodecContext **  dec_ctx,
AVFormatContext fmt_ctx,
enum AVMediaType  type 
)
static
Examples
demuxing_decoding.c.

Definition at line 147 of file demuxing_decoding.c.

Referenced by main().

◆ get_format_from_sample_fmt()

static int get_format_from_sample_fmt ( const char **  fmt,
enum AVSampleFormat  sample_fmt 
)
static
Examples
demuxing_decoding.c.

Definition at line 199 of file demuxing_decoding.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)
Examples
demuxing_decoding.c.

Definition at line 228 of file demuxing_decoding.c.

Variable Documentation

◆ fmt_ctx

AVFormatContext* fmt_ctx = NULL
static

◆ video_dec_ctx

AVCodecContext* video_dec_ctx = NULL
static
Examples
demuxing_decoding.c.

Definition at line 38 of file demuxing_decoding.c.

Referenced by main().

◆ audio_dec_ctx

AVCodecContext * audio_dec_ctx
static
Examples
demuxing_decoding.c.

Definition at line 38 of file demuxing_decoding.c.

Referenced by main(), and output_audio_frame().

◆ width

int width
static
Examples
demuxing_decoding.c.

Definition at line 39 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ height

int height
static
Examples
demuxing_decoding.c.

Definition at line 39 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ pix_fmt

enum AVPixelFormat pix_fmt
static
Examples
demuxing_decoding.c, and muxing.c.

Definition at line 40 of file demuxing_decoding.c.

Referenced by alloc_picture(), amf_init_encoder(), av_dv_codec_profile(), av_dv_codec_profile2(), av_get_pix_fmt(), av_get_pix_fmt_name(), av_get_pix_fmt_string(), av_hwframe_ctx_init(), av_image_alloc(), av_image_check_size2(), av_image_copy(), av_image_copy_to_buffer(), av_image_copy_uc_from(), av_image_fill_arrays(), av_image_fill_black(), av_image_fill_linesizes(), av_image_fill_pointers(), av_image_get_buffer_size(), av_image_get_linesize(), av_picture_copy(), av_picture_crop(), av_picture_pad(), av_pix_fmt_count_planes(), av_pix_fmt_desc_get(), av_pix_fmt_get_chroma_sub_sample(), av_pix_fmt_swap_endianness(), avcodec_get_chroma_sub_sample(), avi_write_header(), avpicture_alloc(), avpicture_fill(), avpicture_get_size(), avpicture_layout(), avpriv_set_systematic_pal2(), check_image_pointers(), compute_cmask(), convert_pix_fmt(), dc1394_read_common(), device_try_init(), dshow_cycle_formats(), fbdev_read_header(), fbdev_write_header(), ff_fill_line_with_color(), ff_fill_rgba_map(), ff_fmt_ff2v4l(), ff_huffyuvdsp_init(), ff_huffyuvdsp_init_x86(), ff_img_read_header(), ff_load_image(), ff_media_type_to_pix_fmt(), ff_parse_pixel_format(), ff_pix_fmt_to_guid(), ff_put_bmp_header(), ff_qsv_process_data(), ff_vk_mt_is_np_rgb(), fill_frameinfo_by_link(), get_format(), get_pix_fmt_depth(), get_pix_fmt_internal(), have_alpha_planar(), hls_slice_header(), image_copy(), init(), is16BPS(), is32BPS(), isALPHA(), isAnyRGB(), isBayer(), isBE(), isBGRinInt(), isFloat(), isGray(), isNBPS(), isPacked(), isPackedRGB(), isPlanar(), isPlanarRGB(), isPlanarYUV(), isRGB(), isRGBinInt(), isSemiPlanarYUV(), isYUV(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), list_formats(), load_mask(), main(), map_chroma_format(), mf_encv_input_adjust(), mf_encv_input_score(), mpegvideo_extract_headers(), nvenc_map_buffer_format(), opencl_frames_get_constraints(), opengl_compile_shaders(), opengl_draw(), opengl_fill_color_map(), output_video_frame(), pix_fmt_map(), pix_fmt_match(), pixfmt_from_pixmap_format(), print_pix_fmt_fourccs(), qsv_decode_header(), qsv_decode_preinit(), query_formats(), range_map(), rawvideo_read_header(), ser_read_header(), set_sps(), show_pix_fmts(), smv_img_pnt(), swf_read_packet(), sws_isSupportedEndiannessConversion(), sws_isSupportedInput(), sws_isSupportedOutput(), transfer_image_buf(), usePal(), v4l2_read_header(), vaapi_device_init(), vaapi_format_from_pix_fmt(), vaapi_frames_get_constraints(), vaapi_get_image_format(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), xwd_encode_frame(), and yuv4_read_header().

◆ video_stream

AVStream* video_stream = NULL
static

◆ audio_stream

AVStream * audio_stream = NULL
static
Examples
demuxing_decoding.c.

Definition at line 41 of file demuxing_decoding.c.

Referenced by event_loop(), main(), and yop_read_header().

◆ src_filename

const char* src_filename = NULL
static
Examples
demuxing_decoding.c.

Definition at line 42 of file demuxing_decoding.c.

Referenced by main(), and open_codec_context().

◆ video_dst_filename

const char* video_dst_filename = NULL
static
Examples
demuxing_decoding.c.

Definition at line 43 of file demuxing_decoding.c.

Referenced by main().

◆ audio_dst_filename

const char* audio_dst_filename = NULL
static
Examples
demuxing_decoding.c.

Definition at line 44 of file demuxing_decoding.c.

Referenced by main().

◆ video_dst_file

FILE* video_dst_file = NULL
static
Examples
demuxing_decoding.c.

Definition at line 45 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ audio_dst_file

FILE* audio_dst_file = NULL
static
Examples
demuxing_decoding.c.

Definition at line 46 of file demuxing_decoding.c.

Referenced by main(), and output_audio_frame().

◆ video_dst_data

uint8_t* video_dst_data[4] = {NULL}
static
Examples
demuxing_decoding.c.

Definition at line 48 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ video_dst_linesize

int video_dst_linesize[4]
static
Examples
demuxing_decoding.c.

Definition at line 49 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ video_dst_bufsize

int video_dst_bufsize
static
Examples
demuxing_decoding.c.

Definition at line 50 of file demuxing_decoding.c.

Referenced by main(), and output_video_frame().

◆ video_stream_idx

int video_stream_idx = -1
static
Examples
demuxing_decoding.c.

Definition at line 52 of file demuxing_decoding.c.

Referenced by main().

◆ audio_stream_idx

int audio_stream_idx = -1
static
Examples
demuxing_decoding.c.

Definition at line 52 of file demuxing_decoding.c.

Referenced by main().

◆ frame

AVFrame* frame = NULL
static

Definition at line 53 of file demuxing_decoding.c.

Referenced by decode_packet(), main(), output_audio_frame(), and output_video_frame().

◆ pkt

AVPacket pkt
static
Examples
decode_audio.c, decode_video.c, demuxing_decoding.c, encode_audio.c, encode_video.c, muxing.c, qsvdec.c, remuxing.c, and vaapi_transcode.c.

Definition at line 54 of file demuxing_decoding.c.

Referenced by a64multi_encode_frame(), aa_read_packet(), aac_adtstoasc_filter(), aac_parse_packet(), aal_read_packet(), ac3_handle_packet(), add_filename_as_pkt_side_data(), adp_read_packet(), ads_read_packet(), adts_aac_read_packet(), adts_write_packet(), adx_read_packet(), aea_read_packet(), afc_read_packet(), aiff_read_packet(), aiff_write_packet(), aix_read_packet(), alp_read_packet(), amf_copy_buffer(), amr_handle_packet(), amr_read_packet(), android_camera_read_close(), android_camera_read_packet(), annexb_read_packet(), aom_encode(), apc_read_packet(), ape_read_packet(), ape_tag_read_field(), apm_read_packet(), apng_read_packet(), append_flv_data(), append_packet_chunked(), aptx_hd_read_packet(), aptx_read_packet(), aqt_read_packet(), argo_asf_read_packet(), asf_deinterleave(), asf_parse_packet(), asf_read_header(), asf_read_multiple_payload(), asf_read_packet(), asf_read_payload(), asf_read_picture(), asf_read_pts(), asf_read_subpayload(), asf_read_timestamp(), asf_write_packet(), asfrtp_parse_packet(), ass_read_packet(), ast_read_packet(), ast_write_packet(), attachment_value_size(), audio_read_packet(), audio_write_frame(), audio_write_packet(), aura_decode_frame(), av1_metadata_filter(), av1_metadata_update_side_data(), av_append_packet(), av_bitstream_filter_filter(), av_bsf_receive_packet(), av_bsf_send_packet(), av_copy_packet_side_data(), av_dup_packet(), av_free_packet(), av_get_packet(), av_grow_packet(), av_init_packet(), av_interleaved_write_frame(), av_new_packet(), av_packet_add_side_data(), av_packet_alloc(), av_packet_free(), av_packet_free_side_data(), av_packet_from_data(), av_packet_get_side_data(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_merge_side_data(), av_packet_new_side_data(), av_packet_rescale_ts(), av_packet_shrink_side_data(), av_packet_split_side_data(), av_packet_unref(), av_pkt_dump2(), av_pkt_dump_log2(), av_read_frame(), av_shrink_packet(), av_write_frame(), av_write_trailer(), avf_read_packet(), avformat_find_stream_info(), avi_read_packet(), avi_write_packet(), avi_write_packet_internal(), avisynth_read_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpacket_queue_flush(), avpacket_queue_get(), avpacket_queue_put(), avpriv_dv_get_packet(), avpriv_dv_produce_packet(), avpriv_mpegts_parse_packet(), avs_read_audio_packet(), avs_read_packet(), avs_read_video_packet(), avui_encode_frame(), bfi_read_packet(), bmp_encode_frame(), bmv_read_packet(), caca_write_packet(), caf_write_packet(), cdata_read_packet(), cdxl_decode_frame(), cdxl_read_packet(), cenc_filter(), check_bitstream(), check_hevc_startcode(), check_init_output_file(), check_packet(), check_pkt(), check_sync_pes(), chomp_filter(), cin_read_packet(), cine_read_packet(), cinepak_encode_frame(), codec2_read_packet(), compat_decode(), compute_crc_of_packets(), compute_pkt_fields(), concat_read_packet(), convert_sub_to_old_ass_form(), copy_cvpixelbuffer(), copy_packet_data(), crc_write_packet(), crystalhd_receive_frame(), cuvid_output_frame(), dash_check_bitstream(), dash_parse_prft(), dash_read_packet(), dash_write_packet(), daud_packet(), daud_write_packet(), dc1394_read_packet(), dca_core_filter(), dcstr_read_packet(), dec_enc(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_0(), decode_audio(), decode_extradata_ps(), decode_frame(), decode_packet(), decode_simple_internal(), decode_video(), decoder_decode_frame(), demux_audio(), demux_video(), dfa_read_packet(), dhav_read_packet(), dirac_decode_frame(), dnxhd_encode_picture(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), drain_packet(), dsf_read_packet(), dshow_read_packet(), dss_723_1_read_packet(), dss_read_packet(), dss_sp_read_packet(), dv_handle_packet(), dv_read_packet(), dv_write_packet(), dvvideo_encode_frame(), dxa_read_packet(), ea_read_packet(), eac3_core_filter(), encode(), encode_apng(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_png(), estimate_timings_from_pts(), extend_af(), extract_extradata(), extract_extradata_av1(), extract_extradata_filter(), extract_extradata_h2645(), extract_extradata_mpeg12(), extract_extradata_mpeg4(), extract_extradata_vc1(), extract_packet_props(), failing_write_packet(), fbdev_read_packet(), fbdev_write_packet(), ff_add_param_change(), ff_av1_packet_split(), ff_av1_packet_uninit(), ff_bsf_get_packet(), ff_bsf_get_packet_ref(), ff_cbs_read_packet(), ff_cbs_write_packet(), ff_check_h264_startcode(), ff_compute_frame_duration(), ff_decklink_read_packet(), ff_decklink_write_packet(), ff_decode_frame_props(), ff_decode_get_packet(), ff_frame_thread_encoder_free(), ff_get_packet_palette(), ff_h263_handle_packet(), ff_h2645_packet_split(), ff_h2645_packet_uninit(), ff_h264_handle_aggregated_packet(), ff_h264_handle_frag_packet(), ff_id3v2_write_apic(), ff_img_read_packet(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_interleaved_peek(), ff_ivi_decode_frame(), ff_load_image(), ff_mediacodec_dec_send(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_nvenc_encode_frame(), ff_nvenc_receive_packet(), ff_opus_parse_packet(), ff_packet_list_get(), ff_packet_list_put(), ff_pcm_read_packet(), ff_qsv_enc_close(), ff_qsv_encode(), ff_qsv_process_data(), ff_raw_read_partial_packet(), ff_raw_write_packet(), ff_rdt_parse_packet(), ff_read_packet(), ff_reshuffle_raw_rgb(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rtmp_packet_create(), ff_rtmp_packet_destroy(), ff_rtmp_packet_write(), ff_rtp_finalize_packet(), ff_rtp_parse_packet(), ff_side_data_set_encoder_stats(), ff_side_data_set_prft(), ff_spdif_read_packet(), ff_subtitles_queue_read_packet(), ff_thread_video_encode_frame(), ff_v4l2_buffer_avpkt_to_buf(), ff_v4l2_buffer_buf_to_avpkt(), ff_v4l2_context_dequeue_packet(), ff_v4l2_context_enqueue_packet(), ff_vaapi_encode_receive_packet(), ff_voc_get_packet(), ff_write_chained(), ffat_create_decoder(), ffmmal_decode(), ffmpeg_cleanup(), fifo_basic_test(), fifo_overflow_drop_test(), fifo_thread_attempt_recovery(), fifo_thread_process_recovery_failure(), fifo_thread_write_packet(), fifo_write_packet(), film_read_packet(), film_write_packet(), film_write_packet_to_header(), filter(), filter_frame(), filter_packet(), filter_units_filter(), finalize_packet(), find_best_header_idx(), find_missing_packets(), find_tracked_method(), find_video_stream_info(), fits_encode_frame(), fits_read_packet(), fits_write_packet(), flac_finish_header(), flac_queue_flush(), flac_read_timestamp(), flac_write_audio_packet(), flac_write_packet(), flac_write_picture(), flashsv2_encode_frame(), flashsv_encode_frame(), flush_encoders(), flv_check_bitstream(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), free_pkt_fifo(), frm_read_packet(), fsb_read_packet(), g723_1_read_packet(), g726_read_packet(), g729_read_packet(), gdigrab_read_packet(), gdv_read_packet(), gen_buffer_time(), gen_bytes_read(), gen_check_bw(), gen_connect(), gen_create_stream(), gen_delete_stream(), gen_fcpublish_stream(), gen_fcsubscribe_stream(), gen_fcunpublish_stream(), gen_get_stream_length(), gen_pause(), gen_play(), gen_pong(), gen_publish(), gen_release_stream(), gen_seek(), gen_swf_verification(), gen_window_ack_size(), genh_read_packet(), get_input_packet(), get_metadata(), get_needed_flags(), get_subtitle_pkt(), get_ts_payload_start(), gif_encode_frame(), gif_read_packet(), gif_write_packet(), grab_read_packet(), gsm_read_packet(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_packet(), gxf_write_media_preamble(), gxf_write_packet(), h261_handle_packet(), h263_handle_packet(), h264_handle_packet(), h264_handle_packet_fu_a(), h264_metadata_filter(), h264_metadata_update_side_data(), h264_redundant_pps_filter(), h265_metadata_filter(), h265_metadata_update_side_data(), handle_chunk_size(), handle_id3(), handle_invoke(), handle_invoke_error(), handle_invoke_result(), handle_invoke_status(), handle_metadata(), handle_notify(), handle_set_peer_bw(), handle_user_control(), handle_window_ack_size(), hap_encode(), hapqa_extract(), hca_read_packet(), hcom_decode(), hds_write_packet(), hevc_decode_nal_units(), hevc_handle_packet(), hls_read_packet(), hls_write_packet(), hnm_read_packet(), ico_write_packet(), idcin_read_packet(), iec61883_parse_queue_dv(), iec61883_parse_queue_hdv(), iec61883_read_packet(), iff_read_packet(), ifv_read_packet(), ilbc_read_packet(), image_available(), ingenient_read_packet(), interleave_compare_dts(), interleaved_write_packet(), ipmovie_read_header(), ipmovie_read_packet(), is_animated_webp_packet(), ism_write_packet(), iss_read_packet(), ivf_write_packet(), ivr_read_packet(), jacosub_read_packet(), jpeg_parse_packet(), kmsgrab_read_packet(), latm_check_bitstream(), latm_parse_packet(), latm_write_packet(), lavfi_read_packet(), libaribb24_decode(), libcelt_dec_decode(), libcodec2_decode(), libdav1d_receive_frame(), libopenjpeg_encode_frame(), libopus_decode(), librav1e_receive_packet(), librsvg_decode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), LLVMFuzzerTestOneInput(), lmlm4_read_packet(), load_ipmovie_packet(), log_packet(), lrc_read_packet(), lrc_write_packet(), lvf_read_packet(), lxf_read_packet(), mace_decode_frame(), magy_encode_frame(), main(), microdvd_read_packet(), microdvd_write_packet(), mkv_check_bitstream(), mkv_check_new_extra_data(), mkv_write_block(), mkv_write_flush_packet(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmap_read_frame(), mmf_read_packet(), modplug_read_packet(), mov2textsub(), mov_change_extradata(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_flush_fragment(), mov_parse_mpeg2_frame(), mov_parse_truehd_frame(), mov_parse_vc1_frame(), mov_read_chapters(), mov_read_covr(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), movie_push_frame(), mp3_queue_flush(), mp3_read_packet(), mp3_write_audio_packet(), mp3_write_packet(), mp3_xing_add_frame(), mpa_robust_parse_packet(), mpc8_read_packet(), mpc_read_packet(), mpc_read_seek(), mpeg2_metadata_filter(), mpeg4_unpack_bframes_filter(), mpeg_mux_deinit(), mpeg_mux_write_packet(), mpeg_parse_packet(), mpegps_read_packet(), mpegts_check_bitstream(), mpegts_get_dts(), mpegts_handle_packet(), mpegts_raw_read_packet(), mpegts_read_packet(), mpegts_write_packet(), mpegts_write_packet_internal(), mpjpeg_read_packet(), mpjpeg_write_packet(), mpl2_read_packet(), mpsub_read_packet(), msf_read_packet(), msnwc_tcp_read_packet(), mtaf_read_packet(), mtv_read_packet(), musx_read_packet(), mux_frames(), mv_read_packet(), mxf_compare_timestamps(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_get_eia608_packet(), mxf_interleave(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_h264_frame(), mxf_parse_mpeg2_frame(), mxf_parse_prores_frame(), mxf_read_packet(), mxf_set_audio_pts(), mxf_set_pts(), mxf_write_d10_audio_packet(), mxf_write_opatom_packet(), mxf_write_packet(), mxg_read_packet(), nc_read_packet(), new_data_packet(), new_pes_packet(), noise(), nsv_read_chunk(), nsv_read_packet(), nut_read_packet(), nut_write_packet(), nuv_packet(), nvenc_set_timestamp(), ogg_read_packet(), ogg_write_packet(), ogg_write_packet_internal(), oma_read_packet(), omx_encode_frame(), opengl_get_plane_pointer(), opengl_write_packet(), opus_decode_packet(), opus_get_packet_samples(), output_packet(), packet_after_outpoint(), packet_queue_flush(), packet_queue_get(), packet_queue_put(), packet_queue_put_nullpacket(), packet_queue_put_private(), paf_audio_decode(), paf_video_decode(), pam_encode_frame(), parse_file(), parse_packet(), pcx_encode_frame(), pjs_read_packet(), pkt_dump_internal(), pmp_packet(), pnm_encode_frame(), pp_bnk_read_packet(), prepare_input_packet(), prepare_packet(), probe_codec(), process_callback(), process_frame(), process_input(), process_input_packet(), process_ipmovie_chunk(), process_output_surface(), prores_encode_frame(), prores_metadata(), pulse_read_packet(), pulse_write_frame(), pulse_write_packet(), pva_read_packet(), qcelp_parse_packet(), qcp_read_packet(), qdm2_parse_packet(), qdm2_restore_block(), qsv_clear_buffers(), qsv_enc_frame(), qt_rtp_parse_packet(), qtrle_encode_frame(), queue_frames(), r3d_read_packet(), r3d_read_reda(), r3d_read_redv(), raw_encode(), raw_read_packet(), rawvideo_read_packet(), rdt_parse_packet(), read_connect(), read_dst_frame(), read_frame(), read_frame_internal(), read_gab2_sub(), read_interval_packets(), read_number_result(), read_packet(), read_packet_gme(), read_packet_openmpt(), read_packet_vs(), read_sm_data(), read_thread(), realtext_read_packet(), rechunk_filter(), redspark_read_packet(), remove_extradata(), report_new_stream(), reset_packet(), reset_packet_state(), return_stored_frame(), rfc4175_finalize_packet(), rfc4175_handle_packet(), rkmpp_receive_frame(), rl2_read_packet(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_read_packet(), rm_write_packet(), roq_encode_frame(), roq_read_packet(), rpl_read_packet(), rsd_read_packet(), rtmp_parse_result(), rtmp_send_packet(), rtp_mpegts_write_packet(), rtp_parse_one_packet(), rtp_parse_packet_internal(), rtp_parse_queued_packet(), rtp_write_packet(), rtsp_read_packet(), rtsp_write_packet(), s337m_read_packet(), sami_read_packet(), sap_fetch_packet(), sap_write_packet(), scc_read_packet(), scc_write_packet(), sdl2_write_packet(), sdr2_read_packet(), sds_read_packet(), seek_frame_generic(), seg_check_bitstream(), seg_write_packet(), send_invoke_response(), send_packet(), seq_read_packet(), ser_read_packet(), set_af_flag(), show_packet(), siff_read_packet(), signal_init_ts(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smush_read_packet(), sol_read_packet(), spdif_header_aac(), spdif_header_ac3(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_mpeg(), spdif_header_truehd(), spdif_write_packet(), srt_read_packet(), srt_write_packet(), stl_read_packet(), store_packet(), storeframe(), str_read_packet(), subviewer1_read_packet(), subviewer_read_packet(), sup_read_packet(), sup_write_packet(), supply_new_packets(), svag_read_packet(), svq1_encode_frame(), svq3_parse_packet(), swf_read_packet(), swf_write_packet(), tak_decode_frame(), targa_encode_frame(), tee_write_packet(), teletext_decode_frame(), thp_read_packet(), threedostr_read_packet(), tmv_read_packet(), trace_headers(), transcode_subtitles(), truehd_core_filter(), try_decode_frame(), try_decode_video_frame(), tta_queue_flush(), tta_read_packet(), tta_write_packet(), txd_read_packet(), ty_read_packet(), update_initial_timestamps(), update_stream_extradata(), update_wrap_reference(), utvideo_encode_frame(), v210_read_packet(), v308_encode_frame(), v408_encode_frame(), v410_encode_frame(), v4l2_read_packet(), vaapi_encode_output(), vag_read_packet(), vc1t_read_packet(), vc1test_write_packet(), vc2hq_handle_frame_fragment(), vc2hq_handle_packet(), vc2hq_handle_sequence_header(), vc2hq_mark_end_of_sequence(), vfw_read_packet(), vid_read_packet(), video_decode(), video_decode_example(), decklink_input_callback::VideoInputFrameArrived(), viv_read_packet(), vivo_read_packet(), vmd_read_packet(), voc_read_packet(), voc_write_packet(), vp8_handle_packet(), vp8_lossy_decode_frame(), vp9_decode_frame(), vp9_handle_packet(), vp9_metadata_filter(), vp9_superframe_filter(), vpk_read_packet(), vplayer_read_packet(), vpx_encode(), vqf_read_packet(), vtenc_cm_to_avpacket(), vtenc_frame(), wavpack_encode_frame(), wc3_read_packet(), webm_chunk_write_packet(), webp_write_packet(), webvtt_read_packet(), webvtt_write_packet(), worker(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_frame(), write_muxed_file(), write_packet(), write_packet_common(), write_packet_pipe(), write_packets_common(), write_packets_from_bsfs(), write_sm_data(), write_status(), write_timestamp(), write_uncoded_frame_internal(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), wv_write_packet(), X264_frame(), xa_read_packet(), xavs2_encode_frame(), XAVS_frame(), xbm_encode_frame(), xcbgrab_frame(), xcbgrab_read_packet(), xface_encode_frame(), xiph_handle_packet(), xmv_fetch_audio_packet(), xmv_fetch_video_packet(), xmv_read_packet(), xv_write_packet(), xvag_read_packet(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_encode_frame(), xwma_read_packet(), y41p_encode_frame(), yop_read_packet(), yuv4_encode_frame(), yuv4_read_packet(), and yuv4_write_packet().

◆ video_frame_count

int video_frame_count = 0
static
Examples
demuxing_decoding.c.

Definition at line 55 of file demuxing_decoding.c.

Referenced by output_video_frame().

◆ audio_frame_count

int audio_frame_count = 0
static
Examples
demuxing_decoding.c.

Definition at line 56 of file demuxing_decoding.c.

Referenced by fourxm_read_packet(), and output_audio_frame().