#include <stdio.h>#include "libavformat/avformat.h"#include "libavformat/avio.h"#include "libavcodec/avcodec.h"#include "libavutil/audio_fifo.h"#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavutil/channel_layout.h"#include "libavutil/frame.h"#include "libavutil/opt.h"#include "libswresample/swresample.h"Go to the source code of this file.
Definition at line 47 of file transcode_aac.c.
Definition at line 49 of file transcode_aac.c.
Open an input file and the required decoder.
Definition at line 58 of file transcode_aac.c.
Referenced by main().
Open an output file and the required encoder.
Also set some basic encoder parameters. Some of these parameters are based on the input file's parameters.
Definition at line 145 of file transcode_aac.c.
Referenced by main().
Initialize one data packet for reading or writing.
Definition at line 253 of file transcode_aac.c.
Referenced by decode_audio_frame(), and encode_audio_frame().
Initialize one audio frame for reading from the input file.
Definition at line 267 of file transcode_aac.c.
Referenced by read_decode_convert_and_store().
Initialize the audio resampler based on the input and output codec settings.
If the input and output sample formats differ, a conversion is required libswresample takes care of this, but requires initialization.
Definition at line 285 of file transcode_aac.c.
Referenced by main().
Initialize a FIFO buffer for the audio samples to be encoded.
Definition at line 329 of file transcode_aac.c.
Referenced by main().
Write the header of the output file container.
Definition at line 345 of file transcode_aac.c.
Referenced by main().
Decode one audio frame from the input file.
Definition at line 369 of file transcode_aac.c.
Referenced by read_decode_convert_and_store().
Initialize a temporary storage for the specified number of audio samples.
The conversion requires temporary storage due to the different format. The number of audio samples to be allocated is specified in frame_size.
Definition at line 443 of file transcode_aac.c.
Referenced by read_decode_convert_and_store().
Convert the input audio samples into the output sample format.
The conversion happens on a per-frame basis, the size of which is specified by frame_size.
Definition at line 478 of file transcode_aac.c.
Referenced by read_decode_convert_and_store().
Add converted input audio samples to the FIFO buffer for later processing.
Definition at line 504 of file transcode_aac.c.
Referenced by read_decode_convert_and_store().
Read one audio frame from the input file, decode, convert and store it in the FIFO buffer.
Definition at line 542 of file transcode_aac.c.
Referenced by main().
Initialize one input frame for writing to the output file.
The frame will be exactly frame_size samples large.
Definition at line 608 of file transcode_aac.c.
Referenced by load_encode_and_write().
Encode one frame worth of audio to the output file.
Definition at line 654 of file transcode_aac.c.
Referenced by load_encode_and_write(), and main().
Load one audio frame from the FIFO buffer, encode and write it to the output file.
Definition at line 726 of file transcode_aac.c.
Referenced by main().
Write the trailer of the output file container.
Definition at line 766 of file transcode_aac.c.
Referenced by main().
Definition at line 777 of file transcode_aac.c.
Definition at line 643 of file transcode_aac.c.
Referenced by aac_encode_flush(), aal_read_packet(), activate(), add_crc_to_array(), ape_read_header(), asf_read_marker(), asf_read_pts(), asf_read_seek(), asf_write_packet(), av_buffersrc_close(), av_parser_parse2(), build_frame_code(), compare_crc_in_array(), config_input(), consume_from_fifos(), create_frame(), curves_init(), dat_read_packet(), decode_frame(), decode_frame_header(), decode_vop_header(), dhav_read_seek(), dirac_combine_frame(), dirac_gptopts(), display_end_segment(), dnn_classify_activate(), dnn_classify_flush_frame(), dnn_detect_activate(), dnn_detect_flush_frame(), do_subtitle_out(), drain_input_pts(), draw_mandelbrot(), draw_spatial(), enc_stats_write(), encode_audio_frame(), eval_pts(), ff_af_queue_remove(), ff_amf_receive_packet(), ff_avfilter_link_set_in_status(), ff_decklink_packet_queue_peekpts(), ff_inlink_evaluate_timeline_at_frame(), ff_mediacodec_dec_send(), ff_outlink_set_status(), ff_print_pts(), ff_subtitles_queue_seek(), ff_write_chained(), filter(), filter_frame(), find_next_delta_ts(), flac_read_timestamp(), flush(), flush_frame(), flush_packet(), flv_read_packet(), frame_list_add_frame(), framesync_advance(), framesync_inject_frame(), framesync_inject_status(), framesync_pts_extrapolate(), get_concatdec_select(), get_frame_internal(), get_pkt_pts(), get_pts(), get_vcd_padding_size(), guess_correct_pts(), handle_input(), handle_klv(), handle_metadata(), interpolate(), ivr_read_packet(), libplacebo_activate(), link_set_out_status(), load_input_picture(), mediacodec_send(), mf_sample_get_pts(), microdvd_read_header(), mkv_add_cuepoint(), mkv_assemble_cues(), mov_flush_fragment(), mov_read_packet(), mov_read_sidx(), mov_read_trun(), mpeg_mux_write_packet(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_write_packet_internal(), mpegts_write_pes(), mpsub_read_header(), nut_read_timestamp(), ogg_calc_pts(), ogg_get_length(), ogg_gptopts(), ogg_read_packet(), ogg_read_timestamp(), ogg_write_packet_internal(), output_frame(), output_single_frame(), parse_forced_key_frames(), parse_presentation_segment(), parse_psfile(), plot_freqs(), pp_bnk_seek(), prepare_packet(), print_report(), push_frame(), queue_picture(), read_frame_internal(), read_interval_packets(), read_packet(), read_part_of_packet(), read_seek(), read_trun_duration(), readrate_sleep(), request_frame(), rkmpp_write_data(), rm_read_index(), rm_read_seek(), rv34_parse(), scan_file(), scc_write_packet(), scd_seek(), send_eof(), send_silence(), set_clock(), set_clock_at(), sub2video_heartbeat(), sub2video_push_ref(), sub2video_update(), subtitle_thread(), sup_read_packet(), sup_write_packet(), swr_next_pts(), theora_packet(), try_push_frame(), update_initial_timestamps(), update_link_current_pts(), update_pts(), update_time(), update_video_pts(), v4l2_set_pts(), vc1t_read_packet(), video_thread(), vp8_gptopts(), vtenc_cm_to_avpacket(), write_pts(), xcbgrab_read_packet(), xfade_opencl_activate(), and yuv4_read_seek().