[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parallel makes ffmpeg output files names garbled
From: |
Ole Tange |
Subject: |
Re: parallel makes ffmpeg output files names garbled |
Date: |
Sat, 12 Feb 2022 11:36:23 +0100 |
On Sat, Feb 12, 2022 at 12:47 AM Ole Tange <ole@tange.dk> wrote:
>
> On Fri, Feb 4, 2022 at 5:14 PM Ch g <prsvrrgtd@outlook.com> wrote:
> :
> > I tried GNU parallel 20161222 on Ubuntu 20.04
>
> Please use the latest stable version: 20220122. My guess is that your
> problem is solved by that.
Looking at the problem again the issue is that you are quoting the
replacement string. Contrary to shell variables (which should always
be quoted as "$variable" GNU Parallel's replacement strings should
not. Most of the time it does not matter, but it matters here.
Try this:
parallel -v echo {} ::: "a b"
parallel -v echo '"{}"' ::: "a b"
It should show what is going on.
I have moved {.} and {+.} outside the quoted quotes and that seems to work:
ffrt=1.75 && /usr/bin/parallel --plus -j0 "ffmpeg -n -i {}
-filter_complex \"[0:v] setpts=PTS/${ffrt}[v]; [0:a]
atempo=${ffrt}[a]\" -map \[v\] -map \[a\] {.}\"_SF${ffrt}.\"{+.}" :::
*j_YQ5_fG6zQ.mp4 *qQ5YEohqeUA.mp4
Also read: https://www.gnu.org/software/parallel/parallel.html#quoting
/Ole