#include "config.h"#include <stdatomic.h>#include <stdint.h>#include <stdio.h>#include <signal.h>#include "cmdutils.h"#include "ffmpeg_sched.h"#include "sync_queue.h"#include "libavformat/avformat.h"#include "libavformat/avio.h"#include "libavcodec/avcodec.h"#include "libavcodec/bsf.h"#include "libavfilter/avfilter.h"#include "libavutil/avutil.h"#include "libavutil/bprint.h"#include "libavutil/dict.h"#include "libavutil/eval.h"#include "libavutil/fifo.h"#include "libavutil/hwcontext.h"#include "libavutil/pixfmt.h"#include "libavutil/rational.h"#include "libavutil/thread.h"#include "libavutil/threadmessage.h"#include "libswresample/swresample.h"Go to the source code of this file.
| Enumerator | |
|---|---|
| ENC_STATS_LITERAL | |
| ENC_STATS_FILE_IDX | |
| ENC_STATS_STREAM_IDX | |
| ENC_STATS_FRAME_NUM | |
| ENC_STATS_FRAME_NUM_IN | |
| ENC_STATS_TIMEBASE | |
| ENC_STATS_TIMEBASE_IN | |
| ENC_STATS_PTS | |
| ENC_STATS_PTS_TIME | |
| ENC_STATS_PTS_IN | |
| ENC_STATS_PTS_TIME_IN | |
| ENC_STATS_DTS | |
| ENC_STATS_DTS_TIME | |
| ENC_STATS_SAMPLE_NUM | |
| ENC_STATS_NB_SAMPLES | |
| ENC_STATS_PKT_SIZE | |
| ENC_STATS_BITRATE | |
| ENC_STATS_AVG_BITRATE | |
| ENC_STATS_KEYFRAME | |
Definition at line 202 of file ffmpeg.c.
Referenced by assert_file_overwrite().
Definition at line 132 of file ffmpeg.c.
Referenced by assert_file_overwrite(), ffmpeg_cleanup(), and transcode().
Definition at line 1416 of file ffmpeg_opt.c.
Referenced by main(), and show_help_default().
Definition at line 497 of file ffmpeg.c.
Referenced by ifile_open(), and of_open().
Definition at line 837 of file ffmpeg_opt.c.
Referenced by dump_attachment(), and of_open().
Definition at line 804 of file ffmpeg_opt.c.
Referenced by choose_decoder(), choose_encoder(), and ifile_open().
Definition at line 362 of file ffmpeg_opt.c.
Referenced by new_stream_video(), and opt_vsync().
Definition at line 2322 of file ffmpeg_filter.c.
Referenced by configure_filtergraph(), fg_thread_set_name(), ifilter_bind_ist(), and print_stream_maps().
Definition at line 1248 of file ffmpeg_filter.c.
Referenced by ost_bind_filter().
Definition at line 1491 of file ffmpeg_filter.c.
Get our axiliary frame data attached to the frame, allocating it if needed.
Definition at line 473 of file ffmpeg.c.
Referenced by close_output(), dwt_plane(), encode_frame(), fg_output_step(), generate_raw_frame(), mc(), nvenc_retrieve_frame_data(), nvenc_store_frame_data(), packet_decode(), and send_frame().
Definition at line 479 of file ffmpeg.c.
Referenced by choose_out_timebase().
Definition at line 485 of file ffmpeg.c.
Referenced by encode_frame(), input_packet_process(), and packet_decode().
Definition at line 813 of file ffmpeg_filter.c.
Referenced by fg_create_simple(), and ost_bind_filter().
Create a new filtergraph in the global filtergraph list.
Definition at line 1088 of file ffmpeg_filter.c.
Referenced by fg_create_simple(), and istg_parse_tile_grid().
Definition at line 1016 of file ffmpeg_filter.c.
Referenced by ffmpeg_cleanup(), fg_finalise_bindings(), and ost_free().
Definition at line 3392 of file ffmpeg_filter.c.
Referenced by check_keyboard_interaction().
Definition at line 467 of file ffmpeg_enc.c.
Referenced by encode_frame(), and write_packet().
Definition at line 42 of file ffmpeg_hw.c.
Referenced by hw_device_default_name(), hw_device_init_from_string(), hw_device_setup_for_decode(), and opt_filter_hw_device().
Definition at line 28 of file ffmpeg_hw.c.
Referenced by hw_device_match_by_codec(), hw_device_setup_for_decode(), and hw_device_setup_for_encode().
Definition at line 92 of file ffmpeg_hw.c.
Referenced by opt_init_hw_device().
Definition at line 243 of file ffmpeg_hw.c.
Referenced by hw_device_setup_for_decode().
Definition at line 286 of file ffmpeg_hw.c.
Referenced by ffmpeg_cleanup().
Get a hardware device to be used with this filtergraph.
The returned reference is owned by the callee, the caller must ref it explicitly for long-term use.
Definition at line 298 of file ffmpeg_hw.c.
Referenced by configure_filtergraph(), and fg_create().
Create a standalone decoder.
Definition at line 1680 of file ffmpeg_dec.c.
Definition at line 1653 of file ffmpeg_dec.c.
Referenced by ist_use().
Definition at line 118 of file ffmpeg_dec.c.
Referenced by dec_alloc(), dec_create(), dec_init(), ffmpeg_cleanup(), and ist_free().
Definition at line 1754 of file ffmpeg_dec.c.
Referenced by ifilter_bind_dec().
Definition at line 1026 of file ffmpeg_dec.c.
Referenced by dec_filter_add(), and ist_use().
Definition at line 99 of file ffmpeg_enc.c.
Referenced by ost_add().
Definition at line 71 of file ffmpeg_enc.c.
Referenced by enc_alloc(), and ost_free().
The video color properties should always be in sync with the user- requested values, since we forward them to the filter graph.
Definition at line 184 of file ffmpeg_enc.c.
Referenced by encoder_thread(), and ost_add().
Definition at line 939 of file ffmpeg_enc.c.
Referenced by dec_create().
Definition at line 611 of file ffmpeg_mux.c.
Referenced by enc_open(), and of_open().
Definition at line 757 of file ffmpeg_mux.c.
Referenced by transcode().
Definition at line 3321 of file ffmpeg_mux_init.c.
Definition at line 861 of file ffmpeg_mux.c.
Referenced by ffmpeg_cleanup().
Definition at line 197 of file ffmpeg_mux_init.c.
Referenced by ffmpeg_cleanup().
Definition at line 888 of file ffmpeg_mux.c.
Referenced by mux_final_stats(), and print_report().
Definition at line 1815 of file ffmpeg_demux.c.
Definition at line 906 of file ffmpeg_demux.c.
Referenced by ffmpeg_cleanup().
Definition at line 932 of file ffmpeg_demux.c.
Referenced by ist_filter_add(), and ost_add().
Definition at line 1042 of file ffmpeg_demux.c.
Referenced by ifilter_bind_ist().
Find an unused input stream of given type.
Definition at line 173 of file ffmpeg_demux.c.
Referenced by fg_complex_bind_input().
Definition at line 383 of file ffmpeg.c.
Referenced by ist_find_unused(), map_auto_data(), map_auto_subtitle(), and print_stream_maps().
Definition at line 367 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), print_report(), and print_stream_maps().
Definition at line 547 of file ffmpeg.c.
Referenced by encode_frame(), and packet_decode().
Definition at line 168 of file ffmpeg_opt.c.
Referenced by ifile_open(), map_auto_subtitle(), and opt_preset().
Referenced by add_display_matrix_to_stream(), ist_add(), new_stream_audio(), new_stream_video(), and ost_add().
Referenced by ost_add().
Referenced by add_display_matrix_to_stream(), ist_add(), and ost_add().
Referenced by istg_parse_tile_grid().
Referenced by istg_parse_tile_grid().
Definition at line 309 of file ffmpeg_opt.c.
Referenced by fg_complex_bind_input(), and opt_map().
Definition at line 407 of file ffmpeg_mux.c.
Referenced by of_open().
Definition at line 857 of file ffmpeg_enc.c.
Referenced by ost_add().
Definition at line 105 of file ffmpeg.c.
Referenced by apply_sync_offsets(), assert_file_overwrite(), copy_meta(), correct_input_start_times(), demux_alloc(), ffmpeg_cleanup(), fg_complex_bind_input(), ist_iter(), map_auto_audio(), map_auto_video(), map_manual(), of_map_group(), opt_map(), and opt_target().
Definition at line 106 of file ffmpeg.c.
Referenced by apply_sync_offsets(), assert_file_overwrite(), copy_meta(), correct_input_start_times(), demux_alloc(), ffmpeg_cleanup(), fg_complex_bind_input(), ist_iter(), main(), map_auto_audio(), map_auto_video(), of_map_group(), opt_map(), and opt_target().
Definition at line 108 of file ffmpeg.c.
Referenced by dec_create(), ffmpeg_cleanup(), mux_alloc(), new_stream_video(), ost_iter(), print_report(), print_sdp(), and transcode().
Definition at line 109 of file ffmpeg.c.
Referenced by create_streams(), dec_create(), ffmpeg_cleanup(), main(), mux_alloc(), ost_iter(), print_report(), print_sdp(), and transcode().
Definition at line 111 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), create_streams(), ffmpeg_cleanup(), fg_complex_bind_input(), fg_create(), fg_finalise_bindings(), istg_parse_tile_grid(), and map_manual().
Definition at line 112 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), create_streams(), ffmpeg_cleanup(), fg_complex_bind_input(), fg_create(), fg_finalise_bindings(), istg_parse_tile_grid(), map_manual(), and print_stream_maps().
Definition at line 114 of file ffmpeg.c.
Referenced by dec_create(), ffmpeg_cleanup(), and fg_complex_bind_input().
Definition at line 115 of file ffmpeg.c.
Referenced by dec_create(), ffmpeg_cleanup(), and fg_complex_bind_input().
Definition at line 54 of file ffmpeg_opt.c.
Referenced by encode_frame(), ffmpeg_cleanup(), opt_vstats_file(), and update_video_stats().
Definition at line 56 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect().
Definition at line 57 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect(), and video_sync_process().
Definition at line 60 of file ffmpeg_opt.c.
Referenced by new_stream_video(), opt_vsync(), and parse_and_set_vsync().
Definition at line 62 of file ffmpeg_opt.c.
Referenced by video_sync_process().
Definition at line 63 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), and main().
Definition at line 64 of file ffmpeg_opt.c.
Referenced by update_benchmark().
Definition at line 65 of file ffmpeg_opt.c.
Referenced by input_thread().
Definition at line 66 of file ffmpeg_opt.c.
Referenced by input_thread().
Definition at line 67 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), correct_input_start_times(), ifile_open(), input_packet_process(), ist_filter_add(), new_stream_video(), print_report(), readrate_sleep(), streamcopy_init(), and ts_discontinuity_detect().
Definition at line 68 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), correct_input_start_times(), ifile_open(), input_packet_process(), ist_filter_add(), and readrate_sleep().
Definition at line 69 of file ffmpeg_opt.c.
Definition at line 70 of file ffmpeg_opt.c.
Referenced by adjust_frame_pts_to_encoder_tb(), encode_frame(), fg_output_step(), input_packet_process(), mux_fixup_ts(), and video_frame_process().
Definition at line 71 of file ffmpeg_opt.c.
Referenced by do_subtitle_out(), input_thread(), multiview_setup(), mux_fixup_ts(), mux_packet_filter(), packet_decode(), and transcode_subtitles().
Definition at line 72 of file ffmpeg_opt.c.
Referenced by check_written(), and opt_abort_on().
Definition at line 73 of file ffmpeg_opt.c.
Referenced by print_report().
Definition at line 84 of file ffmpeg_opt.c.
Referenced by opt_stats_period(), print_report(), and transcode().
Definition at line 74 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite(), ifile_open(), term_init(), and transcode().
Definition at line 103 of file ffmpeg.c.
Referenced by print_report().
Definition at line 75 of file ffmpeg_opt.c.
Referenced by decoder_thread().
Definition at line 76 of file ffmpeg_opt.c.
Referenced by configure_filtergraph(), ffmpeg_cleanup(), and opt_filter_threads().
Definition at line 77 of file ffmpeg_opt.c.
Referenced by configure_filtergraph().
Definition at line 78 of file ffmpeg_opt.c.
Referenced by configure_filtergraph().
Definition at line 79 of file ffmpeg_opt.c.
Referenced by update_video_stats().
Definition at line 80 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), filter_thread(), and print_filtergraphs_priv().
Definition at line 81 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), filter_thread(), and print_filtergraphs_priv().
Definition at line 82 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), and init_graphprint().
Definition at line 83 of file ffmpeg_opt.c.
Referenced by fg_create().
Definition at line 308 of file ffmpeg.c.
Referenced by avio_open2(), dump_attachment(), enc_stats_get_file(), ff_network_sleep_interruptible(), ff_network_wait_fd_timeout(), ffio_open_whitelist(), ffurl_alloc(), ffurl_open_whitelist(), get_preset_file_2(), ifile_open(), libsrt_network_wait_fd_timeout(), of_add_attachments(), of_open(), print_sdp(), read_binary(), url_alloc_for_protocol(), and zmq_proto_wait_timeout().
Referenced by ff_opus_psy_init(), and pcm_read_header().
Definition at line 52 of file ffmpeg_opt.c.
Referenced by hw_device_for_filter(), and opt_filter_hw_device().
Definition at line 100 of file ffmpeg.c.
Referenced by mux_check_init(), and print_report().
Definition at line 89 of file ffmpeg_opt.c.
Referenced by map_manual().
Definition at line 90 of file ffmpeg_opt.c.
Referenced by map_manual().
Definition at line 91 of file ffmpeg_opt.c.
Referenced by choose_decoder(), and find_codec().
Definition at line 89 of file ffmpeg.c.
Referenced by ffmpeg_cleanup(), and update_video_stats().