Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Generate movie from images with CORRECT length #552

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello guys

From a webcam I'm recording images at a frame rate of 10 (not 25!) into the 
folder /tmp/test/input/. With this command I'd like to generate a movie:

avconv -f image2 -i /tmp/test/input/%d.jpg -an -b:v 256k -r 10 -y 
/tmp/test/output/video.webm -loglevel info -c:v libvpx -crf 50 -deadline rt

Video video.webm is generated but the video speed is wrong (length is halved). 
To be exact, when I have recorded an image sequence of 15 seconds at 10 fps, 
then there are 15 x 10 = 150 images. And in theory the length of the movie 
should be 15 seconds ...

But with the above avconv command I get a movie length of about 6 seconds. Why?

Any hints? Help is much appreciated.

Cheers
Michael 

Original issue reported on code.google.com by michael....@gmail.com on 25 Feb 2013 at 3:45

GoogleCodeExporter commented 8 years ago
Ignore this ticket. I found the problem myself. Framerate for input wasn't 
specified.

Before "-i /tmp/test/input/%d.jpg" I had to add "-r 10" and then it worked.

Original comment by michael....@gmail.com on 26 Feb 2013 at 9:40

GoogleCodeExporter commented 8 years ago

Original comment by louquil...@google.com on 26 Feb 2013 at 5:24