Posts: 22
Threads: 1
Joined: Oct 2015
[Not Solved]
Nov 24, 2015, 04:06 PM
(This post was last modified: Nov 24, 2015, 04:19 PM by tragidy.
Edit Reason: added samples
)
(Nov 24, 2015, 12:19 AM)deadtechnology Wrote: Yeah its not an issue with the plugin. It is an issue with the script or something else. I opened an issue with the script on github here. For now running manually is good enough I guess.
Hmm you could make your own script to run on finish to use something like this..
Code:
apt-get install libav-tools
Code:
avconv -i some-file.avi -vcodec libx264 mynewx264.mp4
You can find example SH scripts at
http://dev.deluge-torrent.org/wiki/Plugins/Execute which will give you idea what to do in the script, i'm not certain of the variables to call so ill leave that to you.
Perhaps like this in sh script?
bleh.sh for obvious reasons may not work for you.
Code:
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
for z in *.avi; do avconv -i "$z" -vcodec libx264 "${z%.avi}.mp4";done
for z in *.mkv; do avconv -i "$z" -vcodec libx264 "${z%.mkv}.mp4";done
Could also use find to insert paths manually or by deluge variables.
Code:
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
find /path -name '*.avi' -exec bash -c 'avconv -i "$7" -vcodec libx264 "${7%.avi}.mp4"' _ {} \;
#Maybe this...
# echo Encoding "$2"
# find "$3" -name '*.avi' -exec bash -c 'avconv -i "$7" -vcodec libx264 "${7%.avi}.mp4"' _ {} \;
Posts: 8
Threads: 1
Joined: Nov 2015
Reputation:
0
[Not Solved]
Nov 25, 2015, 11:16 PM
Yeah unfortunately using the script does a lot more in terms of organization. Running the script manually after Sonarr and Couchpotato deal with the files is a better solution for me until it works automatically. Thanks though.
Posts: 8
Threads: 1
Joined: Nov 2015
Reputation:
0
[Not Solved]
Dec 08, 2015, 07:50 AM
So I fixed it. The main thing was that I was an idiot and forgot to manually mark the python scripts as executables. My Plex collection is beautifully organized and totally direct playable.