[Python] rescepy - automated ReScene reconstruction.

Come up with a useful post-processing script? Share it here!
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by sweetie »

Does it rename correctly when run manually?
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by stabu »

Yeah that's how I tested it the other day.
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by sweetie »

You could try replacing all "$CWD" with "$3".

Can restore the edit I posted before as well.

Also, remove the line:

Code: Select all

CWD="${PWD##*/"}
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by stabu »

lol, file name come out like Shaun.The.Sheep.S03E10.720p.HDTV.x264-SFM-Sample-195429011.m2ts that.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by sweetie »

Well that's good. All files 250MB.
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post by stabu »

Can you repost your script? The link is dead.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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.)
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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.
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Linux/OSX - Bash] scenesort script. [v3 - AIO post-post-processor.]

Post 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.)
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [bash] SceneSort [v3 - AIO post-processor script.]

Post by stabu »

it works but you get tsmuxer logs and srf files. Other then that it works great.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [bash] SceneSort [v3 - AIO post-processor script.]

Post 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?)
stabu
Jr. Member
Jr. Member
Posts: 64
Joined: December 10th, 2008, 10:02 pm

Re: [bash] SceneSort [v3 - AIO post-processor script.]

Post 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
Last edited by stabu on May 7th, 2010, 5:11 pm, edited 1 time in total.
Post Reply