Page 7 of 9
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 1:01 pm
by stabu
Ubuntu. i gave up on freenas idea. Im not sure how sabnzbd runs the script but i have the script in the "scripts" folder
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 1:15 pm
by sweetie
Does it rename correctly when run manually?
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 1:45 pm
by stabu
Yeah that's how I tested it the other day.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 3:23 pm
by stabu
sweetie wrote:
Where the heck are you runing it from? It's set to rename to "${PWD##*/}" which is current directory name. Only way it could turn out 'bin' is if you're running from there. ???
You could try changing:
Code: Select all
if [ "$inputfs" -gt "262144000" -a "$allmkv" -le "1" ]; then output="$CWD.m2ts"
elif [ "$inputfs" -lt "262144000" ]; then output="$CWD-Sample-$inputfs.m2ts"
elif [ "$inputfs" -gt "262144000" -a "$allmkv" -ge "2" ]; then output="$CWD-$inputcount.m2ts"; ((inputcount++)); fi
to:
Code: Select all
output="$CWD-$inputcount.m2ts"; ((inputcount++))
You'll have to have sample downloads disabled in SAB.
Let me know.
Is this on Ubuntu still btw? or FreeNAS?
Yeah that did not work either it made the file "bin-1.m2ts".
I have Ignore Samples: do not download. Is that disabled for sample downloads?
BTW im using the new sabnzbd, the beta.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 5:21 pm
by sweetie
You could try replacing all "$CWD" with "$3".
Can restore the edit I posted before as well.
Also, remove the line:
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 6:56 pm
by stabu
lol, file name come out like Shaun.The.Sheep.S03E10.720p.HDTV.x264-SFM-Sample-195429011.m2ts that.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: December 4th, 2009, 8:38 pm
by sweetie
Well that's good. All files 250MB.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: April 5th, 2010, 7:37 pm
by stabu
Can you repost your script? The link is dead.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: April 6th, 2010, 3:06 pm
by sweetie
Reposted, thanks for notifying.
Can't remember if there have been any mods. since last update (other than ReScene 1.1 now) - if you run into any bugs* let me know,
*Other than the -j option locking up - seems to happen after a recent bash update. (not sure how to repair it - will look into it later.)
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: April 6th, 2010, 10:10 pm
by stabu
I still get all the fun errors like i did before. If you ever get time and have a extra machine, trying running your script on ubuntu.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: May 7th, 2010, 8:27 am
by stabu
I'm using the sorting feature in sabnzbd. I was wondering how to turn off the delete folder and everything in your script. Right now it will delete the folder the sorring feature makes. But I would need the mkv gone still. Any help would be great.
Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]
Posted: May 7th, 2010, 9:30 am
by sweetie
At the top, if you change mux options to:
SAVE_MUX_INPUT="0" ##set to 1 to retain MKV/AVI input files.
MUX_ONE_UP="0" ##move mux output up one level.
REMOVE_INPUT_DIR="0" ##remove input dir. after muxing/joining. (MUX_ONE_UP must be "1", SAVE_MUX_INPUT must be "0")
It should do the trick. Haven't tested the script with SAB sorting, so let me know how it goes.
(Still haven't with Ubuntu either btw. May do later this month.)
Re: [bash] SceneSort [v3 - AIO post-processor script.]
Posted: May 7th, 2010, 1:42 pm
by stabu
it works but you get tsmuxer logs and srf files. Other then that it works great.
Re: [bash] SceneSort [v3 - AIO post-processor script.]
Posted: May 7th, 2010, 1:58 pm
by sweetie
Ah right. The function that clears those is set to run right at the end, and if the directories have moved, it won't be looking in the right places.
You can add "cleanup" to the base of the mkv2m2ts function (before the final '}') if you're bothered by them. (is this with the script in its entirety btw? or just the isolated mkv2m2ts function?)
Re: [bash] SceneSort [v3 - AIO post-processor script.]
Posted: May 7th, 2010, 5:04 pm
by stabu
its pretty much isolated mkv2m2ts. Im lost on where to add "cleanup"
this is what i have for the script
http://pastebin.com/hx6S7EVt