>>84647373I posted this a few weeks ago but it's a bash script that you can run inside a directory with soundpost filenames and it downloads the associated audio file and converts it into an .mkv - Doesn't work perfectly but it's pretty good. Thanks to the /g/ Anon who wrote it.
#!/bin/env bash
urlre='^.*\[sound=(.+)\].*$'
function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
for i in *.png *.gif *.jpg *.webm *.jpeg; do
if [ -e "${i%.*}.mkv" ]; then
echo Skipping \"$i\".
continue
fi
echo Processing \"$i\"...
[[ "$i" =~ $urlre ]]
ffmpeg -v error -i "$i" -i "$(urldecode ${BASH_REMATCH[1]})" -c copy "${i%.*}.mkv"
done