Open Stooovie opened 1 month ago
Hi @Stooovie,
I am working on a new version, but didn't have as much free time to work on it as I wanted 😅. I'll take your issue into account :)
But just to understand it correctly. Is the conversion working as expected and the post notification does not work when there's a space in the filename?
Hi, no, it doesn't produce any output. Ultimately I cobbled something together from a different Workflow and adjusted it for my needs (to transcode to ProRes), like this:
query=$1
# the folder
DNAME=$(dirname "$query")
# the filename
FNAME=$(basename "$query")
SNAME="${FNAME%.*}"
# output the directory name, and folder name
#echo "Folder: '$DNAME', File: '$FNAME', Name: '$SNAME'"
/opt/homebrew/bin/ffmpeg -i "$DNAME/$FNAME" -codec:v prores -profile:v 3 -c:a pcm_s16le "$DNAME/$SNAME.mov"
That works for me. Thanks :)
I'm getting
[22:57:59.221] FFMPEG - AudioTools + Videotools[File Action] Processing complete [22:57:59.230] FFMPEG - AudioTools + Videotools[File Action] Passing output '/Users/stooovie/Nextcloud/Projekty/BrnoLogic-2024-Explainer/5 - Output/mrdka.mp4' to Run Script [22:57:59.311] STDERR: FFMPEG - AudioTools + Videotools[Run Script] /Users/stooovie/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/AE623C19-BA5B-4F99-A7B9-CFD073133566: line 6: cd: /Users/stooovie/Nextcloud/Projekty/BrnoLogic-2024-Explainer/5: No such file or directory /Users/stooovie/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/AE623C19-BA5B-4F99-A7B9-CFD073133566: line 10: /usr/local/bin/ffmpeg: No such file or directory [22:57:59.319] FFMPEG - AudioTools + Videotools[Run Script] Processing complete [22:57:59.320] FFMPEG - AudioTools + Videotools[Run Script] Passing output 'Failed, maybe there is already a File named comp_5
mrdka.mp4 existing ' to Post Notification
it's failing whenever there's a space in the filename...