Hi,
I'm trying to extract frames from movies that I've recorded on my Desktop using HyperCam (a video capture software on Windows ).
I used avconv to do this and it is ok when I extract all frames with the command:
However, I want to extract say one frame per second with the "-r" option but this does not work...Code:$ avconv -i file.avi -f image2 Out%00d.jpg
When I use the "-r" option with a value lower than the actual framerate (5fps) of the input movie I get the same error.Code:silviu@silviu-pc:~/REC/pics.out$ avconv -i ../s1-formare.avi -r 1 -f image2 Out%00d.jpg avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 Input #0, avi, from '../s1-formare.avi': Duration: 00:10:43.60, start: 0.000000, bitrate: 961 kb/s Stream #0.0: Video: msvideo1, rgb555le, 640x480, 5 tbr, 5 tbn, 5 tbc Metadata: title : HyperCam Video Incompatible pixel format 'rgb555le' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x1818320] w:640 h:480 pixfmt:rgb555le [avsink @ 0x1817340] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x181d8a0] w:640 h:480 fmt:rgb555le -> w:640 h:480 fmt:yuvj420p flags:0x4 Output #0, image2, to 'Out%00d.jpg': Metadata: encoder : Lavf53.21.0 Stream #0.0: Video: mjpeg, yuvj420p, 640x480, q=2-31, 200 kb/s, 90k tbn, 1 tbc Metadata: title : HyperCam Video Stream mapping: Stream #0:0 -> #0:0 (msvideo1 -> mjpeg) Press ctrl-c to stop encoding [mjpeg @ 0x18168e0] Error, Invalid timestamp=0, last=0 Video encoding failed
Can someone help with this, please ? Or a suggestion for another program...




Adv Reply



Bookmarks