Go to the documentation of this file.
46 #define AMV_STREAM_COUNT 2
47 #define AMV_STREAM_VIDEO 0
48 #define AMV_STREAM_AUDIO 1
49 #define AMV_VIDEO_STRH_SIZE 56
50 #define AMV_VIDEO_STRF_SIZE 36
51 #define AMV_AUDIO_STRH_SIZE 48
52 #define AMV_AUDIO_STRF_SIZE 20
173 "Please change video frame rate. Suggested rates: 10,14,15,18,21,25,30\n");
335 stream_index = (stream_index + 1) %
s->nb_streams;
412 .mime_type =
"video/amv",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int64_t lastpts[AMV_STREAM_COUNT]
#define AV_LOG_WARNING
Something somehow does not look correct.
static av_cold int init(AVCodecContext *avctx)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
This struct describes the properties of an encoded stream.
AVOutputFormat ff_amv_muxer
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
static int64_t amv_start_tag(AVIOContext *pb, const char *tag)
static void amv_deinit(AVFormatContext *s)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
static int amv_pad(AVFormatContext *s, AVPacket *pkt)
#define AMV_VIDEO_STRF_SIZE
void avio_wl16(AVIOContext *s, unsigned int val)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
#define ss(width, name, subs,...)
static void amv_write_vlist(AVFormatContext *s, AVCodecParameters *par)
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int frame_size
Audio only.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
static av_cold int amv_init(AVFormatContext *s)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
static int amv_write_packet(AVFormatContext *s, AVPacket *pkt)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
static int write_trailer(AVFormatContext *s1)
#define AMV_AUDIO_STRF_SIZE
@ AV_CODEC_ID_ADPCM_IMA_AMV
void avio_w8(AVIOContext *s, int b)
#define AMV_AUDIO_STRH_SIZE
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
int sample_rate
Audio only.
static int amv_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void avio_wl32(AVIOContext *s, unsigned int val)
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
void ff_end_tag(AVIOContext *pb, int64_t start)
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
#define AV_TIME_BASE
Internal time base represented as integer.
int block_align
Audio only.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
static int amv_write_trailer(AVFormatContext *s)
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
static int amv_write_header(AVFormatContext *s)
static int bad(InterplayACMContext *s, unsigned ind, unsigned col)
static const struct exif_tag tag_list[]
#define AMV_VIDEO_STRH_SIZE
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
void ffio_fill(AVIOContext *s, int b, int count)
static void amv_write_alist(AVFormatContext *s, AVCodecParameters *par)
static void write_header(FFV1Context *f)
static void amv_end_tag(AVIOContext *pb, int64_t start)