[Python] rescepy - automated ReScene reconstruction.

Come up with a useful post-processing script? Share it here!

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

Postby stabu » December 4th, 2009, 2:01 pm

Ubuntu. i gave up on freenas idea. Im not sure how sabnzbd runs the script but i have the script in the "scripts" folder
stabu
Jr. Member
Jr. Member
 
Posts: 64
Joined: December 10th, 2008, 11:02 pm

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

Postby sweetie » December 4th, 2009, 2:15 pm

Does it rename correctly when run manually?
sweetie
Full Member
Full Member
 
Posts: 115
Joined: May 10th, 2009, 11:47 am

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

Postby stabu » December 4th, 2009, 2:45 pm

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

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

Postby stabu » December 4th, 2009, 4:23 pm

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

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

Postby sweetie » December 4th, 2009, 6:21 pm

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##*/"}
sweetie
Full Member
Full Member
 
Posts: 115
Joined: May 10th, 2009, 11:47 am

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

Postby stabu » December 4th, 2009, 7:56 pm

lol, file name come out like Shaun.The.Sheep.S03E10.720p.HDTV.x264-SFM-Sample-195429011.m2ts that.
stabu
Jr. Member
Jr. Member
 
Posts: 64
Joined: December 10th, 2008, 11:02 pm

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

Postby sweetie » December 4th, 2009, 9:38 pm

Well that's good. All files <250MB will be labeled as Sample as it it just now. Will fix that up this week, been intending to.

Should work perfect-o for others >250MB.
sweetie
Full Member
Full Member
 
Posts: 115
Joined: May 10th, 2009, 11:47 am

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

Postby stabu » April 5th, 2010, 8:37 pm

Can you repost your script? The link is dead.
stabu
Jr. Member
Jr. Member
 
Posts: 64
Joined: December 10th, 2008, 11:02 pm

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

Postby sweetie » April 6th, 2010, 4:06 pm

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

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

Postby stabu » April 6th, 2010, 11:10 pm

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, 11:02 pm

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

Postby stabu » May 7th, 2010, 9:27 am

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

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

Postby sweetie » May 7th, 2010, 10:30 am

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

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

Postby stabu » May 7th, 2010, 2:42 pm

it works but you get tsmuxer logs and srf files. Other then that it works great.
stabu
Jr. Member
Jr. Member
 
Posts: 64
Joined: December 10th, 2008, 11:02 pm

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

Postby sweetie » May 7th, 2010, 2:58 pm

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?)
sweetie
Full Member
Full Member
 
Posts: 115
Joined: May 10th, 2009, 11:47 am

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

Postby stabu » May 7th, 2010, 6:04 pm

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, 6:11 pm, edited 1 time in total.
stabu
Jr. Member
Jr. Member
 
Posts: 64
Joined: December 10th, 2008, 11:02 pm

PreviousNext

Return to Post-Processing Scripts