[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: {#} with leading zeroes
From: |
Ole Tange |
Subject: |
Re: feature request: {#} with leading zeroes |
Date: |
Thu, 15 Mar 2012 21:36:31 +0100 |
On Thu, Mar 15, 2012 at 2:50 PM, Thomas Sattler
<sattler@med.uni-frankfurt.de> wrote:
> There is an example for {#} in the manpage. Its description says,
> it might be "useful for making input PNG's for ffmpeg":
>
> |
> | find . -type f | sort | parallel convert {} {#}.png
> |
>
> I'd guess that it wouldn't work with ffmpeg, as the images would
> be sorted like this:
>
> 10.png 11.png 12.png [...] 18.png 19.png 1.png [...]
>
> Wouldn't it be usefull to have sequence numbers with leading
> zeroes here?
Show me more examples where it would be useful. The ffmpeg could be fixed with:
ls | sort -n | parallel -j 1 -X ffmpeg ... {}
If there are better use cases I might consider something like:
{0#} = {#} = one digit or more
{000#} = three digits or more
/Ole