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");
326 stream_index = (stream_index + 1) % s->
nb_streams;
343 if ((ret =
amv_pad(s, pkt)) < 0)
403 .mime_type =
"video/amv",
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
#define AMV_VIDEO_STRH_SIZE
void avio_wl16(AVIOContext *s, unsigned int val)
void ff_end_tag(AVIOContext *pb, int64_t start)
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
#define AV_LOG_WARNING
Something somehow does not look correct.
static const struct exif_tag tag_list[]
static av_cold int init(AVCodecContext *avctx)
static void amv_deinit(AVFormatContext *s)
int64_t lastpts[AMV_STREAM_COUNT]
static void amv_end_tag(AVIOContext *pb, int64_t start)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
This struct describes the properties of an encoded stream.
int frame_size
Audio only.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
void avio_wl32(AVIOContext *s, unsigned int val)
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AMV_AUDIO_STRH_SIZE
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream ** streams
A list of all streams in the file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
static int amv_write_packet(AVFormatContext *s, AVPacket *pkt)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_cold int amv_init(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
simple assert() macros that are a bit more flexible than ISO C assert().
static int amv_pad(AVFormatContext *s, AVPacket *pkt)
static int amv_write_header(AVFormatContext *s)
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int block_align
Audio only.
#define ss(width, name, subs,...)
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
void ffio_fill(AVIOContext *s, int b, int count)
#define AV_TIME_BASE
Internal time base represented as integer.
static int amv_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
static int write_trailer(AVFormatContext *s1)
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
AVOutputFormat ff_amv_muxer
int sample_rate
Audio only.
static void amv_write_alist(AVFormatContext *s, AVCodecParameters *par)
static int64_t amv_start_tag(AVIOContext *pb, const char *tag)
#define AMV_AUDIO_STRF_SIZE
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
void * priv_data
Format private data.
static int amv_write_trailer(AVFormatContext *s)
static void write_header(FFV1Context *f)
static int bad(InterplayACMContext *s, unsigned ind, unsigned col)
#define AMV_VIDEO_STRF_SIZE
AVCodecParameters * codecpar
Codec parameters associated with this stream.
static void amv_write_vlist(AVFormatContext *s, AVCodecParameters *par)
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
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
This structure stores compressed data.