[bash] Filebot/ffmpeg/rclone script order of operations help
Posted: 17 Sep 2017, 17:12
Hello all, I'm trying to follow the rules for how to request help, so pardon if I do not get it exact.
TL;DR: I'm 95% there in trying to get someone elses bash script working to have Filebot move & rename media, then use ffmpeg to remux the file and insert comment, and finally rclone move. The file is being moved before the ffmpeg part is able to kick off. Order of operations?
Output of filebot -script fn:sysinfo: https://pastebin.com/sQ2YVtK4
I'm using the scripts and advice from this archived reddit post: https://www.reddit.com/r/PleX/comments/ ... n/d87lsc6/
This is my slightly altered filebot_process.sh: https://pastebin.com/6hdb0G3a
Right now I am able to input argument: filebot_process.sh /home/me/dir1 /home/me/dir2
It will kicked-off the script, detect the media, move&rename accordingly to /home/me/dir2, but then when it gets to the remux_video part I can see the output call the remux_video.sh, but the actual console output fails.
This is the actual output I see on console:
The problem I can't solve is the line sh: 1: /usr/local/bin/remux_video.sh: not found
I'm fairly certain that the script is moving the renamed file from /home/me/dir2/ into /home/me/dir3/ before the Execute remux_video.sh command, so it's not seeing the file.
I can manually run the remux pointing to dir3 and it works.
I hope I was able to clearly state the issue.
Thank you for any help!
TL;DR: I'm 95% there in trying to get someone elses bash script working to have Filebot move & rename media, then use ffmpeg to remux the file and insert comment, and finally rclone move. The file is being moved before the ffmpeg part is able to kick off. Order of operations?
Output of filebot -script fn:sysinfo: https://pastebin.com/sQ2YVtK4
I'm using the scripts and advice from this archived reddit post: https://www.reddit.com/r/PleX/comments/ ... n/d87lsc6/
This is my slightly altered filebot_process.sh: https://pastebin.com/6hdb0G3a
Right now I am able to input argument: filebot_process.sh /home/me/dir1 /home/me/dir2
It will kicked-off the script, detect the media, move&rename accordingly to /home/me/dir2, but then when it gets to the remux_video part I can see the output call the remux_video.sh, but the actual console output fails.
This is the actual output I see on console:
Code: Select all
~$ filebot_process.sh /home/me/dir1 /home/me/dir2
Locking /home/me/log/Proc.log
Run script [fn:amc] at [Sun Sep 17 12:58:58 EDT 2017]
Parameter: exec = /usr/local/bin/remux_video.sh '{file}' 'TEST-COMMENT'
Parameter: movieFormat = Movies/{n} ({y}) {vf}/{n} ({y}) [{vf}]{' CD'+pi}{'.'+lang}
Parameter: seriesFormat = TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} {episode.special ? 'S00E'+special.pad(2) : s00e00} {vf}{'.'+lang}
Parameter: excludeList = /home/me/dir1/Proc.txt
Argument[0]: /home/me/dir1
Use excludes: /home/me/dir1/Proc.txt
Input: /home/me/dir1/MY_Movie-example-1990-720p.mp4
Group: [mov:my movie 1990] => [MY_Movie-example-1990-720p.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/me/dir1/MY_Movie-example-1990-720p.mp4]
[COPY] From [/home/me/dir1/MY_Movie-example-1990-720p.mp4] to [/home/me/dir2/Movies/My Movie (1990) 720p/My Movie (1990) [720p].mp4]
Processed 1 files
Execute: /usr/local/bin/remux_video.sh '/home/me/dir2/Movies/My Movie (1990) 720p/My Movie (1990) [720p].mp4' 'TEST-COMMENT'
sh: 1: /usr/local/bin/remux_video.sh: not found
Done ヾ(@⌒ー⌒@)ノ
Files processed
I'm fairly certain that the script is moving the renamed file from /home/me/dir2/ into /home/me/dir3/ before the Execute remux_video.sh command, so it's not seeing the file.
I can manually run the remux pointing to dir3 and it works.
I hope I was able to clearly state the issue.
Thank you for any help!