News for hackers. Stuff that matters.
Re:Show HN: patchbay.pub – Poor man's ngrok/IFTTT/serverless by WhatIsDukkha on Tuesday November 26, 2019 @02:45PM (#21641905)
You might be better served with gnu parallel -

  #create the directory structure first
  find . -type f -name '*.flac' |ionice -c3 parallel -j1 'mkdir -p $transcodes{//}' &&
  #now the encodes
  find . -type f -name '*.flac' |ionice -c3 parallel -j4 "ffmpeg -n -v 0 -i {} -c:a libopus -b:a 128k $transcodes{.}.opus"
Note the {.} which would actually only grab the basename.
Re:Show HN: patchbay.pub – Poor man's ngrok/IFTTT/serverless by MachineMartin on Wednesday November 27, 2019 @06:06PM (#21653078)
The ' should be " in first example. Otherwise $transcodes is not expanded.
Re:Show HN: patchbay.pub – Poor man's ngrok/IFTTT/serverless by WhatIsDukkha on Monday December 02, 2019 @05:33PM (#21687821)
Actually no, I'm handing that line to parallel which in turn will do the expansion when it invokes.