FFmpeg
|
libavformat demuxing API use example. More...
#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 | decode_packet (int *got_frame, int cached) |
static int | open_codec_context (int *stream_idx, 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 AVFormatContext * | fmt_ctx = NULL |
static AVCodecContext * | video_dec_ctx = NULL |
static AVCodecContext * | audio_dec_ctx |
static AVStream * | video_stream = NULL |
static AVStream * | audio_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_t * | video_dst_data [4] = {NULL} |
static int | video_dst_linesize [4] |
static int | video_dst_bufsize |
static uint8_t ** | audio_dst_data = NULL |
static int | audio_dst_linesize |
static int | audio_dst_bufsize |
static int | video_stream_idx = -1 |
static int | audio_stream_idx = -1 |
static AVFrame * | frame = NULL |
static AVPacket | pkt |
static int | video_frame_count = 0 |
static int | audio_frame_count = 0 |
Detailed Description
libavformat demuxing API use example.
Show how to use the libavformat and libavcodec API to demux and decode audio and video data.
Definition in file demuxing.c.
Function Documentation
|
static |
Definition at line 60 of file demuxing.c.
Referenced by main().
|
static |
Definition at line 163 of file demuxing.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 192 of file demuxing.c.
|
static |
Definition at line 127 of file demuxing.c.
Referenced by main().
Variable Documentation
|
static |
Definition at line 38 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 52 of file demuxing.c.
Referenced by decode_packet().
Definition at line 50 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 44 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 42 of file demuxing.c.
Referenced by main().
|
static |
Definition at line 51 of file demuxing.c.
Referenced by decode_packet().
|
static |
Definition at line 58 of file demuxing.c.
Referenced by decode_packet(), and fourxm_read_packet().
Definition at line 39 of file demuxing.c.
Referenced by main(), and yop_read_header().
|
static |
Definition at line 54 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 37 of file demuxing.c.
Referenced by close_input_file(), main(), open_input_file(), and probe_file().
Definition at line 55 of file demuxing.c.
|
static |
Definition at line 56 of file demuxing.c.
Referenced by add_to_pktbuf(), ape_tag_read_field(), asf_read_header(), asf_read_picture(), asf_read_pts(), ass_get_duration(), audio_encode_example(), av_dup_packet(), av_packet_merge_side_data(), av_write_trailer(), avcodec_encode_audio(), avcodec_encode_video(), avformat_find_stream_info(), dc1394_read_common(), do_audio_out(), do_subtitle_out(), do_video_out(), dv_write_pack(), encode_frame(), extract_mpeg4_header(), ff_interleave_add_packet(), ff_load_image(), ff_mpegts_parse_packet(), ff_packet_free_side_data(), ff_read_packet(), ff_rtsp_open_transport_ctx(), ff_write_chained(), find_missing_packets(), flush_encoders(), flush_packet(), free_input_threads(), free_pkt_fifo(), 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_play(), gen_pong(), gen_publish(), gen_release_stream(), gen_server_bw(), gen_swf_verification(), gxf_compare_field_nb(), http_prepare_data(), input_thread(), ipmovie_read_header(), mace_decode_frame(), main(), matroska_decode_buffer(), matroska_parse_frame(), md5_finish(), mkv_write_packet(), mkv_write_srt_blocks(), mmap_init(), mov_create_chapter_track(), mov_create_timecode_track(), mov_read_covr(), movie_push_frame(), mpc_read_seek(), mpegts_get_dts(), mpegts_read_packet(), nsv_read_chunk(), output_packet(), parse_file(), process_callback(), process_input(), query_codec(), queue_frames(), read_connect(), read_packets(), search_hi_lo_keyframes(), seek_frame_generic(), Stagefright_decode_frame(), str_read_packet(), supply_new_packets(), video_encode_example(), webp_decode_frame(), worker(), write_audio_frame(), write_frame(), write_video_frame(), and wv_read_seek().
|
static |
Definition at line 40 of file demuxing.c.
Referenced by main(), and open_codec_context().
|
static |
Definition at line 38 of file demuxing.c.
|
static |
Definition at line 48 of file demuxing.c.
Referenced by decode_packet(), and main().
Definition at line 46 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 43 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 41 of file demuxing.c.
Referenced by main().
|
static |
Definition at line 47 of file demuxing.c.
Referenced by decode_packet(), and main().
|
static |
Definition at line 57 of file demuxing.c.
Referenced by decode_packet().
Definition at line 39 of file demuxing.c.
Referenced by yop_read_header().
|
static |
Definition at line 54 of file demuxing.c.
Referenced by decode_packet(), and main().
Generated on Fri Dec 20 2024 06:56:11 for FFmpeg by 1.8.11