public class avformat extends avformat
Modifier and Type | Field and Description |
---|---|
static int |
AV_DISPOSITION_ATTACHED_PIC
The stream is stored in the file as an attached picture/"cover art" (e.g.
|
static int |
AV_DISPOSITION_CAPTIONS
The subtitle stream contains captions, providing a transcription and possibly
a translation of audio.
|
static int |
AV_DISPOSITION_CLEAN_EFFECTS
The audio stream contains music and sound effects without voice.
|
static int |
AV_DISPOSITION_COMMENT
The stream is a commentary track.
|
static int |
AV_DISPOSITION_DEFAULT
The stream should be chosen by default among other streams of the same type,
unless the user has explicitly specified otherwise.
|
static int |
AV_DISPOSITION_DEPENDENT
The stream is intended to be mixed with another stream before presentation.
|
static int |
AV_DISPOSITION_DESCRIPTIONS
The subtitle stream contains a textual description of the video content.
|
static int |
AV_DISPOSITION_DUB
The stream is not in original language.
|
static int |
AV_DISPOSITION_FORCED
Track should be used during playback by default.
|
static int |
AV_DISPOSITION_HEARING_IMPAIRED
The stream is intended for hearing impaired audiences.
|
static int |
AV_DISPOSITION_KARAOKE
The stream contains karaoke audio.
|
static int |
AV_DISPOSITION_LYRICS
The stream contains song lyrics.
|
static int |
AV_DISPOSITION_METADATA
The subtitle stream contains time-aligned metadata that is not intended to be
directly presented to the user.
|
static int |
AV_DISPOSITION_MULTILAYER
The video stream contains multiple layers, e.g.
|
static int |
AV_DISPOSITION_NON_DIEGETIC
The stream is intended to be mixed with a spatial audio track.
|
static int |
AV_DISPOSITION_ORIGINAL
The stream is in original language.
|
static int |
AV_DISPOSITION_STILL_IMAGE
The video stream contains still images.
|
static int |
AV_DISPOSITION_TIMED_THUMBNAILS
The stream is sparse, and contains thumbnail images, often corresponding
to chapter markers.
|
static int |
AV_DISPOSITION_VISUAL_IMPAIRED
The stream is intended for visually impaired audiences.
|
static int |
AV_FRAME_FILENAME_FLAGS_MULTIPLE
Allow multiple %d
|
static int |
AV_PROGRAM_RUNNING |
static int |
AV_PTS_WRAP_ADD_OFFSET
add the format specific offset on wrap detection
|
static int |
AV_PTS_WRAP_IGNORE
ignore the wrap
|
static int |
AV_PTS_WRAP_SUB_OFFSET
subtract the format specific offset on wrap detection
|
static int |
AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT
enum AVStreamGroupParamsType
|
static int |
AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION
enum AVStreamGroupParamsType
|
static int |
AV_STREAM_GROUP_PARAMS_LCEVC
enum AVStreamGroupParamsType
|
static int |
AV_STREAM_GROUP_PARAMS_NONE
enum AVStreamGroupParamsType
|
static int |
AV_STREAM_GROUP_PARAMS_TILE_GRID
enum AVStreamGroupParamsType
|
static int |
AVFMT_ALLOW_FLUSH
Deprecated.
: Just send a NULL packet if you want to flush a muxer.
|
static int |
AVFMT_DURATION_FROM_BITRATE
enum AVDurationEstimationMethod
|
static int |
AVFMT_DURATION_FROM_PTS
enum AVDurationEstimationMethod
|
static int |
AVFMT_DURATION_FROM_STREAM
enum AVDurationEstimationMethod
|
static int |
AVFMT_EXPERIMENTAL
The muxer/demuxer is experimental and should be used with caution.
|
static int |
AVFMT_GENERIC_INDEX
Use generic index building code.
|
static int |
AVFMT_GLOBALHEADER
Format wants global header.
|
static int |
AVFMT_NEEDNUMBER
Needs '%d' in filename.
|
static int |
AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes
|
static int |
AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp
|
static int |
AVFMT_NODIMENSIONS
Format does not need width/height
|
static int |
AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
|
static int |
AVFMT_NOGENSEARCH
Format does not allow to fall back on generic search
|
static int |
AVFMT_NOSTREAMS
Format does not require any streams
|
static int |
AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
|
static int |
AVFMT_SEEK_TO_PTS
Seeking is based on PTS
|
static int |
AVFMT_SHOW_IDS
Show format stream IDs numbers.
|
static int |
AVFMT_TBCF_AUTO
enum AVTimebaseSource
|
static int |
AVFMT_TBCF_DECODER
enum AVTimebaseSource
|
static int |
AVFMT_TBCF_DEMUXER
enum AVTimebaseSource
|
static int |
AVFMT_TBCF_R_FRAMERATE
enum AVTimebaseSource
|
static int |
AVFMT_TS_DISCONT
Format allows timestamp discontinuities.
|
static int |
AVFMT_TS_NEGATIVE
Format allows muxing negative
timestamps.
|
static int |
AVFMT_TS_NONSTRICT
Format does not require strictly
increasing timestamps, but they must
still be monotonic
|
static int |
AVFMT_VARIABLE_FPS
Format allows variable fps.
|
static int |
AVFMTCTX_NOHEADER
signal that no header is present
(streams are added dynamically)
|
static int |
AVFMTCTX_UNSEEKABLE
signal that the stream is definitely
not seekable, and attempts to call the
seek function will fail.
|
static int |
AVIO_DATA_MARKER_BOUNDARY_POINT
enum AVIODataMarkerType
|
static int |
AVIO_DATA_MARKER_FLUSH_POINT
enum AVIODataMarkerType
|
static int |
AVIO_DATA_MARKER_HEADER
enum AVIODataMarkerType
|
static int |
AVIO_DATA_MARKER_SYNC_POINT
enum AVIODataMarkerType
|
static int |
AVIO_DATA_MARKER_TRAILER
enum AVIODataMarkerType
|
static int |
AVIO_DATA_MARKER_UNKNOWN
enum AVIODataMarkerType
|
static int |
AVIO_ENTRY_BLOCK_DEVICE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_CHARACTER_DEVICE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_DIRECTORY
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_FILE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_NAMED_PIPE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SERVER
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SHARE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SOCKET
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SYMBOLIC_LINK
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_UNKNOWN
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_WORKGROUP
enum AVIODirEntryType
|
static int |
AVIO_FLAG_DIRECT
Use direct mode.
|
static int |
AVIO_FLAG_NONBLOCK
Use non-blocking mode.
|
static int |
AVIO_FLAG_READ
read-only
|
static int |
AVIO_FLAG_READ_WRITE
read-write pseudo flag
|
static int |
AVIO_FLAG_WRITE
write-only
|
static int |
AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
|
static int |
AVIO_SEEKABLE_TIME
Seeking by timestamp with avio_seek_time() is possible.
|
static int |
AVPROBE_PADDING_SIZE
extra allocated bytes at the end of the probe buffer
|
static int |
AVPROBE_SCORE_EXTENSION
score for file extension
|
static int |
AVPROBE_SCORE_MAX
maximum score
|
static int |
AVPROBE_SCORE_MIME
score for file mime type
|
static int |
AVPROBE_SCORE_RETRY |
static int |
AVPROBE_SCORE_STREAM_RETRY |
static int |
AVSEEK_FLAG_ANY
seek to any frame, even non-keyframes
|
static int |
AVSEEK_FLAG_BACKWARD
seek backward
|
static int |
AVSEEK_FLAG_BYTE
seeking based on position in bytes
|
static int |
AVSEEK_FLAG_FRAME
seeking based on frame number
|
static int |
AVSEEK_FORCE
Passing this flag as the "whence" parameter to a seek function causes it to
seek by any means (like reopening and linear reading) or other normally unreasonable
means that can be extremely slow.
|
static int |
AVSEEK_SIZE
ORing this as the "whence" parameter to a seek function causes it to
return the filesize without seeking anywhere.
|
static int |
AVSTREAM_INIT_IN_INIT_OUTPUT
stream parameters initialized in avformat_init_output
|
static int |
AVSTREAM_INIT_IN_WRITE_HEADER
stream parameters initialized in avformat_write_header
|
static int |
AVSTREAM_PARSE_FULL
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_FULL_ONCE
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_FULL_RAW
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_HEADERS
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_NONE
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_TIMESTAMPS
enum AVStreamParseType
|
static boolean |
FF_API_ALLOW_FLUSH |
static boolean |
FF_API_AVSTREAM_SIDE_DATA |
static boolean |
FF_API_COMPUTE_PKT_FIELDS2
FF_API_* defines may be placed below to indicate public API that will be
dropped at a future version bump.
|
static boolean |
FF_API_GET_DUR_ESTIMATE_METHOD |
static boolean |
FF_API_INTERNAL_TIMING |
static boolean |
FF_API_LAVF_SHORTEST |
static int |
FF_API_R_FRAME_RATE |
static int |
LIBAVFORMAT_BUILD |
static String |
LIBAVFORMAT_IDENT |
static int |
LIBAVFORMAT_VERSION_INT |
static int |
LIBAVFORMAT_VERSION_MAJOR
\file
\ingroup libavf
Libavformat version macros
|
static int |
LIBAVFORMAT_VERSION_MICRO |
static int |
LIBAVFORMAT_VERSION_MINOR
\file
\ingroup libavf
Libavformat version macros
|
Constructor and Description |
---|
avformat() |
Modifier and Type | Method and Description |
---|---|
static int |
av_add_index_entry(AVStream st,
long pos,
long timestamp,
int size,
int distance,
int flags)
Add an index entry into a sorted list.
|
static int |
av_append_packet(AVIOContext s,
AVPacket pkt,
int size)
Read data and append it to the current content of the AVPacket.
|
static int |
av_codec_get_id(AVCodecTag tags,
int tag) |
static int |
av_codec_get_id(PointerPointer tags,
int tag)
Get the AVCodecID for the given codec tag tag.
|
static int |
av_codec_get_tag(AVCodecTag tags,
int id) |
static int |
av_codec_get_tag(PointerPointer tags,
int id)
Get the codec tag for the given codec id id.
|
static int |
av_codec_get_tag2(AVCodecTag tags,
int id,
int[] tag) |
static int |
av_codec_get_tag2(AVCodecTag tags,
int id,
IntBuffer tag) |
static int |
av_codec_get_tag2(AVCodecTag tags,
int id,
IntPointer tag) |
static int |
av_codec_get_tag2(PointerPointer tags,
int id,
IntPointer tag)
Get the codec tag for the given codec id.
|
static AVInputFormat |
av_demuxer_iterate(Pointer opaque) |
static AVInputFormat |
av_demuxer_iterate(PointerPointer opaque)
Iterate over all registered demuxers.
|
static int |
av_disposition_from_string(BytePointer disp) |
static int |
av_disposition_from_string(String disp) |
static BytePointer |
av_disposition_to_string(int disposition) |
static void |
av_dump_format(AVFormatContext ic,
int index,
BytePointer url,
int is_output)
Print detailed information about the input or output format, such as
duration, bitrate, streams, container, programs, metadata, side data,
codec and time base.
|
static void |
av_dump_format(AVFormatContext ic,
int index,
String url,
int is_output) |
static int |
av_filename_number_test(BytePointer filename)
Check whether filename actually is a numbered sequence generator.
|
static int |
av_filename_number_test(String filename) |
static int |
av_find_best_stream(AVFormatContext ic,
int type,
int wanted_stream_nb,
int related_stream,
AVCodec decoder_ret,
int flags) |
static int |
av_find_best_stream(AVFormatContext ic,
int type,
int wanted_stream_nb,
int related_stream,
PointerPointer decoder_ret,
int flags)
Find the "best" stream in the file.
|
static int |
av_find_default_stream_index(AVFormatContext s) |
static AVInputFormat |
av_find_input_format(BytePointer short_name)
Find AVInputFormat based on the short name of the input format.
|
static AVInputFormat |
av_find_input_format(String short_name) |
static AVProgram |
av_find_program_from_stream(AVFormatContext ic,
AVProgram last,
int s)
Find the programs which belong to a given stream.
|
static int |
av_fmt_ctx_get_duration_estimation_method(AVFormatContext ctx)
Deprecated.
duration_estimation_method is public and can be read directly.
|
static void |
av_format_inject_global_side_data(AVFormatContext s)
This function will cause global side data to be injected in the next packet
of each stream as well as after any subsequent seek.
|
static int |
av_get_frame_filename(byte[] buf,
int buf_size,
BytePointer path,
int number) |
static int |
av_get_frame_filename(byte[] buf,
int buf_size,
String path,
int number) |
static int |
av_get_frame_filename(ByteBuffer buf,
int buf_size,
BytePointer path,
int number) |
static int |
av_get_frame_filename(ByteBuffer buf,
int buf_size,
String path,
int number) |
static int |
av_get_frame_filename(BytePointer buf,
int buf_size,
BytePointer path,
int number) |
static int |
av_get_frame_filename(BytePointer buf,
int buf_size,
String path,
int number) |
static int |
av_get_frame_filename2(byte[] buf,
int buf_size,
BytePointer path,
int number,
int flags) |
static int |
av_get_frame_filename2(byte[] buf,
int buf_size,
String path,
int number,
int flags) |
static int |
av_get_frame_filename2(ByteBuffer buf,
int buf_size,
BytePointer path,
int number,
int flags) |
static int |
av_get_frame_filename2(ByteBuffer buf,
int buf_size,
String path,
int number,
int flags) |
static int |
av_get_frame_filename2(BytePointer buf,
int buf_size,
BytePointer path,
int number,
int flags)
Return in 'buf' the path with '%d' replaced by a number.
|
static int |
av_get_frame_filename2(BytePointer buf,
int buf_size,
String path,
int number,
int flags) |
static int |
av_get_output_timestamp(AVFormatContext s,
int stream,
long[] dts,
long[] wall) |
static int |
av_get_output_timestamp(AVFormatContext s,
int stream,
LongBuffer dts,
LongBuffer wall) |
static int |
av_get_output_timestamp(AVFormatContext s,
int stream,
LongPointer dts,
LongPointer wall)
Get timing information for the data currently output.
|
static int |
av_get_packet(AVIOContext s,
AVPacket pkt,
int size)
Allocate and read the payload of a packet and initialize its
fields with default values.
|
static int |
av_guess_codec(AVOutputFormat fmt,
BytePointer short_name,
BytePointer filename,
BytePointer mime_type,
int type)
Guess the codec ID based upon muxer and filename.
|
static int |
av_guess_codec(AVOutputFormat fmt,
String short_name,
String filename,
String mime_type,
int type) |
static AVOutputFormat |
av_guess_format(BytePointer short_name,
BytePointer filename,
BytePointer mime_type)
Return the output format in the list of registered output formats
which best matches the provided parameters, or return NULL if
there is no match.
|
static AVOutputFormat |
av_guess_format(String short_name,
String filename,
String mime_type) |
static AVRational |
av_guess_frame_rate(AVFormatContext ctx,
AVStream stream,
AVFrame frame)
Guess the frame rate, based on both the container and codec information.
|
static AVRational |
av_guess_sample_aspect_ratio(AVFormatContext format,
AVStream stream,
AVFrame frame)
Guess the sample aspect ratio of a frame, based on both the stream and the
frame aspect ratio.
|
static void |
av_hex_dump_log(Pointer avcl,
int level,
byte[] buf,
int size) |
static void |
av_hex_dump_log(Pointer avcl,
int level,
ByteBuffer buf,
int size) |
static void |
av_hex_dump_log(Pointer avcl,
int level,
BytePointer buf,
int size)
Send a nice hexadecimal dump of a buffer to the log.
|
static void |
av_hex_dump(Pointer f,
byte[] buf,
int size) |
static void |
av_hex_dump(Pointer f,
ByteBuffer buf,
int size) |
static void |
av_hex_dump(Pointer f,
BytePointer buf,
int size)
Send a nice hexadecimal dump of a buffer to the specified file stream.
|
static int |
av_index_search_timestamp(AVStream st,
long timestamp,
int flags)
Get the index for a specific timestamp.
|
static int |
av_interleaved_write_frame(AVFormatContext s,
AVPacket pkt)
Write a packet to an output media file ensuring correct interleaving.
|
static int |
av_interleaved_write_uncoded_frame(AVFormatContext s,
int stream_index,
AVFrame frame)
Write an uncoded frame to an output media file.
|
static int |
av_match_ext(BytePointer filename,
BytePointer extensions)
Return a positive value if the given filename has one of the given
extensions, 0 otherwise.
|
static int |
av_match_ext(String filename,
String extensions) |
static AVOutputFormat |
av_muxer_iterate(Pointer opaque) |
static AVOutputFormat |
av_muxer_iterate(PointerPointer opaque)
Iterate over all registered muxers.
|
static AVProgram |
av_new_program(AVFormatContext s,
int id) |
static void |
av_pkt_dump_log2(Pointer avcl,
int level,
AVPacket pkt,
int dump_payload,
AVStream st)
Send a nice dump of a packet to the log.
|
static void |
av_pkt_dump2(Pointer f,
AVPacket pkt,
int dump_payload,
AVStream st)
Send a nice dump of a packet to the specified file stream.
|
static int |
av_probe_input_buffer(AVIOContext pb,
AVInputFormat fmt,
BytePointer url,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer(AVIOContext pb,
AVInputFormat fmt,
String url,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer(AVIOContext pb,
PointerPointer fmt,
BytePointer url,
Pointer logctx,
int offset,
int max_probe_size)
Like av_probe_input_buffer2() but returns 0 on success
|
static int |
av_probe_input_buffer2(AVIOContext pb,
AVInputFormat fmt,
BytePointer url,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer2(AVIOContext pb,
AVInputFormat fmt,
String url,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer2(AVIOContext pb,
PointerPointer fmt,
BytePointer url,
Pointer logctx,
int offset,
int max_probe_size)
Probe a bytestream to determine the input format.
|
static AVInputFormat |
av_probe_input_format(AVProbeData pd,
int is_opened)
Guess the file format.
|
static AVInputFormat |
av_probe_input_format2(AVProbeData pd,
int is_opened,
int[] score_max) |
static AVInputFormat |
av_probe_input_format2(AVProbeData pd,
int is_opened,
IntBuffer score_max) |
static AVInputFormat |
av_probe_input_format2(AVProbeData pd,
int is_opened,
IntPointer score_max)
Guess the file format.
|
static AVInputFormat |
av_probe_input_format3(AVProbeData pd,
int is_opened,
int[] score_ret) |
static AVInputFormat |
av_probe_input_format3(AVProbeData pd,
int is_opened,
IntBuffer score_ret) |
static AVInputFormat |
av_probe_input_format3(AVProbeData pd,
int is_opened,
IntPointer score_ret)
Guess the file format.
|
static void |
av_program_add_stream_index(AVFormatContext ac,
int progid,
int idx) |
static int |
av_read_frame(AVFormatContext s,
AVPacket pkt)
Return the next frame of a stream.
|
static int |
av_read_pause(AVFormatContext s)
Pause a network-based stream (e.g.
|
static int |
av_read_play(AVFormatContext s)
Start playing a network-based stream (e.g.
|
static int |
av_sdp_create(AVFormatContext ac,
int n_files,
byte[] buf,
int size) |
static int |
av_sdp_create(AVFormatContext ac,
int n_files,
ByteBuffer buf,
int size) |
static int |
av_sdp_create(AVFormatContext ac,
int n_files,
BytePointer buf,
int size) |
static int |
av_sdp_create(PointerPointer ac,
int n_files,
BytePointer buf,
int size)
Generate an SDP for an RTP session.
|
static int |
av_seek_frame(AVFormatContext s,
int stream_index,
long timestamp,
int flags)
Seek to the keyframe at timestamp.
|
static int |
av_stream_add_side_data(AVStream st,
int type,
byte[] data,
long size)
Deprecated.
|
static int |
av_stream_add_side_data(AVStream st,
int type,
ByteBuffer data,
long size)
Deprecated.
|
static int |
av_stream_add_side_data(AVStream st,
int type,
BytePointer data,
long size)
Deprecated.
use av_packet_side_data_add() with the stream's
\ref AVCodecParameters.coded_side_data "codecpar side data"
|
static AVClass |
av_stream_get_class()
Get the AVClass for AVStream.
|
static AVRational |
av_stream_get_codec_timebase(AVStream st)
Deprecated.
do not call this function
|
static AVCodecParserContext |
av_stream_get_parser(AVStream s) |
static BytePointer |
av_stream_get_side_data(AVStream stream,
int type,
SizeTPointer size)
Deprecated.
use av_packet_side_data_get() with the stream's
\ref AVCodecParameters.coded_side_data "codecpar side data"
|
static AVClass |
av_stream_group_get_class()
Get the AVClass for AVStreamGroup.
|
static BytePointer |
av_stream_new_side_data(AVStream stream,
int type,
long size)
Deprecated.
use av_packet_side_data_new() with the stream's
\ref AVCodecParameters.coded_side_data "codecpar side data"
|
static void |
av_url_split(byte[] proto,
int proto_size,
byte[] authorization,
int authorization_size,
byte[] hostname,
int hostname_size,
int[] port_ptr,
byte[] path,
int path_size,
BytePointer url) |
static void |
av_url_split(byte[] proto,
int proto_size,
byte[] authorization,
int authorization_size,
byte[] hostname,
int hostname_size,
int[] port_ptr,
byte[] path,
int path_size,
String url) |
static void |
av_url_split(ByteBuffer proto,
int proto_size,
ByteBuffer authorization,
int authorization_size,
ByteBuffer hostname,
int hostname_size,
IntBuffer port_ptr,
ByteBuffer path,
int path_size,
BytePointer url) |
static void |
av_url_split(ByteBuffer proto,
int proto_size,
ByteBuffer authorization,
int authorization_size,
ByteBuffer hostname,
int hostname_size,
IntBuffer port_ptr,
ByteBuffer path,
int path_size,
String url) |
static void |
av_url_split(BytePointer proto,
int proto_size,
BytePointer authorization,
int authorization_size,
BytePointer hostname,
int hostname_size,
IntPointer port_ptr,
BytePointer path,
int path_size,
BytePointer url)
Split a URL string into components.
|
static void |
av_url_split(BytePointer proto,
int proto_size,
BytePointer authorization,
int authorization_size,
BytePointer hostname,
int hostname_size,
IntPointer port_ptr,
BytePointer path,
int path_size,
String url) |
static int |
av_write_frame(AVFormatContext s,
AVPacket pkt)
Write a packet to an output media file.
|
static int |
av_write_trailer(AVFormatContext s)
Write the stream trailer to an output media file and free the
file private data.
|
static int |
av_write_uncoded_frame_query(AVFormatContext s,
int stream_index)
Test whether a muxer supports uncoded frame.
|
static int |
av_write_uncoded_frame(AVFormatContext s,
int stream_index,
AVFrame frame)
Write an uncoded frame to an output media file.
|
static AVFormatContext |
avformat_alloc_context()
Allocate an AVFormatContext.
|
static int |
avformat_alloc_output_context2(AVFormatContext ctx,
AVOutputFormat oformat,
BytePointer format_name,
BytePointer filename) |
static int |
avformat_alloc_output_context2(AVFormatContext ctx,
AVOutputFormat oformat,
String format_name,
String filename) |
static int |
avformat_alloc_output_context2(PointerPointer ctx,
AVOutputFormat oformat,
BytePointer format_name,
BytePointer filename)
Allocate an AVFormatContext for an output format.
|
static void |
avformat_close_input(AVFormatContext s) |
static void |
avformat_close_input(PointerPointer s)
Close an opened input AVFormatContext.
|
static BytePointer |
avformat_configuration()
Return the libavformat build-time configuration.
|
static int |
avformat_find_stream_info(AVFormatContext ic,
AVDictionary options) |
static int |
avformat_find_stream_info(AVFormatContext ic,
PointerPointer options)
Read packets of a media file to get stream information.
|
static int |
avformat_flush(AVFormatContext s)
Discard all internally buffered data.
|
static void |
avformat_free_context(AVFormatContext s)
Free an AVFormatContext and all its streams.
|
static AVClass |
avformat_get_class()
Get the AVClass for AVFormatContext.
|
static AVCodecTag |
avformat_get_mov_audio_tags() |
static AVCodecTag |
avformat_get_mov_video_tags() |
static AVCodecTag |
avformat_get_riff_audio_tags() |
static AVCodecTag |
avformat_get_riff_video_tags() |
static int |
avformat_index_get_entries_count(AVStream st)
Get the index entry count for the given AVStream.
|
static AVIndexEntry |
avformat_index_get_entry_from_timestamp(AVStream st,
long wanted_timestamp,
int flags)
Get the AVIndexEntry corresponding to the given timestamp.
|
static AVIndexEntry |
avformat_index_get_entry(AVStream st,
int idx)
Get the AVIndexEntry corresponding to the given index.
|
static int |
avformat_init_output(AVFormatContext s,
AVDictionary options) |
static int |
avformat_init_output(AVFormatContext s,
PointerPointer options)
Allocate the stream private data and initialize the codec, but do not write the header.
|
static BytePointer |
avformat_license()
Return the libavformat license.
|
static int |
avformat_match_stream_specifier(AVFormatContext s,
AVStream st,
BytePointer spec)
Check if the stream st contained in s is matched by the stream specifier
spec.
|
static int |
avformat_match_stream_specifier(AVFormatContext s,
AVStream st,
String spec) |
static int |
avformat_network_deinit()
Undo the initialization done by avformat_network_init.
|
static int |
avformat_network_init()
Do global initialization of network libraries.
|
static AVStream |
avformat_new_stream(AVFormatContext s,
AVCodec c)
Add a new stream to a media file.
|
static int |
avformat_open_input(AVFormatContext ps,
BytePointer url,
AVInputFormat fmt,
AVDictionary options) |
static int |
avformat_open_input(AVFormatContext ps,
String url,
AVInputFormat fmt,
AVDictionary options) |
static int |
avformat_open_input(PointerPointer ps,
BytePointer url,
AVInputFormat fmt,
PointerPointer options)
Open an input stream and read the header.
|
static int |
avformat_query_codec(AVOutputFormat ofmt,
int codec_id,
int std_compliance)
Test if the given container can store a codec.
|
static int |
avformat_queue_attached_pictures(AVFormatContext s) |
static int |
avformat_seek_file(AVFormatContext s,
int stream_index,
long min_ts,
long ts,
long max_ts,
int flags)
Seek to timestamp ts.
|
static int |
avformat_stream_group_add_stream(AVStreamGroup stg,
AVStream st)
Add an already allocated stream to a stream group.
|
static AVStreamGroup |
avformat_stream_group_create(AVFormatContext s,
int type,
AVDictionary options) |
static AVStreamGroup |
avformat_stream_group_create(AVFormatContext s,
int type,
PointerPointer options)
Add a new empty stream group to a media file.
|
static BytePointer |
avformat_stream_group_name(int type) |
static int |
avformat_transfer_internal_stream_timing_info(AVOutputFormat ofmt,
AVStream ost,
AVStream ist,
int copy_tb)
Deprecated.
do not call this function
|
static int |
avformat_version()
Return the LIBAVFORMAT_VERSION_INT constant.
|
static int |
avformat_write_header(AVFormatContext s,
AVDictionary options) |
static int |
avformat_write_header(AVFormatContext s,
PointerPointer options)
Allocate the stream private data and write the stream header to
an output media file.
|
static int |
avio_accept(AVIOContext s,
AVIOContext c) |
static int |
avio_accept(AVIOContext s,
PointerPointer c)
Accept and allocate a client context on a server context.
|
static AVIOContext |
avio_alloc_context(byte[] buffer,
int buffer_size,
int write_flag,
Pointer opaque,
Read_packet_Pointer_byte___int read_packet,
Write_packet_Pointer_byte___int write_packet,
Seek_Pointer_long_int seek) |
static AVIOContext |
avio_alloc_context(ByteBuffer buffer,
int buffer_size,
int write_flag,
Pointer opaque,
Read_packet_Pointer_ByteBuffer_int read_packet,
Write_packet_Pointer_ByteBuffer_int write_packet,
Seek_Pointer_long_int seek) |
static AVIOContext |
avio_alloc_context(BytePointer buffer,
int buffer_size,
int write_flag,
Pointer opaque,
Read_packet_Pointer_BytePointer_int read_packet,
Write_packet_Pointer_BytePointer_int write_packet,
Seek_Pointer_long_int seek) |
static int |
avio_check(BytePointer url,
int flags)
Return AVIO_FLAG_* access flags corresponding to the access permissions
of the resource in url, or a negative value corresponding to an
AVERROR code in case of failure.
|
static int |
avio_check(String url,
int flags) |
static int |
avio_close_dir(AVIODirContext s) |
static int |
avio_close_dir(PointerPointer s)
Close directory.
|
static int |
avio_close_dyn_buf(AVIOContext s,
byte[] pbuffer) |
static int |
avio_close_dyn_buf(AVIOContext s,
ByteBuffer pbuffer) |
static int |
avio_close_dyn_buf(AVIOContext s,
BytePointer pbuffer) |
static int |
avio_close_dyn_buf(AVIOContext s,
PointerPointer pbuffer)
Return the written size and a pointer to the buffer.
|
static int |
avio_close(AVIOContext s)
Close the resource accessed by the AVIOContext s and free it.
|
static int |
avio_closep(AVIOContext s) |
static int |
avio_closep(PointerPointer s)
Close the resource accessed by the AVIOContext *s, free it
and set the pointer pointing to it to NULL.
|
static void |
avio_context_free(AVIOContext s) |
static void |
avio_context_free(PointerPointer s)
Free the supplied IO context and everything associated with it.
|
static BytePointer |
avio_enum_protocols(Pointer opaque,
int output) |
static BytePointer |
avio_enum_protocols(PointerPointer opaque,
int output)
Iterate through names of available protocols.
|
static int |
avio_feof(AVIOContext s)
Similar to feof() but also returns nonzero on read errors.
|
static BytePointer |
avio_find_protocol_name(BytePointer url)
Return the name of the protocol that will handle the passed URL.
|
static String |
avio_find_protocol_name(String url) |
static void |
avio_flush(AVIOContext s)
Force flushing of buffered data.
|
static void |
avio_free_directory_entry(AVIODirEntry entry) |
static void |
avio_free_directory_entry(PointerPointer entry)
Free entry allocated by avio_read_dir().
|
static int |
avio_get_dyn_buf(AVIOContext s,
byte[] pbuffer) |
static int |
avio_get_dyn_buf(AVIOContext s,
ByteBuffer pbuffer) |
static int |
avio_get_dyn_buf(AVIOContext s,
BytePointer pbuffer) |
static int |
avio_get_dyn_buf(AVIOContext s,
PointerPointer pbuffer)
Return the written size and a pointer to the buffer.
|
static int |
avio_get_str(AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str(AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str(AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen)
Read a string from pb into buf.
|
static int |
avio_get_str16be(AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str16be(AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str16be(AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen) |
static int |
avio_get_str16le(AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str16le(AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str16le(AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen)
Read a UTF-16 string from pb and convert it to UTF-8.
|
static int |
avio_handshake(AVIOContext c)
Perform one step of the protocol handshake to accept a new client.
|
static int |
avio_open_dir(AVIODirContext s,
BytePointer url,
AVDictionary options) |
static int |
avio_open_dir(AVIODirContext s,
String url,
AVDictionary options) |
static int |
avio_open_dir(PointerPointer s,
BytePointer url,
PointerPointer options)
Open directory for reading.
|
static int |
avio_open_dyn_buf(AVIOContext s) |
static int |
avio_open_dyn_buf(PointerPointer s)
Open a write only memory stream.
|
static int |
avio_open(AVIOContext s,
BytePointer url,
int flags) |
static int |
avio_open(AVIOContext s,
String url,
int flags) |
static int |
avio_open(PointerPointer s,
BytePointer url,
int flags)
Create and initialize a AVIOContext for accessing the
resource indicated by url.
|
static int |
avio_open2(AVIOContext s,
BytePointer url,
int flags,
AVIOInterruptCB int_cb,
AVDictionary options) |
static int |
avio_open2(AVIOContext s,
String url,
int flags,
AVIOInterruptCB int_cb,
AVDictionary options) |
static int |
avio_open2(PointerPointer s,
BytePointer url,
int flags,
AVIOInterruptCB int_cb,
PointerPointer options)
Create and initialize a AVIOContext for accessing the
resource indicated by url.
|
static int |
avio_pause(AVIOContext h,
int pause)
Pause and resume playing - only meaningful if using a network streaming
protocol (e.g.
|
static void |
avio_print_string_array(AVIOContext s,
byte[] strings) |
static void |
avio_print_string_array(AVIOContext s,
ByteBuffer strings) |
static void |
avio_print_string_array(AVIOContext s,
BytePointer strings) |
static void |
avio_print_string_array(AVIOContext s,
PointerPointer strings)
Write a NULL terminated array of strings to the context.
|
static int |
avio_printf(AVIOContext s,
BytePointer fmt)
Writes a formatted string to the context.
|
static int |
avio_printf(AVIOContext s,
String fmt) |
static AVClass |
avio_protocol_get_class(BytePointer name)
Get AVClass by names of available protocols.
|
static AVClass |
avio_protocol_get_class(String name) |
static int |
avio_put_str(AVIOContext s,
BytePointer str)
Write a NULL-terminated string.
|
static int |
avio_put_str(AVIOContext s,
String str) |
static int |
avio_put_str16be(AVIOContext s,
BytePointer str)
Convert an UTF-8 string to UTF-16BE and write it.
|
static int |
avio_put_str16be(AVIOContext s,
String str) |
static int |
avio_put_str16le(AVIOContext s,
BytePointer str)
Convert an UTF-8 string to UTF-16LE and write it.
|
static int |
avio_put_str16le(AVIOContext s,
String str) |
static int |
avio_r8(AVIOContext s)
\name Functions for reading from AVIOContext
\{
\note return 0 if EOF, so you cannot use it if EOF handling is
necessary
|
static int |
avio_rb16(AVIOContext s) |
static int |
avio_rb24(AVIOContext s) |
static int |
avio_rb32(AVIOContext s) |
static long |
avio_rb64(AVIOContext s) |
static int |
avio_read_dir(AVIODirContext s,
AVIODirEntry next) |
static int |
avio_read_dir(AVIODirContext s,
PointerPointer next)
Get next directory entry.
|
static int |
avio_read_partial(AVIOContext s,
byte[] buf,
int size) |
static int |
avio_read_partial(AVIOContext s,
ByteBuffer buf,
int size) |
static int |
avio_read_partial(AVIOContext s,
BytePointer buf,
int size)
Read size bytes from AVIOContext into buf.
|
static int |
avio_read_to_bprint(AVIOContext h,
Pointer pb,
long max_size)
Read contents of h into print buffer, up to max_size bytes, or up to EOF.
|
static int |
avio_read(AVIOContext s,
byte[] buf,
int size) |
static int |
avio_read(AVIOContext s,
ByteBuffer buf,
int size) |
static int |
avio_read(AVIOContext s,
BytePointer buf,
int size)
Read size bytes from AVIOContext into buf.
|
static int |
avio_rl16(AVIOContext s) |
static int |
avio_rl24(AVIOContext s) |
static int |
avio_rl32(AVIOContext s) |
static long |
avio_rl64(AVIOContext s) |
static long |
avio_seek_time(AVIOContext h,
int stream_index,
long timestamp,
int flags)
Seek to a given timestamp relative to some component stream.
|
static long |
avio_seek(AVIOContext s,
long offset,
int whence)
fseek() equivalent for AVIOContext.
|
static long |
avio_size(AVIOContext s)
Get the filesize.
|
static long |
avio_skip(AVIOContext s,
long offset)
Skip given number of bytes forward
|
static long |
avio_tell(AVIOContext s)
ftell() equivalent for AVIOContext.
|
static int |
avio_vprintf(AVIOContext s,
BytePointer fmt,
Pointer ap)
Writes a formatted string to the context taking a va_list.
|
static int |
avio_vprintf(AVIOContext s,
String fmt,
Pointer ap) |
static void |
avio_w8(AVIOContext s,
int b) |
static void |
avio_wb16(AVIOContext s,
int val) |
static void |
avio_wb24(AVIOContext s,
int val) |
static void |
avio_wb32(AVIOContext s,
int val) |
static void |
avio_wb64(AVIOContext s,
long val) |
static void |
avio_wl16(AVIOContext s,
int val) |
static void |
avio_wl24(AVIOContext s,
int val) |
static void |
avio_wl32(AVIOContext s,
int val) |
static void |
avio_wl64(AVIOContext s,
long val) |
static void |
avio_write_marker(AVIOContext s,
long time,
int type)
Mark the written bytestream as a specific type.
|
static void |
avio_write(AVIOContext s,
byte[] buf,
int size) |
static void |
avio_write(AVIOContext s,
ByteBuffer buf,
int size) |
static void |
avio_write(AVIOContext s,
BytePointer buf,
int size) |
static int |
AVPROBE_SCORE_RETRY() |
static int |
AVPROBE_SCORE_STREAM_RETRY() |
static String |
LIBAVFORMAT_IDENT() |
static int |
LIBAVFORMAT_VERSION_INT() |
public static final int AVIO_SEEKABLE_NORMAL
public static final int AVIO_SEEKABLE_TIME
public static final int AVIO_ENTRY_UNKNOWN
public static final int AVIO_ENTRY_BLOCK_DEVICE
public static final int AVIO_ENTRY_CHARACTER_DEVICE
public static final int AVIO_ENTRY_DIRECTORY
public static final int AVIO_ENTRY_NAMED_PIPE
public static final int AVIO_ENTRY_SYMBOLIC_LINK
public static final int AVIO_ENTRY_SOCKET
public static final int AVIO_ENTRY_FILE
public static final int AVIO_ENTRY_SERVER
public static final int AVIO_ENTRY_SHARE
public static final int AVIO_ENTRY_WORKGROUP
public static final int AVIO_DATA_MARKER_HEADER
public static final int AVIO_DATA_MARKER_SYNC_POINT
public static final int AVIO_DATA_MARKER_BOUNDARY_POINT
public static final int AVIO_DATA_MARKER_UNKNOWN
public static final int AVIO_DATA_MARKER_TRAILER
public static final int AVIO_DATA_MARKER_FLUSH_POINT
public static final int AVSEEK_SIZE
public static final int AVSEEK_FORCE
public static final int AVIO_FLAG_READ
public static final int AVIO_FLAG_WRITE
public static final int AVIO_FLAG_READ_WRITE
public static final int AVIO_FLAG_NONBLOCK
public static final int AVIO_FLAG_DIRECT
public static final int AVPROBE_SCORE_RETRY
public static final int AVPROBE_SCORE_STREAM_RETRY
public static final int AVPROBE_SCORE_EXTENSION
public static final int AVPROBE_SCORE_MIME
public static final int AVPROBE_SCORE_MAX
public static final int AVPROBE_PADDING_SIZE
public static final int AVFMT_NOFILE
public static final int AVFMT_NEEDNUMBER
public static final int AVFMT_EXPERIMENTAL
public static final int AVFMT_SHOW_IDS
public static final int AVFMT_GLOBALHEADER
public static final int AVFMT_NOTIMESTAMPS
public static final int AVFMT_GENERIC_INDEX
public static final int AVFMT_TS_DISCONT
public static final int AVFMT_VARIABLE_FPS
public static final int AVFMT_NODIMENSIONS
public static final int AVFMT_NOSTREAMS
public static final int AVFMT_NOBINSEARCH
public static final int AVFMT_NOGENSEARCH
public static final int AVFMT_NO_BYTE_SEEK
public static final int AVFMT_ALLOW_FLUSH
public static final int AVFMT_TS_NONSTRICT
public static final int AVFMT_TS_NEGATIVE
public static final int AVFMT_SEEK_TO_PTS
public static final int AVSTREAM_PARSE_NONE
public static final int AVSTREAM_PARSE_FULL
public static final int AVSTREAM_PARSE_HEADERS
public static final int AVSTREAM_PARSE_TIMESTAMPS
public static final int AVSTREAM_PARSE_FULL_ONCE
public static final int AVSTREAM_PARSE_FULL_RAW
public static final int AV_DISPOSITION_DEFAULT
public static final int AV_DISPOSITION_DUB
public static final int AV_DISPOSITION_ORIGINAL
notes for AV_DISPOSITION_DUB
,
Constant Field Valuespublic static final int AV_DISPOSITION_COMMENT
public static final int AV_DISPOSITION_LYRICS
public static final int AV_DISPOSITION_KARAOKE
public static final int AV_DISPOSITION_FORCED
public static final int AV_DISPOSITION_HEARING_IMPAIRED
public static final int AV_DISPOSITION_VISUAL_IMPAIRED
public static final int AV_DISPOSITION_CLEAN_EFFECTS
public static final int AV_DISPOSITION_ATTACHED_PIC
public static final int AV_DISPOSITION_TIMED_THUMBNAILS
public static final int AV_DISPOSITION_NON_DIEGETIC
public static final int AV_DISPOSITION_CAPTIONS
public static final int AV_DISPOSITION_DESCRIPTIONS
public static final int AV_DISPOSITION_METADATA
public static final int AV_DISPOSITION_DEPENDENT
public static final int AV_DISPOSITION_STILL_IMAGE
public static final int AV_DISPOSITION_MULTILAYER
public static final int AV_PTS_WRAP_IGNORE
public static final int AV_PTS_WRAP_ADD_OFFSET
public static final int AV_PTS_WRAP_SUB_OFFSET
public static final int AV_STREAM_GROUP_PARAMS_NONE
public static final int AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT
public static final int AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION
public static final int AV_STREAM_GROUP_PARAMS_TILE_GRID
public static final int AV_STREAM_GROUP_PARAMS_LCEVC
public static final int AV_PROGRAM_RUNNING
public static final int AVFMTCTX_NOHEADER
public static final int AVFMTCTX_UNSEEKABLE
public static final int AVFMT_DURATION_FROM_PTS
public static final int AVFMT_DURATION_FROM_STREAM
public static final int AVFMT_DURATION_FROM_BITRATE
public static final int AVSEEK_FLAG_BACKWARD
public static final int AVSEEK_FLAG_BYTE
public static final int AVSEEK_FLAG_ANY
public static final int AVSEEK_FLAG_FRAME
public static final int AVSTREAM_INIT_IN_WRITE_HEADER
public static final int AVSTREAM_INIT_IN_INIT_OUTPUT
public static final int AV_FRAME_FILENAME_FLAGS_MULTIPLE
public static final int AVFMT_TBCF_AUTO
public static final int AVFMT_TBCF_DECODER
public static final int AVFMT_TBCF_DEMUXER
public static final int AVFMT_TBCF_R_FRAMERATE
public static final int LIBAVFORMAT_VERSION_MAJOR
public static final boolean FF_API_COMPUTE_PKT_FIELDS2
public static final boolean FF_API_LAVF_SHORTEST
public static final boolean FF_API_ALLOW_FLUSH
public static final boolean FF_API_AVSTREAM_SIDE_DATA
public static final boolean FF_API_GET_DUR_ESTIMATE_METHOD
public static final boolean FF_API_INTERNAL_TIMING
public static final int FF_API_R_FRAME_RATE
public static final int LIBAVFORMAT_VERSION_MINOR
public static final int LIBAVFORMAT_VERSION_MICRO
public static final int LIBAVFORMAT_VERSION_INT
public static final int LIBAVFORMAT_BUILD
public static final String LIBAVFORMAT_IDENT
@NoException @Cast(value="const char*") public static BytePointer avio_find_protocol_name(@Cast(value="const char*") BytePointer url)
@NoException public static String avio_find_protocol_name(String url)
@NoException public static int avio_check(@Cast(value="const char*") BytePointer url, int flags)
@NoException public static int avio_check(String url, int flags)
@NoException public static int avio_open_dir(@Cast(value="AVIODirContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, @Cast(value="AVDictionary**") PointerPointer options)
s
- directory read context. Pointer to a NULL pointer must be passed.url
- directory to be listed.options
- A dictionary filled with protocol-private options. On return
this parameter will be destroyed and replaced with a dictionary
containing options that were not found. May be NULL.@NoException public static int avio_open_dir(@ByPtrPtr AVIODirContext s, @Cast(value="const char*") BytePointer url, @ByPtrPtr AVDictionary options)
@NoException public static int avio_open_dir(@ByPtrPtr AVIODirContext s, String url, @ByPtrPtr AVDictionary options)
@NoException public static int avio_read_dir(AVIODirContext s, @Cast(value="AVIODirEntry**") PointerPointer next)
s
- directory read context.next
- [out] next entry or NULL when no more entries.@NoException public static int avio_read_dir(AVIODirContext s, @ByPtrPtr AVIODirEntry next)
@NoException public static int avio_close_dir(@Cast(value="AVIODirContext**") PointerPointer s)
s
- directory read context.@NoException public static int avio_close_dir(@ByPtrPtr AVIODirContext s)
@NoException public static void avio_free_directory_entry(@Cast(value="AVIODirEntry**") PointerPointer entry)
entry
- entry to be freed.@NoException public static void avio_free_directory_entry(@ByPtrPtr AVIODirEntry entry)
@NoException public static AVIOContext avio_alloc_context(@Cast(value="unsigned char*") BytePointer buffer, int buffer_size, int write_flag, Pointer opaque, Read_packet_Pointer_BytePointer_int read_packet, Write_packet_Pointer_BytePointer_int write_packet, Seek_Pointer_long_int seek)
@NoException public static AVIOContext avio_alloc_context(@Cast(value="unsigned char*") ByteBuffer buffer, int buffer_size, int write_flag, Pointer opaque, Read_packet_Pointer_ByteBuffer_int read_packet, Write_packet_Pointer_ByteBuffer_int write_packet, Seek_Pointer_long_int seek)
@NoException public static AVIOContext avio_alloc_context(@Cast(value="unsigned char*") byte[] buffer, int buffer_size, int write_flag, Pointer opaque, Read_packet_Pointer_byte___int read_packet, Write_packet_Pointer_byte___int write_packet, Seek_Pointer_long_int seek)
@NoException public static void avio_context_free(@Cast(value="AVIOContext**") PointerPointer s)
s
- Double pointer to the IO context. This function will write NULL
into s.@NoException public static void avio_context_free(@ByPtrPtr AVIOContext s)
@NoException public static void avio_w8(AVIOContext s, int b)
@NoException public static void avio_write(AVIOContext s, @Cast(value="const unsigned char*") BytePointer buf, int size)
@NoException public static void avio_write(AVIOContext s, @Cast(value="const unsigned char*") ByteBuffer buf, int size)
@NoException public static void avio_write(AVIOContext s, @Cast(value="const unsigned char*") byte[] buf, int size)
@NoException public static void avio_wl64(AVIOContext s, @Cast(value="uint64_t") long val)
@NoException public static void avio_wb64(AVIOContext s, @Cast(value="uint64_t") long val)
@NoException public static void avio_wl32(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static void avio_wb32(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static void avio_wl24(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static void avio_wb24(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static void avio_wl16(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static void avio_wb16(AVIOContext s, @Cast(value="unsigned int") int val)
@NoException public static int avio_put_str(AVIOContext s, @Cast(value="const char*") BytePointer str)
@NoException public static int avio_put_str(AVIOContext s, String str)
@NoException public static int avio_put_str16le(AVIOContext s, @Cast(value="const char*") BytePointer str)
s
- the AVIOContextstr
- NULL-terminated UTF-8 string@NoException public static int avio_put_str16le(AVIOContext s, String str)
@NoException public static int avio_put_str16be(AVIOContext s, @Cast(value="const char*") BytePointer str)
s
- the AVIOContextstr
- NULL-terminated UTF-8 string@NoException public static int avio_put_str16be(AVIOContext s, String str)
@NoException public static void avio_write_marker(AVIOContext s, @Cast(value="int64_t") long time, @Cast(value="AVIODataMarkerType") int type)
s
- the AVIOContexttime
- the stream time the current bytestream pos corresponds to
(in AV_TIME_BASE units), or AV_NOPTS_VALUE if unknown or not
applicabletype
- the kind of data written starting at the current pos@NoException @Cast(value="int64_t") public static long avio_seek(AVIOContext s, @Cast(value="int64_t") long offset, int whence)
@NoException @Cast(value="int64_t") public static long avio_skip(AVIOContext s, @Cast(value="int64_t") long offset)
@NoException @Cast(value="int64_t") public static long avio_tell(AVIOContext s)
@NoException @Cast(value="int64_t") public static long avio_size(AVIOContext s)
@NoException public static int avio_feof(AVIOContext s)
@NoException public static int avio_vprintf(AVIOContext s, @Cast(value="const char*") BytePointer fmt, @ByVal @Cast(value="va_list*") Pointer ap)
@NoException public static int avio_vprintf(AVIOContext s, String fmt, @ByVal @Cast(value="va_list*") Pointer ap)
@NoException public static int avio_printf(AVIOContext s, @Cast(value="const char*") BytePointer fmt)
@NoException public static int avio_printf(AVIOContext s, String fmt)
@NoException public static void avio_print_string_array(AVIOContext s, @Cast(value="const char*const*") PointerPointer strings)
@NoException public static void avio_print_string_array(AVIOContext s, @Cast(value="const char*const*") @ByPtrPtr BytePointer strings)
@NoException public static void avio_print_string_array(AVIOContext s, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer strings)
@NoException public static void avio_print_string_array(AVIOContext s, @Cast(value="const char*const*") @ByPtrPtr byte[] strings)
@NoException public static void avio_flush(AVIOContext s)
@NoException public static int avio_read(AVIOContext s, @Cast(value="unsigned char*") BytePointer buf, int size)
@NoException public static int avio_read(AVIOContext s, @Cast(value="unsigned char*") ByteBuffer buf, int size)
@NoException public static int avio_read(AVIOContext s, @Cast(value="unsigned char*") byte[] buf, int size)
@NoException public static int avio_read_partial(AVIOContext s, @Cast(value="unsigned char*") BytePointer buf, int size)
@NoException public static int avio_read_partial(AVIOContext s, @Cast(value="unsigned char*") ByteBuffer buf, int size)
@NoException public static int avio_read_partial(AVIOContext s, @Cast(value="unsigned char*") byte[] buf, int size)
@NoException public static int avio_r8(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rl16(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rl24(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rl32(AVIOContext s)
@NoException @Cast(value="uint64_t") public static long avio_rl64(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rb16(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rb24(AVIOContext s)
@NoException @Cast(value="unsigned int") public static int avio_rb32(AVIOContext s)
@NoException @Cast(value="uint64_t") public static long avio_rb64(AVIOContext s)
@NoException public static int avio_get_str(AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
@NoException public static int avio_get_str(AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
@NoException public static int avio_get_str(AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
@NoException public static int avio_get_str16le(AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
@NoException public static int avio_get_str16le(AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
@NoException public static int avio_get_str16le(AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
@NoException public static int avio_get_str16be(AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
@NoException public static int avio_get_str16be(AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
@NoException public static int avio_get_str16be(AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
@NoException public static int avio_open(@Cast(value="AVIOContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, int flags)
s
- Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.url
- resource to accessflags
- flags which control how the resource indicated by url
is to be opened@NoException public static int avio_open(@ByPtrPtr AVIOContext s, @Cast(value="const char*") BytePointer url, int flags)
@NoException public static int avio_open(@ByPtrPtr AVIOContext s, String url, int flags)
@NoException public static int avio_open2(@Cast(value="AVIOContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, int flags, @Const AVIOInterruptCB int_cb, @Cast(value="AVDictionary**") PointerPointer options)
s
- Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.url
- resource to accessflags
- flags which control how the resource indicated by url
is to be openedint_cb
- an interrupt callback to be used at the protocols leveloptions
- A dictionary filled with protocol-private options. On return
this parameter will be destroyed and replaced with a dict containing options
that were not found. May be NULL.@NoException public static int avio_open2(@ByPtrPtr AVIOContext s, @Cast(value="const char*") BytePointer url, int flags, @Const AVIOInterruptCB int_cb, @ByPtrPtr AVDictionary options)
@NoException public static int avio_open2(@ByPtrPtr AVIOContext s, String url, int flags, @Const AVIOInterruptCB int_cb, @ByPtrPtr AVDictionary options)
@NoException public static int avio_close(AVIOContext s)
avio_closep
@NoException public static int avio_closep(@Cast(value="AVIOContext**") PointerPointer s)
avio_close
@NoException public static int avio_closep(@ByPtrPtr AVIOContext s)
@NoException public static int avio_open_dyn_buf(@Cast(value="AVIOContext**") PointerPointer s)
s
- new IO context@NoException public static int avio_open_dyn_buf(@ByPtrPtr AVIOContext s)
@NoException public static int avio_get_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") PointerPointer pbuffer)
s
- IO contextpbuffer
- pointer to a byte buffer@NoException public static int avio_get_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr BytePointer pbuffer)
@NoException public static int avio_get_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer pbuffer)
@NoException public static int avio_get_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr byte[] pbuffer)
@NoException public static int avio_close_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") PointerPointer pbuffer)
s
- IO contextpbuffer
- pointer to a byte buffer@NoException public static int avio_close_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr BytePointer pbuffer)
@NoException public static int avio_close_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer pbuffer)
@NoException public static int avio_close_dyn_buf(AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr byte[] pbuffer)
@NoException @Cast(value="const char*") public static BytePointer avio_enum_protocols(@Cast(value="void**") PointerPointer opaque, int output)
opaque
- A private pointer representing current protocol.
It must be a pointer to NULL on first iteration and will
be updated by successive calls to avio_enum_protocols.output
- If set to 1, iterate over output protocols,
otherwise over input protocols.@NoException @Cast(value="const char*") public static BytePointer avio_enum_protocols(@Cast(value="void**") @ByPtrPtr Pointer opaque, int output)
@NoException @Const public static AVClass avio_protocol_get_class(@Cast(value="const char*") BytePointer name)
@NoException @Const public static AVClass avio_protocol_get_class(String name)
@NoException public static int avio_pause(AVIOContext h, int pause)
h
- IO context from which to call the read_pause function pointerpause
- 1 for pause, 0 for resume@NoException @Cast(value="int64_t") public static long avio_seek_time(AVIOContext h, int stream_index, @Cast(value="int64_t") long timestamp, int flags)
h
- IO context from which to call the seek function pointersstream_index
- The stream index that the timestamp is relative to.
If stream_index is (-1) the timestamp should be in AV_TIME_BASE
units from the beginning of the presentation.
If a stream_index >= 0 is used and the protocol does not support
seeking based on component streams, the call will fail.timestamp
- timestamp in AVStream.time_base units
or if there is no stream specified then in AV_TIME_BASE units.flags
- Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE
and AVSEEK_FLAG_ANY. The protocol may silently ignore
AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will
fail if used and not supported.AVInputFormat::read_seek
@NoException public static int avio_read_to_bprint(AVIOContext h, @Cast(value="AVBPrint*") Pointer pb, @Cast(value="size_t") long max_size)
@NoException public static int avio_accept(AVIOContext s, @Cast(value="AVIOContext**") PointerPointer c)
s
- the server contextc
- the client context, must be unallocated@NoException public static int avio_accept(AVIOContext s, @ByPtrPtr AVIOContext c)
@NoException public static int avio_handshake(AVIOContext c)
c
- the client context to perform the handshake on@NoException public static int av_get_packet(AVIOContext s, AVPacket pkt, int size)
s
- associated IO contextpkt
- packetsize
- desired payload size@NoException public static int av_append_packet(AVIOContext s, AVPacket pkt, int size)
s
- associated IO contextpkt
- packetsize
- amount of data to read@MemberGetter public static int AVPROBE_SCORE_RETRY()
@MemberGetter public static int AVPROBE_SCORE_STREAM_RETRY()
@NoException public static int av_disposition_from_string(@Cast(value="const char*") BytePointer disp)
@NoException public static int av_disposition_from_string(String disp)
@NoException @Cast(value="const char*") public static BytePointer av_disposition_to_string(int disposition)
disposition
- a combination of AV_DISPOSITION_* values@NoException public static AVCodecParserContext av_stream_get_parser(@Const AVStream s)
@NoException public static void av_format_inject_global_side_data(AVFormatContext s)
av_packet_side_data_get()
@NoException @Cast(value="AVDurationEstimationMethod") @Deprecated public static int av_fmt_ctx_get_duration_estimation_method(@Const AVFormatContext ctx)
@NoException @Cast(value="unsigned") public static int avformat_version()
@NoException @Cast(value="const char*") public static BytePointer avformat_configuration()
@NoException @Cast(value="const char*") public static BytePointer avformat_license()
@NoException public static int avformat_network_init()
@NoException public static int avformat_network_deinit()
@NoException @Const public static AVOutputFormat av_muxer_iterate(@Cast(value="void**") PointerPointer opaque)
opaque
- a pointer where libavformat will store the iteration state. Must
point to NULL to start the iteration.@NoException @Const public static AVOutputFormat av_muxer_iterate(@Cast(value="void**") @ByPtrPtr Pointer opaque)
@NoException @Const public static AVInputFormat av_demuxer_iterate(@Cast(value="void**") PointerPointer opaque)
opaque
- a pointer where libavformat will store the iteration state.
Must point to NULL to start the iteration.@NoException @Const public static AVInputFormat av_demuxer_iterate(@Cast(value="void**") @ByPtrPtr Pointer opaque)
@NoException public static AVFormatContext avformat_alloc_context()
@NoException public static void avformat_free_context(AVFormatContext s)
s
- context to free@NoException @Const public static AVClass avformat_get_class()
av_opt_find().
@NoException @Const public static AVClass av_stream_get_class()
av_opt_find().
@NoException @Const public static AVClass av_stream_group_get_class()
av_opt_find().
@NoException @Cast(value="const char*") public static BytePointer avformat_stream_group_name(@Cast(value="AVStreamGroupParamsType") int type)
@NoException public static AVStreamGroup avformat_stream_group_create(AVFormatContext s, @Cast(value="AVStreamGroupParamsType") int type, @Cast(value="AVDictionary**") PointerPointer options)
s
- media file handleavformat_new_stream, avformat_stream_group_add_stream.
@NoException public static AVStreamGroup avformat_stream_group_create(AVFormatContext s, @Cast(value="AVStreamGroupParamsType") int type, @ByPtrPtr AVDictionary options)
@NoException public static AVStream avformat_new_stream(AVFormatContext s, @Const AVCodec c)
s
- media file handlec
- unused, does nothing@NoException public static int avformat_stream_group_add_stream(AVStreamGroup stg, AVStream st)
stg
- stream group belonging to a media file.st
- stream in the media file to add to the group.
\retval 0 success
\retval AVERROR(EEXIST) the stream was already in the group
\retval "another negative error code" legitimate errorsavformat_new_stream, avformat_stream_group_create.
@NoException @Deprecated public static int av_stream_add_side_data(AVStream st, @Cast(value="AVPacketSideDataType") int type, @Cast(value="uint8_t*") BytePointer data, @Cast(value="size_t") long size)
st
- streamtype
- side information typedata
- the side data array. It must be allocated with the av_malloc()
family of functions. The ownership of the data is transferred to
st.size
- side information size@NoException @Deprecated public static int av_stream_add_side_data(AVStream st, @Cast(value="AVPacketSideDataType") int type, @Cast(value="uint8_t*") ByteBuffer data, @Cast(value="size_t") long size)
@NoException @Deprecated public static int av_stream_add_side_data(AVStream st, @Cast(value="AVPacketSideDataType") int type, @Cast(value="uint8_t*") byte[] data, @Cast(value="size_t") long size)
@NoException @Cast(value="uint8_t*") @Deprecated public static BytePointer av_stream_new_side_data(AVStream stream, @Cast(value="AVPacketSideDataType") int type, @Cast(value="size_t") long size)
stream
- streamtype
- desired side information typesize
- side information size@NoException @Cast(value="uint8_t*") @Deprecated public static BytePointer av_stream_get_side_data(@Const AVStream stream, @Cast(value="AVPacketSideDataType") int type, @Cast(value="size_t*") SizeTPointer size)
stream
- streamtype
- desired side information typesize
- If supplied, *size will be set to the size of the side data
or to zero if the desired side data is not present.@NoException public static AVProgram av_new_program(AVFormatContext s, int id)
@NoException public static int avformat_alloc_output_context2(@Cast(value="AVFormatContext**") PointerPointer ctx, @Const AVOutputFormat oformat, @Cast(value="const char*") BytePointer format_name, @Cast(value="const char*") BytePointer filename)
ctx
- pointee is set to the created format context,
or to NULL in case of failureoformat
- format to use for allocating the context, if NULL
format_name and filename are used insteadformat_name
- the name of output format to use for allocating the
context, if NULL filename is used insteadfilename
- the name of the filename to use for allocating the
context, may be NULL@NoException public static int avformat_alloc_output_context2(@ByPtrPtr AVFormatContext ctx, @Const AVOutputFormat oformat, @Cast(value="const char*") BytePointer format_name, @Cast(value="const char*") BytePointer filename)
@NoException public static int avformat_alloc_output_context2(@ByPtrPtr AVFormatContext ctx, @Const AVOutputFormat oformat, String format_name, String filename)
@NoException @Const public static AVInputFormat av_find_input_format(@Cast(value="const char*") BytePointer short_name)
@NoException @Const public static AVInputFormat av_find_input_format(String short_name)
@NoException @Const public static AVInputFormat av_probe_input_format(@Const AVProbeData pd, int is_opened)
pd
- data to be probedis_opened
- Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.@NoException @Const public static AVInputFormat av_probe_input_format2(@Const AVProbeData pd, int is_opened, IntPointer score_max)
pd
- data to be probedis_opened
- Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.score_max
- A probe score larger that this is required to accept a
detection, the variable is set to the actual detection
score afterwards.
If the score is <= AVPROBE_SCORE_MAX / 4 it is recommended
to retry with a larger probe buffer.@NoException @Const public static AVInputFormat av_probe_input_format2(@Const AVProbeData pd, int is_opened, IntBuffer score_max)
@NoException @Const public static AVInputFormat av_probe_input_format2(@Const AVProbeData pd, int is_opened, int[] score_max)
@NoException @Const public static AVInputFormat av_probe_input_format3(@Const AVProbeData pd, int is_opened, IntPointer score_ret)
is_opened
- Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.score_ret
- The score of the best detection.@NoException @Const public static AVInputFormat av_probe_input_format3(@Const AVProbeData pd, int is_opened, IntBuffer score_ret)
@NoException @Const public static AVInputFormat av_probe_input_format3(@Const AVProbeData pd, int is_opened, int[] score_ret)
@NoException public static int av_probe_input_buffer2(AVIOContext pb, @Cast(value="const AVInputFormat**") PointerPointer fmt, @Cast(value="const char*") BytePointer url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
pb
- the bytestream to probefmt
- the input format is put hereurl
- the url of the streamlogctx
- the log contextoffset
- the offset within the bytestream to probe frommax_probe_size
- the maximum probe buffer size (zero for default)@NoException public static int av_probe_input_buffer2(AVIOContext pb, @Const @ByPtrPtr AVInputFormat fmt, @Cast(value="const char*") BytePointer url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
@NoException public static int av_probe_input_buffer2(AVIOContext pb, @Const @ByPtrPtr AVInputFormat fmt, String url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
@NoException public static int av_probe_input_buffer(AVIOContext pb, @Cast(value="const AVInputFormat**") PointerPointer fmt, @Cast(value="const char*") BytePointer url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
@NoException public static int av_probe_input_buffer(AVIOContext pb, @Const @ByPtrPtr AVInputFormat fmt, @Cast(value="const char*") BytePointer url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
@NoException public static int av_probe_input_buffer(AVIOContext pb, @Const @ByPtrPtr AVInputFormat fmt, String url, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
@NoException public static int avformat_open_input(@Cast(value="AVFormatContext**") PointerPointer ps, @Cast(value="const char*") BytePointer url, @Const AVInputFormat fmt, @Cast(value="AVDictionary**") PointerPointer options)
ps
- Pointer to user-supplied AVFormatContext (allocated by
avformat_alloc_context). May be a pointer to NULL, in
which case an AVFormatContext is allocated by this
function and written into ps.
Note that a user-supplied AVFormatContext will be freed
on failure.url
- URL of the stream to open.fmt
- If non-NULL, this parameter forces a specific input format.
Otherwise the format is autodetected.options
- A dictionary filled with AVFormatContext and demuxer-private
options.
On return this parameter will be destroyed and replaced with
a dict containing options that were not found. May be NULL.@NoException public static int avformat_open_input(@ByPtrPtr AVFormatContext ps, @Cast(value="const char*") BytePointer url, @Const AVInputFormat fmt, @ByPtrPtr AVDictionary options)
@NoException public static int avformat_open_input(@ByPtrPtr AVFormatContext ps, String url, @Const AVInputFormat fmt, @ByPtrPtr AVDictionary options)
@NoException public static int avformat_find_stream_info(AVFormatContext ic, @Cast(value="AVDictionary**") PointerPointer options)
ic
- media file handleoptions
- If non-NULL, an ic.nb_streams long array of pointers to
dictionaries, where i-th member contains options for
codec corresponding to i-th stream.
On return each dictionary will be filled with options that were not found.@NoException public static int avformat_find_stream_info(AVFormatContext ic, @ByPtrPtr AVDictionary options)
@NoException public static AVProgram av_find_program_from_stream(AVFormatContext ic, AVProgram last, int s)
ic
- media file handlelast
- the last found program, the search will start after this
program, or from the beginning if it is NULLs
- stream index@NoException public static void av_program_add_stream_index(AVFormatContext ac, int progid, @Cast(value="unsigned int") int idx)
@NoException public static int av_find_best_stream(AVFormatContext ic, @Cast(value="AVMediaType") int type, int wanted_stream_nb, int related_stream, @Cast(value="const AVCodec**") PointerPointer decoder_ret, int flags)
ic
- media file handletype
- stream type: video, audio, subtitles, etc.wanted_stream_nb
- user-requested stream number,
or -1 for automatic selectionrelated_stream
- try to find a stream related (eg. in the same
program) to this one, or -1 if nonedecoder_ret
- if non-NULL, returns the decoder for the
selected streamflags
- flags; none are currently defined@NoException public static int av_find_best_stream(AVFormatContext ic, @Cast(value="AVMediaType") int type, int wanted_stream_nb, int related_stream, @Const @ByPtrPtr AVCodec decoder_ret, int flags)
@NoException public static int av_read_frame(AVFormatContext s, AVPacket pkt)
@NoException public static int av_seek_frame(AVFormatContext s, int stream_index, @Cast(value="int64_t") long timestamp, int flags)
s
- media file handlestream_index
- If stream_index is (-1), a default stream is selected,
and timestamp is automatically converted from
AV_TIME_BASE units to the stream specific time_base.timestamp
- Timestamp in AVStream.time_base units or, if no stream
is specified, in AV_TIME_BASE units.flags
- flags which select direction and seeking mode@NoException public static int avformat_seek_file(AVFormatContext s, int stream_index, @Cast(value="int64_t") long min_ts, @Cast(value="int64_t") long ts, @Cast(value="int64_t") long max_ts, int flags)
s
- media file handlestream_index
- index of the stream which is used as time base referencemin_ts
- smallest acceptable timestampts
- target timestampmax_ts
- largest acceptable timestampflags
- flags@NoException public static int avformat_flush(AVFormatContext s)
s
- media file handle@NoException public static int av_read_play(AVFormatContext s)
@NoException public static int av_read_pause(AVFormatContext s)
@NoException public static void avformat_close_input(@Cast(value="AVFormatContext**") PointerPointer s)
@NoException public static void avformat_close_input(@ByPtrPtr AVFormatContext s)
@NoException public static int avformat_write_header(AVFormatContext s, @Cast(value="AVDictionary**") PointerPointer options)
s
- Media file handle, must be allocated with
avformat_alloc_context().
Its \ref AVFormatContext.oformat "oformat" field must be set
to the desired output format;
Its \ref AVFormatContext.pb "pb" field must be set to an
already opened ::AVIOContext.options
- An ::AVDictionary filled with AVFormatContext and
muxer-private options.
On return this parameter will be destroyed and replaced with
a dict containing options that were not found. May be NULL.
\retval AVSTREAM_INIT_IN_WRITE_HEADER On success, if the codec had not already been
fully initialized in avformat_init_output().
\retval AVSTREAM_INIT_IN_INIT_OUTPUT On success, if the codec had already been fully
initialized in avformat_init_output().
\retval AVERROR A negative AVERROR on failure.av_opt_find, av_dict_set, avio_open, av_oformat_next, avformat_init_output.
@NoException public static int avformat_write_header(AVFormatContext s, @ByPtrPtr AVDictionary options)
@NoException public static int avformat_init_output(AVFormatContext s, @Cast(value="AVDictionary**") PointerPointer options)
s
- Media file handle, must be allocated with
avformat_alloc_context().
Its \ref AVFormatContext.oformat "oformat" field must be set
to the desired output format;
Its \ref AVFormatContext.pb "pb" field must be set to an
already opened ::AVIOContext.options
- An ::AVDictionary filled with AVFormatContext and
muxer-private options.
On return this parameter will be destroyed and replaced with
a dict containing options that were not found. May be NULL.
\retval AVSTREAM_INIT_IN_WRITE_HEADER On success, if the codec requires
avformat_write_header to fully initialize.
\retval AVSTREAM_INIT_IN_INIT_OUTPUT On success, if the codec has been fully
initialized.
\retval AVERROR Anegative AVERROR on failure.av_opt_find, av_dict_set, avio_open, av_oformat_next, avformat_write_header.
@NoException public static int avformat_init_output(AVFormatContext s, @ByPtrPtr AVDictionary options)
@NoException public static int av_write_frame(AVFormatContext s, AVPacket pkt)
s
- media file handlepkt
- The packet containing the data to be written. Note that unlike
av_interleaved_write_frame(), this function does not take
ownership of the packet passed to it (though some muxers may make
an internal reference to the input packet).
av_interleaved_write_frame()
@NoException public static int av_interleaved_write_frame(AVFormatContext s, AVPacket pkt)
s
- media file handlepkt
- The packet containing the data to be written.
av_write_frame(), AVFormatContext.max_interleave_delta
@NoException public static int av_write_uncoded_frame(AVFormatContext s, int stream_index, AVFrame frame)
@NoException public static int av_interleaved_write_uncoded_frame(AVFormatContext s, int stream_index, AVFrame frame)
@NoException public static int av_write_uncoded_frame_query(AVFormatContext s, int stream_index)
@NoException public static int av_write_trailer(AVFormatContext s)
s
- media file handle@NoException @Const public static AVOutputFormat av_guess_format(@Cast(value="const char*") BytePointer short_name, @Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer mime_type)
short_name
- if non-NULL checks if short_name matches with the
names of the registered formatsfilename
- if non-NULL checks if filename terminates with the
extensions of the registered formatsmime_type
- if non-NULL checks if mime_type matches with the
MIME type of the registered formats@NoException @Const public static AVOutputFormat av_guess_format(String short_name, String filename, String mime_type)
@NoException @Cast(value="AVCodecID") public static int av_guess_codec(@Const AVOutputFormat fmt, @Cast(value="const char*") BytePointer short_name, @Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer mime_type, @Cast(value="AVMediaType") int type)
@NoException @Cast(value="AVCodecID") public static int av_guess_codec(@Const AVOutputFormat fmt, String short_name, String filename, String mime_type, @Cast(value="AVMediaType") int type)
@NoException public static int av_get_output_timestamp(AVFormatContext s, int stream, @Cast(value="int64_t*") LongPointer dts, @Cast(value="int64_t*") LongPointer wall)
s
- media file handlestream
- stream in the media filedts
- [out] DTS of the last packet output for the stream, in stream
time_base unitswall
- [out] absolute time when that packet whas output,
in microsecond
\retval 0 Success
\retval AVERROR(ENOSYS) The format does not support it
\note Some formats or devices may not allow to measure dts and wall
atomically.@NoException public static int av_get_output_timestamp(AVFormatContext s, int stream, @Cast(value="int64_t*") LongBuffer dts, @Cast(value="int64_t*") LongBuffer wall)
@NoException public static int av_get_output_timestamp(AVFormatContext s, int stream, @Cast(value="int64_t*") long[] dts, @Cast(value="int64_t*") long[] wall)
@NoException public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") BytePointer buf, int size)
f
- The file stream pointer where the dump should be sent to.buf
- buffersize
- buffer sizeav_hex_dump_log, av_pkt_dump2, av_pkt_dump_log2
@NoException public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") ByteBuffer buf, int size)
@NoException public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") byte[] buf, int size)
@NoException public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") BytePointer buf, int size)
avcl
- A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.level
- The importance level of the message, lower values signifying
higher importance.buf
- buffersize
- buffer sizeav_hex_dump, av_pkt_dump2, av_pkt_dump_log2
@NoException public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") ByteBuffer buf, int size)
@NoException public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") byte[] buf, int size)
@NoException public static void av_pkt_dump2(@Cast(value="FILE*") Pointer f, @Const AVPacket pkt, int dump_payload, @Const AVStream st)
f
- The file stream pointer where the dump should be sent to.pkt
- packet to dumpdump_payload
- True if the payload must be displayed, too.st
- AVStream that the packet belongs to@NoException public static void av_pkt_dump_log2(Pointer avcl, int level, @Const AVPacket pkt, int dump_payload, @Const AVStream st)
avcl
- A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.level
- The importance level of the message, lower values signifying
higher importance.pkt
- packet to dumpdump_payload
- True if the payload must be displayed, too.st
- AVStream that the packet belongs to@NoException @Cast(value="AVCodecID") public static int av_codec_get_id(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="unsigned int") int tag)
tags
- list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagtag
- codec tag to match to a codec ID@NoException @Cast(value="AVCodecID") public static int av_codec_get_id(@Const @ByPtrPtr AVCodecTag tags, @Cast(value="unsigned int") int tag)
@NoException @Cast(value="unsigned int") public static int av_codec_get_tag(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="AVCodecID") int id)
tags
- list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagid
- codec ID to match to a codec tag@NoException @Cast(value="unsigned int") public static int av_codec_get_tag(@Const @ByPtrPtr AVCodecTag tags, @Cast(value="AVCodecID") int id)
@NoException public static int av_codec_get_tag2(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntPointer tag)
tags
- list of supported codec_id - codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagid
- codec id that should be searched for in the listtag
- A pointer to the found tag@NoException public static int av_codec_get_tag2(@Const @ByPtrPtr AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntPointer tag)
@NoException public static int av_codec_get_tag2(@Const @ByPtrPtr AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntBuffer tag)
@NoException public static int av_codec_get_tag2(@Const @ByPtrPtr AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") int[] tag)
@NoException public static int av_find_default_stream_index(AVFormatContext s)
@NoException public static int av_index_search_timestamp(AVStream st, @Cast(value="int64_t") long timestamp, int flags)
st
- stream that the timestamp belongs totimestamp
- timestamp to retrieve the index forflags
- if AVSEEK_FLAG_BACKWARD then the returned index will correspond
to the timestamp which is <= the requested one, if backward
is 0, then it will be >=
if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwise@NoException public static int avformat_index_get_entries_count(@Const AVStream st)
st
- stream@NoException @Const public static AVIndexEntry avformat_index_get_entry(AVStream st, int idx)
st
- Stream containing the requested AVIndexEntry.idx
- The desired index.@NoException @Const public static AVIndexEntry avformat_index_get_entry_from_timestamp(AVStream st, @Cast(value="int64_t") long wanted_timestamp, int flags)
st
- Stream containing the requested AVIndexEntry.wanted_timestamp
- Timestamp to retrieve the index entry for.flags
- If AVSEEK_FLAG_BACKWARD then the returned entry will correspond
to the timestamp which is <= the requested one, if backward
is 0, then it will be >=
if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwise.@NoException public static int av_add_index_entry(AVStream st, @Cast(value="int64_t") long pos, @Cast(value="int64_t") long timestamp, int size, int distance, int flags)
timestamp
- timestamp in the time base of the given stream@NoException public static void av_url_split(@Cast(value="char*") BytePointer proto, int proto_size, @Cast(value="char*") BytePointer authorization, int authorization_size, @Cast(value="char*") BytePointer hostname, int hostname_size, IntPointer port_ptr, @Cast(value="char*") BytePointer path, int path_size, @Cast(value="const char*") BytePointer url)
proto
- the buffer for the protocolproto_size
- the size of the proto bufferauthorization
- the buffer for the authorizationauthorization_size
- the size of the authorization bufferhostname
- the buffer for the host namehostname_size
- the size of the hostname bufferport_ptr
- a pointer to store the port number inpath
- the buffer for the pathpath_size
- the size of the path bufferurl
- the URL to split@NoException public static void av_url_split(@Cast(value="char*") ByteBuffer proto, int proto_size, @Cast(value="char*") ByteBuffer authorization, int authorization_size, @Cast(value="char*") ByteBuffer hostname, int hostname_size, IntBuffer port_ptr, @Cast(value="char*") ByteBuffer path, int path_size, String url)
@NoException public static void av_url_split(@Cast(value="char*") byte[] proto, int proto_size, @Cast(value="char*") byte[] authorization, int authorization_size, @Cast(value="char*") byte[] hostname, int hostname_size, int[] port_ptr, @Cast(value="char*") byte[] path, int path_size, @Cast(value="const char*") BytePointer url)
@NoException public static void av_url_split(@Cast(value="char*") BytePointer proto, int proto_size, @Cast(value="char*") BytePointer authorization, int authorization_size, @Cast(value="char*") BytePointer hostname, int hostname_size, IntPointer port_ptr, @Cast(value="char*") BytePointer path, int path_size, String url)
@NoException public static void av_url_split(@Cast(value="char*") ByteBuffer proto, int proto_size, @Cast(value="char*") ByteBuffer authorization, int authorization_size, @Cast(value="char*") ByteBuffer hostname, int hostname_size, IntBuffer port_ptr, @Cast(value="char*") ByteBuffer path, int path_size, @Cast(value="const char*") BytePointer url)
@NoException public static void av_url_split(@Cast(value="char*") byte[] proto, int proto_size, @Cast(value="char*") byte[] authorization, int authorization_size, @Cast(value="char*") byte[] hostname, int hostname_size, int[] port_ptr, @Cast(value="char*") byte[] path, int path_size, String url)
@NoException public static void av_dump_format(AVFormatContext ic, int index, @Cast(value="const char*") BytePointer url, int is_output)
ic
- the context to analyzeindex
- index of the stream to dump information abouturl
- the URL to print, such as source or destination fileis_output
- Select whether the specified context is an input(0) or output(1)@NoException public static void av_dump_format(AVFormatContext ic, int index, String url, int is_output)
@NoException public static int av_get_frame_filename2(@Cast(value="char*") BytePointer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number, int flags)
buf
- destination bufferbuf_size
- destination buffer sizepath
- numbered sequence stringnumber
- frame numberflags
- AV_FRAME_FILENAME_FLAGS_*@NoException public static int av_get_frame_filename2(@Cast(value="char*") ByteBuffer buf, int buf_size, String path, int number, int flags)
@NoException public static int av_get_frame_filename2(@Cast(value="char*") byte[] buf, int buf_size, @Cast(value="const char*") BytePointer path, int number, int flags)
@NoException public static int av_get_frame_filename2(@Cast(value="char*") BytePointer buf, int buf_size, String path, int number, int flags)
@NoException public static int av_get_frame_filename2(@Cast(value="char*") ByteBuffer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number, int flags)
@NoException public static int av_get_frame_filename2(@Cast(value="char*") byte[] buf, int buf_size, String path, int number, int flags)
@NoException public static int av_get_frame_filename(@Cast(value="char*") BytePointer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
@NoException public static int av_get_frame_filename(@Cast(value="char*") ByteBuffer buf, int buf_size, String path, int number)
@NoException public static int av_get_frame_filename(@Cast(value="char*") byte[] buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
@NoException public static int av_get_frame_filename(@Cast(value="char*") BytePointer buf, int buf_size, String path, int number)
@NoException public static int av_get_frame_filename(@Cast(value="char*") ByteBuffer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
@NoException public static int av_get_frame_filename(@Cast(value="char*") byte[] buf, int buf_size, String path, int number)
@NoException public static int av_filename_number_test(@Cast(value="const char*") BytePointer filename)
filename
- possible numbered sequence string@NoException public static int av_filename_number_test(String filename)
@NoException public static int av_sdp_create(@Cast(value="AVFormatContext**") PointerPointer ac, int n_files, @Cast(value="char*") BytePointer buf, int size)
ac
- array of AVFormatContexts describing the RTP streams. If the
array is composed by only one context, such context can contain
multiple AVStreams (one AVStream per RTP stream). Otherwise,
all the contexts in the array (an AVCodecContext per RTP stream)
must contain only one AVStream.n_files
- number of AVCodecContexts contained in acbuf
- buffer where the SDP will be stored (must be allocated by
the caller)size
- the size of the buffer@NoException public static int av_sdp_create(@ByPtrPtr AVFormatContext ac, int n_files, @Cast(value="char*") BytePointer buf, int size)
@NoException public static int av_sdp_create(@ByPtrPtr AVFormatContext ac, int n_files, @Cast(value="char*") ByteBuffer buf, int size)
@NoException public static int av_sdp_create(@ByPtrPtr AVFormatContext ac, int n_files, @Cast(value="char*") byte[] buf, int size)
@NoException public static int av_match_ext(@Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer extensions)
filename
- file name to check against the given extensionsextensions
- a comma-separated list of filename extensions@NoException public static int av_match_ext(String filename, String extensions)
@NoException public static int avformat_query_codec(@Const AVOutputFormat ofmt, @Cast(value="AVCodecID") int codec_id, int std_compliance)
ofmt
- container to check for compatibilitycodec_id
- codec to potentially store in containerstd_compliance
- standards compliance level, one of FF_COMPLIANCE_*@NoException @Const public static AVCodecTag avformat_get_riff_video_tags()
@NoException @Const public static AVCodecTag avformat_get_riff_audio_tags()
@NoException @Const public static AVCodecTag avformat_get_mov_video_tags()
@NoException @Const public static AVCodecTag avformat_get_mov_audio_tags()
@NoException @ByVal public static AVRational av_guess_sample_aspect_ratio(AVFormatContext format, AVStream stream, AVFrame frame)
format
- the format context which the stream is part ofstream
- the stream which the frame is part offrame
- the frame with the aspect ratio to be determined@NoException @ByVal public static AVRational av_guess_frame_rate(AVFormatContext ctx, AVStream stream, AVFrame frame)
ctx
- the format context which the stream is part ofstream
- the stream which the frame is part offrame
- the frame for which the frame rate should be determined, may be NULL@NoException public static int avformat_match_stream_specifier(AVFormatContext s, AVStream st, @Cast(value="const char*") BytePointer spec)
@NoException public static int avformat_match_stream_specifier(AVFormatContext s, AVStream st, String spec)
@NoException public static int avformat_queue_attached_pictures(AVFormatContext s)
@NoException @Deprecated public static int avformat_transfer_internal_stream_timing_info(@Const AVOutputFormat ofmt, AVStream ost, @Const AVStream ist, @Cast(value="AVTimebaseSource") int copy_tb)
@NoException @Deprecated @ByVal public static AVRational av_stream_get_codec_timebase(@Const AVStream st)
@MemberGetter public static int LIBAVFORMAT_VERSION_INT()
@MemberGetter public static String LIBAVFORMAT_IDENT()
Copyright © 2024. All rights reserved.