1 |
======= On Tuesday 26 August 2008, Willie Wong wrote: ======= |
2 |
> On Tue, Aug 26, 2008 at 12:34:00PM +0400, Penguin Lover Andrew Gaydenko |
3 |
squawked: |
4 |
> > I have a very short (probably one or few frames) avi file (display |
5 |
> > geometry test image). How to stretch the avi in time to long period |
6 |
> > (say, minutes)? Software? Steps? |
7 |
> |
8 |
> If you worry just about display, look at the -fps option in mplayer, |
9 |
> it lets you dictate the frame rate at which the movie is played. |
10 |
> (Though on this box here it doesn't let you stretch to ftime more than |
11 |
> 1 sec....) |
12 |
> |
13 |
> A possibly better way is to (assuming your video file has really few |
14 |
> frames) |
15 |
> |
16 |
> mplayer -vo jpeg <videofile> |
17 |
> |
18 |
> beware that if your video file has more than a few seconds, the number |
19 |
> of frames can really pile up and give you a whole bunch of files. |
20 |
|
21 |
Done, there was a single frame. |
22 |
|
23 |
|
24 |
> |
25 |
> Then you can reencode the avi thus |
26 |
> |
27 |
> mencoder "mf://000*jpg" -mf fps=<insert frame rate> -o <outputfile>.avi |
28 |
> -ovc lavc -lavcopts vcodec=mpeg4 |
29 |
> |
30 |
> (you can, of course, encode in the codec of your choosing). The files |
31 |
> 000*jpg are the default filenames for the output of the first command. |
32 |
> If you specified output file names in the first command, you need to |
33 |
> change the input filenames for the second. For fps insert a number |
34 |
> corresponding to what you want: for example, say you have 5 frames and |
35 |
> want to stretch it to 2 minutes, then set |
36 |
> |
37 |
> fps=5/120 |
38 |
> |
39 |
> (number of frames divided by the amount of total run time). |
40 |
> |
41 |
> Hope this helps, |
42 |
> |
43 |
> W |
44 |
|
45 |
Have got: |
46 |
|
47 |
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4]) |
48 |
[mpeg4 @ 0x11004b0]bitrate tolerance too small for bitrate |
49 |
|
50 |
Sorry, my initial message wasn't clear: the final goal is to prepare DVD to |
51 |
adjust a geometry of a TV with CRT. |
52 |
|
53 |
P.S. Oh, this mencoder magic... :-) |