@Properties(inherit=avformat.class) public class AVFormatContext extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
AVFormatContext.Io_close_AVFormatContext_AVIOContext
A callback for closing the streams opened with AVFormatContext.io_open().
|
static class |
AVFormatContext.Io_open_AVFormatContext_PointerPointer_BytePointer_int_PointerPointer
A callback for opening new IO streams.
|
static class |
AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer
Deprecated.
Use io_open and io_close.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
AVFMT_AVOID_NEG_TS_AUTO
Enabled when required by target format
|
static int |
AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE
Shift timestamps so they are non negative
|
static int |
AVFMT_AVOID_NEG_TS_MAKE_ZERO
Shift timestamps so that they start at 0
|
static int |
AVFMT_EVENT_FLAG_METADATA_UPDATED
The call resulted in updated metadata.
|
static int |
AVFMT_FLAG_AUTO_BSF
Add bitstream filters as requested by the muxer
|
static int |
AVFMT_FLAG_BITEXACT
When muxing, try to avoid writing any random/volatile data to the output.
|
static int |
AVFMT_FLAG_CUSTOM_IO
The caller has supplied a custom AVIOContext, don't avio_close() it.
|
static int |
AVFMT_FLAG_DISCARD_CORRUPT
Discard frames marked corrupted
|
static int |
AVFMT_FLAG_FAST_SEEK
Enable fast, but inaccurate seeks for some formats
|
static int |
AVFMT_FLAG_FLUSH_PACKETS
Flush the AVIOContext every packet.
|
static int |
AVFMT_FLAG_GENPTS
Generate missing pts even if it requires parsing future frames.
|
static int |
AVFMT_FLAG_IGNDTS
Ignore DTS on frames that contain both DTS & PTS
|
static int |
AVFMT_FLAG_IGNIDX
Ignore index.
|
static int |
AVFMT_FLAG_KEEP_SIDE_DATA
Deprecated, does nothing.
|
static int |
AVFMT_FLAG_MP4A_LATM
Deprecated, does nothing.
|
static int |
AVFMT_FLAG_NOBUFFER
Do not buffer frames when possible
|
static int |
AVFMT_FLAG_NOFILLIN
Do not infer any values from other values, just return what is stored in the container
|
static int |
AVFMT_FLAG_NONBLOCK
Do not block when reading packets from input.
|
static int |
AVFMT_FLAG_NOPARSE
Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the fillin code works on frames and no parsing -> no frames.
|
static int |
AVFMT_FLAG_PRIV_OPT
Enable use of private options by delaying codec open (this could be made default once all code is converted)
|
static int |
AVFMT_FLAG_SHORTEST
Stop muxing when the shortest stream stops.
|
static int |
AVFMT_FLAG_SORT_DTS
try to interleave outputted packets by dts (using this flag can slow demuxing down)
|
static int |
FF_FDEBUG_TS |
Constructor and Description |
---|
AVFormatContext()
Default native constructor.
|
AVFormatContext(long size)
Native array allocator.
|
AVFormatContext(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
audio_codec_id()
Forced audio codec_id.
|
AVFormatContext |
audio_codec_id(int setter) |
AVCodec |
audio_codec()
Forced audio codec.
|
AVFormatContext |
audio_codec(AVCodec setter) |
int |
audio_preload()
Audio preload in microseconds.
|
AVFormatContext |
audio_preload(int setter) |
AVClass |
av_class()
A class for logging and \ref avoptions.
|
AVFormatContext |
av_class(AVClass setter) |
int |
avio_flags()
avio flags, used to force AVIO_FLAG_DIRECT.
|
AVFormatContext |
avio_flags(int setter) |
int |
avoid_negative_ts()
Avoid negative timestamps during muxing.
|
AVFormatContext |
avoid_negative_ts(int setter) |
long |
bit_rate()
Total stream bitrate in bit/s, 0 if not
available.
|
AVFormatContext |
bit_rate(long setter) |
PointerPointer |
chapters() |
AVChapter |
chapters(int i) |
AVFormatContext |
chapters(int i,
AVChapter setter) |
AVFormatContext |
chapters(PointerPointer setter) |
BytePointer |
codec_whitelist()
',' separated list of allowed decoders.
|
AVFormatContext |
codec_whitelist(BytePointer setter) |
av_format_control_message |
control_message_cb()
Callback used by devices to communicate with application.
|
AVFormatContext |
control_message_cb(av_format_control_message setter) |
int |
correct_ts_overflow()
Correct single timestamp overflows
- encoding: unused
- decoding: Set by user
|
AVFormatContext |
correct_ts_overflow(int setter) |
int |
ctx_flags()
Flags signalling stream properties.
|
AVFormatContext |
ctx_flags(int setter) |
int |
data_codec_id()
Forced Data codec_id.
|
AVFormatContext |
data_codec_id(int setter) |
AVCodec |
data_codec()
Forced data codec.
|
AVFormatContext |
data_codec(AVCodec setter) |
int |
debug()
Flags to enable debugging.
|
AVFormatContext |
debug(int setter) |
BytePointer |
dump_separator()
dump format separator.
|
AVFormatContext |
dump_separator(BytePointer setter) |
int |
duration_estimation_method()
The duration field can be estimated through various ways, and this field can be used
to know how the duration was estimated.
|
AVFormatContext |
duration_estimation_method(int setter) |
long |
duration()
Duration of the stream, in AV_TIME_BASE fractional
seconds.
|
AVFormatContext |
duration(long setter) |
int |
error_recognition()
Error recognition; higher values will detect more errors but may
misdetect some more or less valid parts as errors.
|
AVFormatContext |
error_recognition(int setter) |
int |
event_flags()
Flags for the user to detect events happening on the file.
|
AVFormatContext |
event_flags(int setter) |
BytePointer |
filename()
Deprecated.
|
byte |
filename(int i)
Deprecated.
Use url instead.
|
AVFormatContext |
filename(int i,
byte setter) |
int |
flags()
Flags modifying the (de)muxer behaviour.
|
AVFormatContext |
flags(int setter) |
int |
flush_packets()
Flush the I/O context after each packet.
|
AVFormatContext |
flush_packets(int setter) |
int |
format_probesize()
number of bytes to read maximally to identify format.
|
AVFormatContext |
format_probesize(int setter) |
BytePointer |
format_whitelist()
',' separated list of allowed demuxers.
|
AVFormatContext |
format_whitelist(BytePointer setter) |
int |
fps_probe_size()
The number of frames used for determining the framerate in
avformat_find_stream_info().
|
AVFormatContext |
fps_probe_size(int setter) |
AVInputFormat |
iformat()
The input container format.
|
AVFormatContext |
iformat(AVInputFormat setter) |
AVFormatInternal |
internal()
An opaque field for libavformat internal usage.
|
AVFormatContext |
internal(AVFormatInternal setter) |
AVIOInterruptCB |
interrupt_callback()
Custom interrupt callbacks for the I/O layer.
|
AVFormatContext |
interrupt_callback(AVIOInterruptCB setter) |
AVFormatContext.Io_close_AVFormatContext_AVIOContext |
io_close() |
AVFormatContext |
io_close(AVFormatContext.Io_close_AVFormatContext_AVIOContext setter) |
AVFormatContext.Io_open_AVFormatContext_PointerPointer_BytePointer_int_PointerPointer |
io_open() |
AVFormatContext |
io_open(AVFormatContext.Io_open_AVFormatContext_PointerPointer_BytePointer_int_PointerPointer setter) |
int |
io_repositioned()
IO repositioned flag.
|
AVFormatContext |
io_repositioned(int setter) |
BytePointer |
key() |
AVFormatContext |
key(BytePointer setter) |
int |
keylen() |
AVFormatContext |
keylen(int setter) |
long |
max_analyze_duration()
Maximum duration (in AV_TIME_BASE units) of the data read
from input in avformat_find_stream_info().
|
AVFormatContext |
max_analyze_duration(long setter) |
int |
max_chunk_duration()
Max chunk time in microseconds.
|
AVFormatContext |
max_chunk_duration(int setter) |
int |
max_chunk_size()
Max chunk size in bytes
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
|
AVFormatContext |
max_chunk_size(int setter) |
int |
max_delay() |
AVFormatContext |
max_delay(int setter) |
int |
max_index_size()
Maximum amount of memory in bytes to use for the index of each stream.
|
AVFormatContext |
max_index_size(int setter) |
long |
max_interleave_delta()
Maximum buffering duration for interleaving.
|
AVFormatContext |
max_interleave_delta(long setter) |
int |
max_picture_buffer()
Maximum amount of memory in bytes to use for buffering frames
obtained from realtime capture devices.
|
AVFormatContext |
max_picture_buffer(int setter) |
int |
max_streams()
The maximum number of streams.
|
AVFormatContext |
max_streams(int setter) |
int |
max_ts_probe()
Maximum number of packets to read while waiting for the first timestamp.
|
AVFormatContext |
max_ts_probe(int setter) |
int |
metadata_header_padding()
Number of bytes to be written as padding in a metadata header.
|
AVFormatContext |
metadata_header_padding(int setter) |
AVDictionary |
metadata()
Metadata that applies to the whole file.
|
AVFormatContext |
metadata(AVDictionary setter) |
int |
nb_chapters()
Number of chapters in AVChapter array.
|
AVFormatContext |
nb_chapters(int setter) |
int |
nb_programs() |
AVFormatContext |
nb_programs(int setter) |
int |
nb_streams()
Number of elements in AVFormatContext.streams.
|
AVFormatContext |
nb_streams(int setter) |
AVOutputFormat |
oformat()
The output container format.
|
AVFormatContext |
oformat(AVOutputFormat setter) |
Pointer |
opaque()
User data.
|
AVFormatContext |
opaque(Pointer setter) |
AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer |
open_cb() |
AVFormatContext |
open_cb(AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer setter) |
long |
output_ts_offset()
Output timestamp offset, in microseconds.
|
AVFormatContext |
output_ts_offset(long setter) |
int |
packet_size() |
AVFormatContext |
packet_size(int setter) |
AVIOContext |
pb()
I/O context.
|
AVFormatContext |
pb(AVIOContext setter) |
AVFormatContext |
position(long position) |
Pointer |
priv_data()
Format private data.
|
AVFormatContext |
priv_data(Pointer setter) |
int |
probe_score()
format probing score.
|
AVFormatContext |
probe_score(int setter) |
long |
probesize()
Maximum size of the data read from input for determining
the input container format.
|
AVFormatContext |
probesize(long setter) |
PointerPointer |
programs() |
AVProgram |
programs(int i) |
AVFormatContext |
programs(int i,
AVProgram setter) |
AVFormatContext |
programs(PointerPointer setter) |
BytePointer |
protocol_blacklist()
',' separated list of disallowed protocols.
|
AVFormatContext |
protocol_blacklist(BytePointer setter) |
BytePointer |
protocol_whitelist()
',' separated list of allowed protocols.
|
AVFormatContext |
protocol_whitelist(BytePointer setter) |
int |
seek2any()
Force seeking to any (also non key) frames.
|
AVFormatContext |
seek2any(int setter) |
int |
skip_estimate_duration_from_pts()
Skip duration calcuation in estimate_timings_from_pts.
|
AVFormatContext |
skip_estimate_duration_from_pts(int setter) |
long |
skip_initial_bytes()
Skip initial bytes when opening stream
- encoding: unused
- decoding: Set by user
|
AVFormatContext |
skip_initial_bytes(long setter) |
long |
start_time_realtime()
Start time of the stream in real world time, in microseconds
since the Unix epoch (00:00 1st January 1970).
|
AVFormatContext |
start_time_realtime(long setter) |
long |
start_time()
Position of the first frame of the component, in
AV_TIME_BASE fractional seconds.
|
AVFormatContext |
start_time(long setter) |
PointerPointer |
streams() |
AVStream |
streams(int i)
A list of all streams in the file.
|
AVFormatContext |
streams(int i,
AVStream setter) |
AVFormatContext |
streams(PointerPointer setter) |
int |
strict_std_compliance()
Allow non-standard and experimental extension
|
AVFormatContext |
strict_std_compliance(int setter) |
int |
subtitle_codec_id()
Forced subtitle codec_id.
|
AVFormatContext |
subtitle_codec_id(int setter) |
AVCodec |
subtitle_codec()
Forced subtitle codec.
|
AVFormatContext |
subtitle_codec(AVCodec setter) |
int |
ts_id()
Transport stream id.
|
AVFormatContext |
ts_id(int setter) |
BytePointer |
url()
input or output URL.
|
AVFormatContext |
url(BytePointer setter) |
int |
use_wallclock_as_timestamps()
forces the use of wallclock timestamps as pts/dts of packets
This has undefined results in the presence of B frames.
|
AVFormatContext |
use_wallclock_as_timestamps(int setter) |
int |
video_codec_id()
Forced video codec_id.
|
AVFormatContext |
video_codec_id(int setter) |
AVCodec |
video_codec()
Forced video codec.
|
AVFormatContext |
video_codec(AVCodec setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int AVFMT_FLAG_GENPTS
public static final int AVFMT_FLAG_IGNIDX
public static final int AVFMT_FLAG_NONBLOCK
public static final int AVFMT_FLAG_IGNDTS
public static final int AVFMT_FLAG_NOFILLIN
public static final int AVFMT_FLAG_NOPARSE
public static final int AVFMT_FLAG_NOBUFFER
public static final int AVFMT_FLAG_CUSTOM_IO
public static final int AVFMT_FLAG_DISCARD_CORRUPT
public static final int AVFMT_FLAG_FLUSH_PACKETS
public static final int AVFMT_FLAG_BITEXACT
public static final int AVFMT_FLAG_MP4A_LATM
public static final int AVFMT_FLAG_SORT_DTS
public static final int AVFMT_FLAG_PRIV_OPT
public static final int AVFMT_FLAG_KEEP_SIDE_DATA
public static final int AVFMT_FLAG_FAST_SEEK
public static final int AVFMT_FLAG_SHORTEST
public static final int AVFMT_FLAG_AUTO_BSF
public static final int FF_FDEBUG_TS
public static final int AVFMT_EVENT_FLAG_METADATA_UPDATED
public static final int AVFMT_AVOID_NEG_TS_AUTO
public static final int AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE
public static final int AVFMT_AVOID_NEG_TS_MAKE_ZERO
public AVFormatContext()
public AVFormatContext(long size)
Pointer.position(long)
.public AVFormatContext(Pointer p)
Pointer.Pointer(Pointer)
.public AVFormatContext position(long position)
@Const public AVClass av_class()
public AVFormatContext av_class(AVClass setter)
public AVInputFormat iformat()
public AVFormatContext iformat(AVInputFormat setter)
public AVOutputFormat oformat()
public AVFormatContext oformat(AVOutputFormat setter)
public Pointer priv_data()
public AVFormatContext priv_data(Pointer setter)
public AVIOContext pb()
public AVFormatContext pb(AVIOContext setter)
public int ctx_flags()
public AVFormatContext ctx_flags(int setter)
@Cast(value="unsigned int") public int nb_streams()
public AVFormatContext nb_streams(int setter)
public AVStream streams(int i)
public AVFormatContext streams(int i, AVStream setter)
@Cast(value="AVStream**") public PointerPointer streams()
public AVFormatContext streams(PointerPointer setter)
@Cast(value="char") @Deprecated public byte filename(int i)
public AVFormatContext filename(int i, byte setter)
@MemberGetter @Cast(value="char*") @Deprecated public BytePointer filename()
@Cast(value="char*") public BytePointer url()
public AVFormatContext url(BytePointer setter)
@Cast(value="int64_t") public long start_time()
public AVFormatContext start_time(long setter)
@Cast(value="int64_t") public long duration()
public AVFormatContext duration(long setter)
@Cast(value="int64_t") public long bit_rate()
public AVFormatContext bit_rate(long setter)
public AVFormatContext packet_size(int setter)
public int max_delay()
public AVFormatContext max_delay(int setter)
public int flags()
public AVFormatContext flags(int setter)
@Cast(value="int64_t") public long probesize()
public AVFormatContext probesize(long setter)
@Cast(value="int64_t") public long max_analyze_duration()
public AVFormatContext max_analyze_duration(long setter)
@Cast(value="const uint8_t*") public BytePointer key()
public AVFormatContext key(BytePointer setter)
public int keylen()
public AVFormatContext keylen(int setter)
public AVFormatContext nb_programs(int setter)
public AVProgram programs(int i)
public AVFormatContext programs(int i, AVProgram setter)
@Cast(value="AVProgram**") public PointerPointer programs()
public AVFormatContext programs(PointerPointer setter)
@Cast(value="AVCodecID") public int video_codec_id()
public AVFormatContext video_codec_id(int setter)
@Cast(value="AVCodecID") public int audio_codec_id()
public AVFormatContext audio_codec_id(int setter)
@Cast(value="AVCodecID") public int subtitle_codec_id()
public AVFormatContext subtitle_codec_id(int setter)
@Cast(value="unsigned int") public int max_index_size()
public AVFormatContext max_index_size(int setter)
@Cast(value="unsigned int") public int max_picture_buffer()
public AVFormatContext max_picture_buffer(int setter)
@Cast(value="unsigned int") public int nb_chapters()
public AVFormatContext nb_chapters(int setter)
public AVChapter chapters(int i)
public AVFormatContext chapters(int i, AVChapter setter)
@Cast(value="AVChapter**") public PointerPointer chapters()
public AVFormatContext chapters(PointerPointer setter)
public AVDictionary metadata()
public AVFormatContext metadata(AVDictionary setter)
@Cast(value="int64_t") public long start_time_realtime()
public AVFormatContext start_time_realtime(long setter)
public int fps_probe_size()
public AVFormatContext fps_probe_size(int setter)
public int error_recognition()
public AVFormatContext error_recognition(int setter)
@ByRef public AVIOInterruptCB interrupt_callback()
public AVFormatContext interrupt_callback(AVIOInterruptCB setter)
public int debug()
public AVFormatContext debug(int setter)
@Cast(value="int64_t") public long max_interleave_delta()
public AVFormatContext max_interleave_delta(long setter)
public int strict_std_compliance()
AVCodecContext.strict_std_compliance
public AVFormatContext strict_std_compliance(int setter)
public int event_flags()
public AVFormatContext event_flags(int setter)
public int max_ts_probe()
public AVFormatContext max_ts_probe(int setter)
public int avoid_negative_ts()
public AVFormatContext avoid_negative_ts(int setter)
public int ts_id()
public AVFormatContext ts_id(int setter)
public int audio_preload()
public AVFormatContext audio_preload(int setter)
public int max_chunk_duration()
public AVFormatContext max_chunk_duration(int setter)
public int max_chunk_size()
public AVFormatContext max_chunk_size(int setter)
public int use_wallclock_as_timestamps()
public AVFormatContext use_wallclock_as_timestamps(int setter)
public int avio_flags()
public AVFormatContext avio_flags(int setter)
@Cast(value="AVDurationEstimationMethod") public int duration_estimation_method()
public AVFormatContext duration_estimation_method(int setter)
@Cast(value="int64_t") public long skip_initial_bytes()
public AVFormatContext skip_initial_bytes(long setter)
@Cast(value="unsigned int") public int correct_ts_overflow()
public AVFormatContext correct_ts_overflow(int setter)
public int seek2any()
public AVFormatContext seek2any(int setter)
public int flush_packets()
public AVFormatContext flush_packets(int setter)
public int probe_score()
public AVFormatContext probe_score(int setter)
public int format_probesize()
public AVFormatContext format_probesize(int setter)
@Cast(value="char*") public BytePointer codec_whitelist()
public AVFormatContext codec_whitelist(BytePointer setter)
@Cast(value="char*") public BytePointer format_whitelist()
public AVFormatContext format_whitelist(BytePointer setter)
public AVFormatInternal internal()
public AVFormatContext internal(AVFormatInternal setter)
public int io_repositioned()
public AVFormatContext io_repositioned(int setter)
public AVCodec video_codec()
public AVFormatContext video_codec(AVCodec setter)
public AVCodec audio_codec()
public AVFormatContext audio_codec(AVCodec setter)
public AVCodec subtitle_codec()
public AVFormatContext subtitle_codec(AVCodec setter)
public AVCodec data_codec()
public AVFormatContext data_codec(AVCodec setter)
public int metadata_header_padding()
public AVFormatContext metadata_header_padding(int setter)
public Pointer opaque()
public AVFormatContext opaque(Pointer setter)
public av_format_control_message control_message_cb()
public AVFormatContext control_message_cb(av_format_control_message setter)
@Cast(value="int64_t") public long output_ts_offset()
public AVFormatContext output_ts_offset(long setter)
@Cast(value="uint8_t*") public BytePointer dump_separator()
public AVFormatContext dump_separator(BytePointer setter)
@Cast(value="AVCodecID") public int data_codec_id()
public AVFormatContext data_codec_id(int setter)
public AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer open_cb()
public AVFormatContext open_cb(AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer setter)
@Cast(value="char*") public BytePointer protocol_whitelist()
public AVFormatContext protocol_whitelist(BytePointer setter)
public AVFormatContext.Io_open_AVFormatContext_PointerPointer_BytePointer_int_PointerPointer io_open()
public AVFormatContext io_open(AVFormatContext.Io_open_AVFormatContext_PointerPointer_BytePointer_int_PointerPointer setter)
public AVFormatContext.Io_close_AVFormatContext_AVIOContext io_close()
public AVFormatContext io_close(AVFormatContext.Io_close_AVFormatContext_AVIOContext setter)
@Cast(value="char*") public BytePointer protocol_blacklist()
public AVFormatContext protocol_blacklist(BytePointer setter)
public int max_streams()
public AVFormatContext max_streams(int setter)
public int skip_estimate_duration_from_pts()
public AVFormatContext skip_estimate_duration_from_pts(int setter)
Copyright © 2020. All rights reserved.