avconv to convert avi frames to single images
Hi,
I have some small avi movies which contain each about 20 frames which are shown at about 2 frames per second. I would like to convert these movies into individual images, so 20 images per movie. I have been trying to do this with 'avconc', but do not manage to do so. Right now I use
avconv -i test.avi -f image2 image-%03d.jpg
which gives the following error:
avconv -i test.avi -f image2 image-%03d.jpg
avconv version 0.8.3-6:0.8.3-7, Copyright (c) 2000-2012 the Libav developers
built on Aug 25 2012 11:19:52 with gcc 4.7.1
Input #0, avi, from 'test.avi':
Duration: 00:00:04.01, start: 0.000000, bitrate: 1948 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 352x297 [SAR 1:1 DAR 32:27], 5.47 tbr, 5.47 tbn, 5.47 tbc
Metadata:
title : stream name
[buffer @ 0x226d2a0] w:352 h:297 pixfmt:yuvj422p tb:1/1000000 sar:1/1 sws_param:
Output #0, image2, to 'image-%03d.jpg':
Metadata:
encoder : Lavf53.32.100
Stream #0:0: Video: mjpeg, yuvj422p, 352x297 [SAR 1:1 DAR 32:27], q=2-31, 200 kb/s, 90k tbn, 5.47 tbc
Metadata:
title : stream name
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> mjpeg)
Press ctrl-c to stop encoding
[buffer @ 0x226d2a0] Changing frame properties on the fly is not supported.
Last message repeated 21 times
frame= 0 fps= 0 q=0.0 Lsize= -0kB time=10000000000.00 bitrate= -0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead -inf%
Any help is very much appreciated!
Last edited by tomasdepomas; 10-13-2012 at 01:18 PM.
|