summaryrefslogtreecommitdiff
path: root/avconv.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-17 10:58:05 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-24 06:20:38 +0100
commit4754345027eb85cfa51aeb88beec68d7b036c11e (patch)
tree854075bed6b3404f2848f7665d87e826bdc8f621 /avconv.h
parenta220b07b0f971f88213aef012aea51af2800be62 (diff)
avconv: print verbose per-stream transcoding statistics
Diffstat (limited to 'avconv.h')
-rw-r--r--avconv.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/avconv.h b/avconv.h
index 29f7dd99fc..2484314f34 100644
--- a/avconv.h
+++ b/avconv.h
@@ -233,9 +233,6 @@ typedef struct InputStream {
AVDictionary *opts;
AVRational framerate; /* framerate forced with -r */
- /* number of packets successfully read for this stream */
- uint64_t nb_packets;
-
int resample_height;
int resample_width;
int resample_pix_fmt;
@@ -262,6 +259,15 @@ typedef struct InputStream {
int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
enum AVPixelFormat hwaccel_pix_fmt;
enum AVPixelFormat hwaccel_retrieved_pix_fmt;
+
+ /* stats */
+ // combined size of all the packets read
+ uint64_t data_size;
+ /* number of packets successfully read for this stream */
+ uint64_t nb_packets;
+ // number of frames/samples retrieved from the decoder
+ uint64_t frames_decoded;
+ uint64_t samples_decoded;
} InputStream;
typedef struct InputFile {
@@ -343,6 +349,11 @@ typedef struct OutputStream {
/* stats */
// combined size of all the packets written
uint64_t data_size;
+ // number of packets send to the muxer
+ uint64_t packets_written;
+ // number of frames/samples sent to the encoder
+ uint64_t frames_encoded;
+ uint64_t samples_encoded;
} OutputStream;
typedef struct OutputFile {