public static class avformat.AVFormatContext extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
avformat.AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer
Called to open further IO contexts when needed for demuxing.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| 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_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
Don't merge side data but keep it separate.
|
static int |
AVFMT_FLAG_MP4A_LATM
Enable RTP MP4A-LATM payload
|
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_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(int size)
Native array allocator.
|
AVFormatContext(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
audio_codec_id()
Forced audio codec_id.
|
avformat.AVFormatContext |
audio_codec_id(int audio_codec_id) |
avcodec.AVCodec |
audio_codec()
Forced audio codec.
|
avformat.AVFormatContext |
audio_codec(avcodec.AVCodec audio_codec) |
int |
audio_preload()
Audio preload in microseconds.
|
avformat.AVFormatContext |
audio_preload(int audio_preload) |
avutil.AVClass |
av_class()
A class for logging and @ref avoptions.
|
int |
avio_flags()
avio flags, used to force AVIO_FLAG_DIRECT.
|
avformat.AVFormatContext |
avio_flags(int avio_flags) |
int |
avoid_negative_ts()
Avoid negative timestamps during muxing.
|
avformat.AVFormatContext |
avoid_negative_ts(int avoid_negative_ts) |
int |
bit_rate()
Total stream bitrate in bit/s, 0 if not
available.
|
avformat.AVFormatContext |
bit_rate(int bit_rate) |
PointerPointer |
chapters() |
avformat.AVChapter |
chapters(int i) |
avformat.AVFormatContext |
chapters(int i,
avformat.AVChapter chapters) |
BytePointer |
codec_whitelist()
',' separated list of allowed decoders.
|
avformat.AVFormatContext |
codec_whitelist(BytePointer codec_whitelist) |
avformat.av_format_control_message |
control_message_cb()
Callback used by devices to communicate with application.
|
avformat.AVFormatContext |
control_message_cb(avformat.av_format_control_message control_message_cb) |
int |
correct_ts_overflow()
Correct single timestamp overflows
- encoding: unused
- decoding: Set by user via AVOptions (NO direct access)
|
avformat.AVFormatContext |
correct_ts_overflow(int correct_ts_overflow) |
int |
ctx_flags()
Flags signalling stream properties.
|
avformat.AVFormatContext |
ctx_flags(int ctx_flags) |
int |
data_codec_id()
Forced Data codec_id.
|
avformat.AVFormatContext |
data_codec_id(int data_codec_id) |
avcodec.AVCodec |
data_codec()
Forced data codec.
|
avformat.AVFormatContext |
data_codec(avcodec.AVCodec data_codec) |
int |
debug()
Flags to enable debugging.
|
avformat.AVFormatContext |
debug(int debug) |
BytePointer |
dump_separator()
dump format separator.
|
avformat.AVFormatContext |
dump_separator(BytePointer dump_separator) |
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.
|
avformat.AVFormatContext |
duration_estimation_method(int duration_estimation_method) |
long |
duration()
Duration of the stream, in AV_TIME_BASE fractional
seconds.
|
avformat.AVFormatContext |
duration(long duration) |
int |
error_recognition()
Error recognition; higher values will detect more errors but may
misdetect some more or less valid parts as errors.
|
avformat.AVFormatContext |
error_recognition(int error_recognition) |
int |
event_flags()
Flags for the user to detect events happening on the file.
|
avformat.AVFormatContext |
event_flags(int event_flags) |
BytePointer |
filename() |
byte |
filename(int i)
input or output filename
- demuxing: set by avformat_open_input()
- muxing: may be set by the caller before avformat_write_header()
|
avformat.AVFormatContext |
filename(int i,
byte filename) |
int |
flags()
Flags modifying the (de)muxer behaviour.
|
avformat.AVFormatContext |
flags(int flags) |
int |
flush_packets()
Flush the I/O context after each packet.
|
avformat.AVFormatContext |
flush_packets(int flush_packets) |
int |
format_probesize()
number of bytes to read maximally to identify format.
|
avformat.AVFormatContext |
format_probesize(int format_probesize) |
BytePointer |
format_whitelist()
',' separated list of allowed demuxers.
|
avformat.AVFormatContext |
format_whitelist(BytePointer format_whitelist) |
int |
fps_probe_size()
The number of frames used for determining the framerate in
avformat_find_stream_info().
|
avformat.AVFormatContext |
fps_probe_size(int fps_probe_size) |
avformat.AVInputFormat |
iformat()
The input container format.
|
avformat.AVFormatContext |
iformat(avformat.AVInputFormat iformat) |
avformat.AVFormatInternal |
internal()
An opaque field for libavformat internal usage.
|
avformat.AVFormatContext |
internal(avformat.AVFormatInternal internal) |
avformat.AVIOInterruptCB |
interrupt_callback()
Custom interrupt callbacks for the I/O layer.
|
avformat.AVFormatContext |
interrupt_callback(avformat.AVIOInterruptCB interrupt_callback) |
int |
io_repositioned()
IO repositioned flag.
|
avformat.AVFormatContext |
io_repositioned(int io_repositioned) |
BytePointer |
key() |
int |
keylen() |
avformat.AVFormatContext |
keylen(int keylen) |
int |
max_analyze_duration()
Deprecated.
deprecated in favor of max_analyze_duration2
|
avformat.AVFormatContext |
max_analyze_duration(int max_analyze_duration) |
long |
max_analyze_duration2()
Maximum duration (in AV_TIME_BASE units) of the data read
from input in avformat_find_stream_info().
|
avformat.AVFormatContext |
max_analyze_duration2(long max_analyze_duration2) |
int |
max_chunk_duration()
Max chunk time in microseconds.
|
avformat.AVFormatContext |
max_chunk_duration(int max_chunk_duration) |
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.
|
avformat.AVFormatContext |
max_chunk_size(int max_chunk_size) |
int |
max_delay() |
avformat.AVFormatContext |
max_delay(int max_delay) |
int |
max_index_size()
Maximum amount of memory in bytes to use for the index of each stream.
|
avformat.AVFormatContext |
max_index_size(int max_index_size) |
long |
max_interleave_delta()
Maximum buffering duration for interleaving.
|
avformat.AVFormatContext |
max_interleave_delta(long max_interleave_delta) |
int |
max_picture_buffer()
Maximum amount of memory in bytes to use for buffering frames
obtained from realtime capture devices.
|
avformat.AVFormatContext |
max_picture_buffer(int max_picture_buffer) |
int |
max_ts_probe()
Maximum number of packets to read while waiting for the first timestamp.
|
avformat.AVFormatContext |
max_ts_probe(int max_ts_probe) |
int |
metadata_header_padding()
Number of bytes to be written as padding in a metadata header.
|
avformat.AVFormatContext |
metadata_header_padding(int metadata_header_padding) |
avutil.AVDictionary |
metadata()
Metadata that applies to the whole file.
|
avformat.AVFormatContext |
metadata(avutil.AVDictionary metadata) |
int |
nb_chapters()
Number of chapters in AVChapter array.
|
avformat.AVFormatContext |
nb_chapters(int nb_chapters) |
int |
nb_programs() |
avformat.AVFormatContext |
nb_programs(int nb_programs) |
int |
nb_streams()
Number of elements in AVFormatContext.streams.
|
avformat.AVFormatContext |
nb_streams(int nb_streams) |
avformat.AVOutputFormat |
oformat()
The output container format.
|
avformat.AVFormatContext |
oformat(avformat.AVOutputFormat oformat) |
Pointer |
opaque()
User data.
|
avformat.AVFormatContext |
opaque(Pointer opaque) |
avformat.AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer |
open_cb() |
avformat.AVFormatContext |
open_cb(avformat.AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer open_cb) |
long |
output_ts_offset()
Output timestamp offset, in microseconds.
|
avformat.AVFormatContext |
output_ts_offset(long output_ts_offset) |
int |
packet_size() |
avformat.AVFormatContext |
packet_size(int packet_size) |
avformat.AVIOContext |
pb()
I/O context.
|
avformat.AVFormatContext |
pb(avformat.AVIOContext pb) |
avformat.AVFormatContext |
position(int position) |
Pointer |
priv_data()
Format private data.
|
avformat.AVFormatContext |
priv_data(Pointer priv_data) |
int |
probe_score()
format probing score.
|
avformat.AVFormatContext |
probe_score(int probe_score) |
int |
probesize()
Deprecated.
deprecated in favor of probesize2
|
avformat.AVFormatContext |
probesize(int probesize) |
long |
probesize2()
Maximum size of the data read from input for determining
the input container format.
|
avformat.AVFormatContext |
probesize2(long probesize2) |
PointerPointer |
programs() |
avformat.AVProgram |
programs(int i) |
avformat.AVFormatContext |
programs(int i,
avformat.AVProgram programs) |
int |
seek2any()
Force seeking to any (also non key) frames.
|
avformat.AVFormatContext |
seek2any(int seek2any) |
long |
skip_initial_bytes()
Skip initial bytes when opening stream
- encoding: unused
- decoding: Set by user via AVOptions (NO direct access)
|
avformat.AVFormatContext |
skip_initial_bytes(long skip_initial_bytes) |
long |
start_time_realtime()
Start time of the stream in real world time, in microseconds
since the Unix epoch (00:00 1st January 1970).
|
avformat.AVFormatContext |
start_time_realtime(long start_time_realtime) |
long |
start_time()
Position of the first frame of the component, in
AV_TIME_BASE fractional seconds.
|
avformat.AVFormatContext |
start_time(long start_time) |
PointerPointer |
streams() |
avformat.AVStream |
streams(int i)
A list of all streams in the file.
|
avformat.AVFormatContext |
streams(int i,
avformat.AVStream streams) |
int |
strict_std_compliance()
Allow non-standard and experimental extension
|
avformat.AVFormatContext |
strict_std_compliance(int strict_std_compliance) |
int |
subtitle_codec_id()
Forced subtitle codec_id.
|
avformat.AVFormatContext |
subtitle_codec_id(int subtitle_codec_id) |
avcodec.AVCodec |
subtitle_codec()
Forced subtitle codec.
|
avformat.AVFormatContext |
subtitle_codec(avcodec.AVCodec subtitle_codec) |
int |
ts_id()
Transport stream id.
|
avformat.AVFormatContext |
ts_id(int ts_id) |
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.
|
avformat.AVFormatContext |
use_wallclock_as_timestamps(int use_wallclock_as_timestamps) |
int |
video_codec_id()
Forced video codec_id.
|
avformat.AVFormatContext |
video_codec_id(int video_codec_id) |
avcodec.AVCodec |
video_codec()
Forced video codec.
|
avformat.AVFormatContext |
video_codec(avcodec.AVCodec video_codec) |
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic 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 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(int size)
Pointer.position(int).public AVFormatContext(Pointer p)
Pointer.Pointer(Pointer).public avformat.AVFormatContext position(int position)
@MemberGetter @Const public avutil.AVClass av_class()
public avformat.AVInputFormat iformat()
public avformat.AVFormatContext iformat(avformat.AVInputFormat iformat)
public avformat.AVOutputFormat oformat()
public avformat.AVFormatContext oformat(avformat.AVOutputFormat oformat)
public Pointer priv_data()
public avformat.AVFormatContext priv_data(Pointer priv_data)
public avformat.AVIOContext pb()
public avformat.AVFormatContext pb(avformat.AVIOContext pb)
public int ctx_flags()
public avformat.AVFormatContext ctx_flags(int ctx_flags)
@Cast(value="unsigned int") public int nb_streams()
public avformat.AVFormatContext nb_streams(int nb_streams)
public avformat.AVStream streams(int i)
public avformat.AVFormatContext streams(int i, avformat.AVStream streams)
@MemberGetter @Cast(value="AVStream**") public PointerPointer streams()
@Cast(value="char") public byte filename(int i)
public avformat.AVFormatContext filename(int i, byte filename)
@MemberGetter @Cast(value="char*") public BytePointer filename()
public long start_time()
public avformat.AVFormatContext start_time(long start_time)
public long duration()
public avformat.AVFormatContext duration(long duration)
public int bit_rate()
public avformat.AVFormatContext bit_rate(int bit_rate)
public avformat.AVFormatContext packet_size(int packet_size)
public int max_delay()
public avformat.AVFormatContext max_delay(int max_delay)
public int flags()
public avformat.AVFormatContext flags(int flags)
@Cast(value="unsigned int") public int probesize()
public avformat.AVFormatContext probesize(int probesize)
@Deprecated public int max_analyze_duration()
public avformat.AVFormatContext max_analyze_duration(int max_analyze_duration)
@MemberGetter @Cast(value="const uint8_t*") public BytePointer key()
public int keylen()
public avformat.AVFormatContext keylen(int keylen)
public avformat.AVFormatContext nb_programs(int nb_programs)
public avformat.AVProgram programs(int i)
public avformat.AVFormatContext programs(int i, avformat.AVProgram programs)
@MemberGetter @Cast(value="AVProgram**") public PointerPointer programs()
@Cast(value="AVCodecID") public int video_codec_id()
public avformat.AVFormatContext video_codec_id(int video_codec_id)
@Cast(value="AVCodecID") public int audio_codec_id()
public avformat.AVFormatContext audio_codec_id(int audio_codec_id)
@Cast(value="AVCodecID") public int subtitle_codec_id()
public avformat.AVFormatContext subtitle_codec_id(int subtitle_codec_id)
@Cast(value="unsigned int") public int max_index_size()
public avformat.AVFormatContext max_index_size(int max_index_size)
@Cast(value="unsigned int") public int max_picture_buffer()
public avformat.AVFormatContext max_picture_buffer(int max_picture_buffer)
@Cast(value="unsigned int") public int nb_chapters()
public avformat.AVFormatContext nb_chapters(int nb_chapters)
public avformat.AVChapter chapters(int i)
public avformat.AVFormatContext chapters(int i, avformat.AVChapter chapters)
@MemberGetter @Cast(value="AVChapter**") public PointerPointer chapters()
public avutil.AVDictionary metadata()
public avformat.AVFormatContext metadata(avutil.AVDictionary metadata)
public long start_time_realtime()
public avformat.AVFormatContext start_time_realtime(long start_time_realtime)
public int fps_probe_size()
public avformat.AVFormatContext fps_probe_size(int fps_probe_size)
public int error_recognition()
public avformat.AVFormatContext error_recognition(int error_recognition)
@ByRef public avformat.AVIOInterruptCB interrupt_callback()
public avformat.AVFormatContext interrupt_callback(avformat.AVIOInterruptCB interrupt_callback)
public int debug()
public avformat.AVFormatContext debug(int debug)
public long max_interleave_delta()
public avformat.AVFormatContext max_interleave_delta(long max_interleave_delta)
public int strict_std_compliance()
AVCodecContext.strict_std_compliancepublic avformat.AVFormatContext strict_std_compliance(int strict_std_compliance)
public int event_flags()
public avformat.AVFormatContext event_flags(int event_flags)
public int max_ts_probe()
public avformat.AVFormatContext max_ts_probe(int max_ts_probe)
public int avoid_negative_ts()
public avformat.AVFormatContext avoid_negative_ts(int avoid_negative_ts)
public int ts_id()
public avformat.AVFormatContext ts_id(int ts_id)
public int audio_preload()
public avformat.AVFormatContext audio_preload(int audio_preload)
public int max_chunk_duration()
public avformat.AVFormatContext max_chunk_duration(int max_chunk_duration)
public int max_chunk_size()
public avformat.AVFormatContext max_chunk_size(int max_chunk_size)
public int use_wallclock_as_timestamps()
public avformat.AVFormatContext use_wallclock_as_timestamps(int use_wallclock_as_timestamps)
public int avio_flags()
public avformat.AVFormatContext avio_flags(int avio_flags)
@Cast(value="AVDurationEstimationMethod") public int duration_estimation_method()
public avformat.AVFormatContext duration_estimation_method(int duration_estimation_method)
public long skip_initial_bytes()
public avformat.AVFormatContext skip_initial_bytes(long skip_initial_bytes)
@Cast(value="unsigned int") public int correct_ts_overflow()
public avformat.AVFormatContext correct_ts_overflow(int correct_ts_overflow)
public int seek2any()
public avformat.AVFormatContext seek2any(int seek2any)
public int flush_packets()
public avformat.AVFormatContext flush_packets(int flush_packets)
public int probe_score()
public avformat.AVFormatContext probe_score(int probe_score)
public int format_probesize()
public avformat.AVFormatContext format_probesize(int format_probesize)
@Cast(value="char*") public BytePointer codec_whitelist()
public avformat.AVFormatContext codec_whitelist(BytePointer codec_whitelist)
@Cast(value="char*") public BytePointer format_whitelist()
public avformat.AVFormatContext format_whitelist(BytePointer format_whitelist)
public avformat.AVFormatInternal internal()
public avformat.AVFormatContext internal(avformat.AVFormatInternal internal)
public int io_repositioned()
public avformat.AVFormatContext io_repositioned(int io_repositioned)
public avcodec.AVCodec video_codec()
public avformat.AVFormatContext video_codec(avcodec.AVCodec video_codec)
public avcodec.AVCodec audio_codec()
public avformat.AVFormatContext audio_codec(avcodec.AVCodec audio_codec)
public avcodec.AVCodec subtitle_codec()
public avformat.AVFormatContext subtitle_codec(avcodec.AVCodec subtitle_codec)
public avcodec.AVCodec data_codec()
public avformat.AVFormatContext data_codec(avcodec.AVCodec data_codec)
public int metadata_header_padding()
public avformat.AVFormatContext metadata_header_padding(int metadata_header_padding)
public Pointer opaque()
public avformat.AVFormatContext opaque(Pointer opaque)
public avformat.av_format_control_message control_message_cb()
public avformat.AVFormatContext control_message_cb(avformat.av_format_control_message control_message_cb)
public long output_ts_offset()
public avformat.AVFormatContext output_ts_offset(long output_ts_offset)
public long max_analyze_duration2()
public avformat.AVFormatContext max_analyze_duration2(long max_analyze_duration2)
public long probesize2()
public avformat.AVFormatContext probesize2(long probesize2)
@Cast(value="uint8_t*") public BytePointer dump_separator()
public avformat.AVFormatContext dump_separator(BytePointer dump_separator)
@Cast(value="AVCodecID") public int data_codec_id()
public avformat.AVFormatContext data_codec_id(int data_codec_id)
public avformat.AVFormatContext.Open_cb_AVFormatContext_PointerPointer_BytePointer_int_AVIOInterruptCB_PointerPointer open_cb()
Copyright © 2015. All Rights Reserved.