44 "SRT supports only a single subtitles stream.\n");
50 "Unsupported subtitles codec: %s\n",
64 int size, x1 = -1, y1 = -1, x2 = -1, y2 = -1;
68 if (p && size == 16) {
75 #if FF_API_CONVERGENCE_DURATION
84 "Insufficient timestamps in event number %d.\n", srt->
index);
88 avio_printf(avf->
pb,
"%d\n%02d:%02d:%02d,%03d --> %02d:%02d:%02d,%03d",
90 (
int)(s / 3600000), (
int)(s / 60000) % 60,
91 (
int)(s / 1000) % 60, (
int)(s % 1000),
92 (
int)(e / 3600000), (
int)(e / 60000) % 60,
93 (
int)(e / 1000) % 60, (
int)(e % 1000));
108 .mime_type =
"application/x-subrip",
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
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.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
AVIOContext * pb
I/O context.
#define flags(name, subs,...)
attribute_deprecated int64_t convergence_duration
#define FF_DISABLE_DEPRECATION_WARNINGS
#define FF_ENABLE_DEPRECATION_WARNINGS
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define AV_NOPTS_VALUE
Undefined timestamp value.
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2