[FFmpeg-devel] [Patch] improve section 3.2 of the faq
Stefano Sabatini
stefano.sabatini-lala
Tue Jan 19 23:03:38 CET 2010
On date Sunday 2010-01-17 13:03:33 +0100, Stefano Sabatini encoded:
> On date Wednesday 2010-01-13 01:26:07 +0100, Stefano Sabatini encoded:
> > On date Monday 2010-01-11 03:00:59 -0500, John Van Sickle encoded:
> > > On Sun, Jan 10, 2010 at 5:57 AM, Stefano Sabatini
> > [...]
> > > Index: doc/faq.texi
> > > ===================================================================
> > > --- doc/faq.texi (revision 21123)
> > > +++ doc/faq.texi (working copy)
> > > @@ -138,6 +138,22 @@
> > >
> > > @file{img%03d.jpg} means the sequence @file{img001.jpg}, @file{img002.jpg}, etc...
> > >
> > > +If you have large number of pictures to rename, you can use the following command to ease the burden.
> > > +The command, using the bourne shell syntax, symbolically links all files in the current directory that
> > > +match @code{*jpg} to the @file{/tmp} directory in the sequence of @file{img001.jpg}, @file{img002.jpg}
> > > +and so on. If you want to sequence them by oldest modified first, substitute @code{`ls -r -t *jpg`}
> > > +in place of @code{*jpg}.
> > > +
> > > + at example
> > > + x=1; for i in *jpg; do counter=`printf %03d $x`; ln "$i" /tmp/img"$counter".jpg; x=$(($x+1)); done
> > > + at end example
> > > +
> > > +Then run:
> > > +
> > > + at example
> > > + ffmpeg -f image2 -i /tmp/img%03d.jpg /tmp/a.mpg
> > > + at end example
> > > +
> > > The same logic is used for any image format that ffmpeg reads.
> > >
> > > @section How do I encode movie to single pictures?
> >
> > Fine to me, I only suggest to prefer $() syntax to ``, I found more
> > readable and easier to nest (that's not a case we're using that in the
> > configure system), no patch needed for just that change though.
> >
> > Diego?
>
> I'll apply it soon if there are no more comments.
Applied with `...` -> $(...) conversion and a bit different
disposition of sentences.
Regards.
--
FFmpeg = Fantastic and Fast Marvellous Practical Ephemeral God
More information about the ffmpeg-devel
mailing list