On Thu, Mar 15, 2012 at 2:50 PM, Thomas Sattler
<[email protected]> 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