FFmpeg
|
multimedia converter based on the FFmpeg libraries More...
#include "config.h"
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
#include "libavutil/opt.h"
#include "libavutil/channel_layout.h"
#include "libavutil/parseutils.h"
#include "libavutil/samplefmt.h"
#include "libavutil/colorspace.h"
#include "libavutil/fifo.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/mathematics.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/libm.h"
#include "libavutil/imgutils.h"
#include "libavutil/timestamp.h"
#include "libavutil/bprint.h"
#include "libavutil/time.h"
#include "libavformat/os_support.h"
#include "libavformat/ffm.h"
#include "libavfilter/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersrc.h"
#include "libavfilter/buffersink.h"
#include <sys/time.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <pthread.h>
#include "ffmpeg.h"
#include "cmdutils.h"
#include "libavutil/avassert.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" |
Detailed Description
multimedia converter based on the FFmpeg libraries
Definition in file ffmpeg.c.
Macro Definition Documentation
#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" |
Definition at line 143 of file ffmpeg.c.
Referenced by transcode_init().
Function Documentation
Definition at line 519 of file ffmpeg.c.
Referenced by init_input_stream(), and transcode_init().
void assert_avoptions | ( | AVDictionary * | m | ) |
Definition at line 510 of file ffmpeg.c.
Referenced by init_input_stream(), open_input_file(), and transcode_init().
|
static |
Definition at line 2616 of file ffmpeg.c.
Referenced by transcode().
|
static |
Definition at line 1356 of file ffmpeg.c.
Referenced by output_packet(), and transcode_subtitles().
|
static |
Definition at line 643 of file ffmpeg.c.
Referenced by do_audio_out(), do_subtitle_out(), and do_video_out().
|
static |
Select the output stream to process.
- Returns
- selected output stream, or NULL if none available
Definition at line 2598 of file ffmpeg.c.
Referenced by transcode_step().
|
static |
Definition at line 632 of file ffmpeg.c.
Referenced by check_recording_time(), do_streamcopy(), need_output(), process_input(), and transcode_from_filter().
Definition at line 1982 of file ffmpeg.c.
Referenced by parse_forced_key_frames().
|
static |
Definition at line 1484 of file ffmpeg.c.
Referenced by output_packet().
|
static |
Definition at line 1624 of file ffmpeg.c.
Referenced by output_packet().
|
static |
Definition at line 656 of file ffmpeg.c.
Referenced by reap_filters().
|
static |
Definition at line 1370 of file ffmpeg.c.
Referenced by output_packet().
|
static |
Definition at line 704 of file ffmpeg.c.
Referenced by transcode_subtitles().
|
static |
Definition at line 775 of file ffmpeg.c.
Referenced by reap_filters().
|
static |
Definition at line 977 of file ffmpeg.c.
Referenced by do_video_out(), and flush_encoders().
Definition at line 1275 of file ffmpeg.c.
Referenced by transcode().
Definition at line 2740 of file ffmpeg.c.
Referenced by transcode().
Definition at line 2819 of file ffmpeg.c.
Referenced by process_input().
Definition at line 2797 of file ffmpeg.c.
Referenced by get_input_packet().
|
static |
Definition at line 1975 of file ffmpeg.c.
Referenced by transcode_init().
|
static |
Definition at line 3285 of file ffmpeg.c.
Referenced by exit_program().
|
static |
Definition at line 3267 of file ffmpeg.c.
Referenced by main(), and update_benchmark().
|
static |
Definition at line 2828 of file ffmpeg.c.
Referenced by transcode_step().
int guess_input_channel_layout | ( | InputStream * | ist | ) |
Definition at line 1464 of file ffmpeg.c.
Referenced by add_input_streams(), and decode_audio().
|
static |
Definition at line 1941 of file ffmpeg.c.
Referenced by transcode_init().
|
static |
Definition at line 2775 of file ffmpeg.c.
Referenced by transcode().
Definition at line 2710 of file ffmpeg.c.
Referenced by init_input_threads().
|
static |
Definition at line 2568 of file ffmpeg.c.
Referenced by transcode().
|
static |
Definition at line 1784 of file ffmpeg.c.
Referenced by process_input(), and transcode().
|
static |
Definition at line 1988 of file ffmpeg.c.
Referenced by transcode_init().
|
static |
Definition at line 1098 of file ffmpeg.c.
Referenced by transcode().
Definition at line 1924 of file ffmpeg.c.
Referenced by transcode_init().
|
static |
Definition at line 2853 of file ffmpeg.c.
Referenced by transcode_step().
|
static |
Definition at line 972 of file ffmpeg.c.
Referenced by do_video_stats(), main(), print_report(), and run_psnr().
|
static |
Definition at line 1454 of file ffmpeg.c.
Referenced by decode_audio(), decode_video(), output_packet(), and transcode_subtitles().
|
static |
Definition at line 362 of file ffmpeg.c.
Referenced by check_keyboard_interaction().
|
static |
Get and encode new output from any of the filtergraphs, without causing activity.
- Returns
- 0 for success, <0 for severe errors
Definition at line 1019 of file ffmpeg.c.
Referenced by transcode_from_filter(), and transcode_step().
Definition at line 2051 of file ffmpeg.c.
Referenced by process_input().
Definition at line 2837 of file ffmpeg.c.
Referenced by process_input(), and transcode_step().
|
static |
Definition at line 315 of file ffmpeg.c.
Referenced by term_init().
|
static |
Definition at line 186 of file ffmpeg.c.
Referenced by sub2video_update().
|
static |
Definition at line 292 of file ffmpeg.c.
Referenced by transcode_subtitles().
|
static |
Definition at line 171 of file ffmpeg.c.
Referenced by sub2video_update().
|
static |
Definition at line 263 of file ffmpeg.c.
Referenced by process_input().
|
static |
Definition at line 215 of file ffmpeg.c.
Referenced by sub2video_heartbeat(), and sub2video_update().
|
static |
Definition at line 228 of file ffmpeg.c.
Referenced by sub2video_heartbeat(), and transcode_subtitles().
Definition at line 302 of file ffmpeg.c.
Referenced by assert_file_overwrite(), sigterm_handler(), term_init(), and transcode().
Definition at line 324 of file ffmpeg.c.
Referenced by assert_file_overwrite(), and main().
|
static |
|
static |
Perform a step of transcoding for the specified filter graph.
- Parameters
-
[in] graph filter graph to consider [out] best_ist input stream where a frame would allow to continue
- Returns
- 0 for success, <0 for error
Definition at line 3059 of file ffmpeg.c.
Referenced by transcode_step().
|
static |
Definition at line 2066 of file ffmpeg.c.
Referenced by transcode().
|
static |
Run a single step of transcoding.
- Returns
- 0 for success, <0 for error
Definition at line 3105 of file ffmpeg.c.
Referenced by transcode().
|
static |
Definition at line 1732 of file ffmpeg.c.
Referenced by output_packet().
|
static |
Definition at line 524 of file ffmpeg.c.
Referenced by decode_audio(), decode_video(), do_audio_out(), do_video_out(), and flush_encoders().
|
static |
Definition at line 541 of file ffmpeg.c.
Referenced by do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), and flush_encoders().
Variable Documentation
|
static |
Definition at line 126 of file ffmpeg.c.
Referenced by bfi_read_packet(), bmv_read_packet(), cdxl_read_packet(), do_audio_out(), do_streamcopy(), flush_encoders(), print_report(), read_packet(), rl2_read_header(), rpl_read_header(), and sdl_audio_callback().
|
static |
Definition at line 133 of file ffmpeg.c.
Referenced by main(), and update_benchmark().
|
static |
Definition at line 131 of file ffmpeg.c.
Referenced by decode_audio(), decode_video(), main(), and transcode_subtitles().
|
static |
Definition at line 128 of file ffmpeg.c.
Referenced by ape_read_packet(), asf_write_header1(), print_report(), and transcode_init().
FilterGraph** filtergraphs |
Definition at line 155 of file ffmpeg.c.
Referenced by configure_complex_filters(), DEF_CHOOSE_FORMAT(), open_output_file(), opt_filter_complex(), and opt_filter_complex_script().
const char* const forced_keyframes_const_names[] |
Definition at line 147 of file ffmpeg.c.
Referenced by configure_input_video_filter(), init_input_filter(), open_input_file(), open_output_file(), opt_map(), opt_map_channel(), opt_target(), and sub2video_prepare().
InputStream** input_streams = NULL |
Definition at line 145 of file ffmpeg.c.
Referenced by add_input_streams(), init_input_filter(), new_audio_stream(), new_output_stream(), open_input_file(), and open_output_file().
const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL } |
Definition at line 422 of file ffmpeg.c.
Referenced by dump_attachment(), get_preset_file_2(), open_input_file(), open_output_file(), opt_progress(), read_ffserver_streams(), transcode_init(), and url_alloc_for_protocol().
int nb_filtergraphs |
Definition at line 156 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), configure_complex_filters(), decode_audio(), decode_video(), DEF_CHOOSE_FORMAT(), exit_program(), open_output_file(), opt_filter_complex(), opt_filter_complex_script(), and transcode_init().
|
static |
Definition at line 130 of file ffmpeg.c.
Referenced by do_video_out(), and print_report().
|
static |
Definition at line 129 of file ffmpeg.c.
Referenced by do_video_out(), and print_report().
int nb_input_files = 0 |
Definition at line 148 of file ffmpeg.c.
Referenced by add_input_streams(), dump_attachment(), exit_program(), free_input_threads(), get_input_packet(), init_input_filter(), init_input_threads(), main(), open_input_file(), open_output_file(), opt_map(), opt_map_channel(), opt_target(), reset_eagain(), and transcode_init().
int nb_input_streams = 0 |
Definition at line 146 of file ffmpeg.c.
Referenced by add_input_streams(), check_keyboard_interaction(), exit_program(), init_input_filter(), open_input_file(), open_output_file(), transcode(), and transcode_init().
int nb_output_files = 0 |
Definition at line 153 of file ffmpeg.c.
Referenced by exit_program(), get_ost_filters(), main(), new_output_stream(), open_output_file(), print_sdp(), transcode(), and transcode_init().
int nb_output_streams = 0 |
Definition at line 151 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), choose_output(), exit_program(), flush_encoders(), got_eagain(), need_output(), new_output_stream(), open_output_file(), output_packet(), print_report(), process_input(), reap_filters(), reset_eagain(), transcode(), transcode_init(), and transcode_subtitles().
|
static |
Definition at line 161 of file ffmpeg.c.
Referenced by term_exit(), and term_init().
OutputFile** output_files = NULL |
Definition at line 152 of file ffmpeg.c.
Referenced by open_output_file().
OutputStream** output_streams = NULL |
Definition at line 150 of file ffmpeg.c.
Referenced by new_output_stream(), and open_output_file().
const int program_birth_year = 2000 |
program birth year, defined by the program for show_banner()
const char program_name[] = "ffmpeg" |
program name, defined by the program for show_version().
Definition at line 106 of file ffmpeg.c.
Referenced by main().
AVIOContext* progress_avio = NULL |
Definition at line 134 of file ffmpeg.c.
Referenced by opt_progress().
|
static |
Definition at line 312 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), decode_interrupt_cb(), main(), and sigterm_handler().
|
static |
Definition at line 311 of file ffmpeg.c.
Referenced by exit_program(), sigterm_handler(), and transcode().
|
static |
Definition at line 162 of file ffmpeg.c.
Referenced by term_exit(), and term_init().
|
static |
Definition at line 124 of file ffmpeg.c.
Referenced by check_keyboard_interaction(), main(), and term_init().
|
static |
Definition at line 136 of file ffmpeg.c.
Referenced by do_subtitle_out(), and exit_program().
|
static |
Definition at line 127 of file ffmpeg.c.
Referenced by do_streamcopy(), do_subtitle_out(), and print_report().
|
static |
Definition at line 140 of file ffmpeg.c.
Referenced by free_input_threads(), and input_thread().
|
static |
Definition at line 125 of file ffmpeg.c.
Referenced by cdxl_read_packet(), decode_frame(), do_streamcopy(), do_video_out(), do_video_stats(), flush_encoders(), print_report(), and rpl_read_header().
|
static |
Definition at line 109 of file ffmpeg.c.
Referenced by do_video_stats(), and exit_program().
Generated on Mon Nov 18 2024 06:52:06 for FFmpeg by 1.8.11