Overclock.net › Forums › Specialty Builds › HTPC › automation help needed
New Posts  All Forums:Forum Nav:

automation help needed

post #1 of 5
Thread Starter 
I've been tinkering with my media box for a while, trying to find the best way to automate my media grabs. Heres the process i have now:

Sickbeard(grab) - sabnzbd(dl) - sickbeard (sort/rename)-plex

I also use couchpotato and headphones in the same process

What i want to do is add a step so that it auto encodes everything to 264 720p mkv using handbreak

It would then look like:
Sickbeard(grab) -sabnzbd(dl) - handbreak(encode) - sickbeard(sort/rename) - plex

Unfortunately i cant find a process that watches folders and sends an auto-encode script to handbreak. Or rather more specifically will watch 2 folders and then based on the folder its watching drop them in the sickbeard or couchpotato folder to be sorted.

Anyone have any ideas?


Sent from my SCH-I605 using Tapatalk 2
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
post #2 of 5
Since you want to encode it right after sabnzbd, you can simply modify the script that sends the download back to sickbeard for sorting to encode it first and then send it to sickbeard when it's done.

I have no idea if you can explicitely tell handbrake to automatically start encoding something though since I never used it.
First decent rig
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P67 Extreme4 NVIDIA GeForce GTX 560 Ti Corsair Vengeance Black 
RAMRAMRAMHard Drive
Corsair Vengeance Black Corsair Vengeance Red Corsair Vengeance Red OCZ Vertex 3 60GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Black 1TB ASUS 12x BD-ROM XIGMATEK LOKI SD963 Windows 7 SP1 x64 Ultimate 
MonitorKeyboardPowerCase
Sony Bravia 32" 720p 60Hz Sidewinder X4 OCZ ZX Series 850W COOLER MASTER HAF 922 
MouseMouse PadAudio
RAZER ABYSSUS Black 3 Buttons Random anime character ASUS Xonar D1 
  hide details  
Reply
First decent rig
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P67 Extreme4 NVIDIA GeForce GTX 560 Ti Corsair Vengeance Black 
RAMRAMRAMHard Drive
Corsair Vengeance Black Corsair Vengeance Red Corsair Vengeance Red OCZ Vertex 3 60GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Black 1TB ASUS 12x BD-ROM XIGMATEK LOKI SD963 Windows 7 SP1 x64 Ultimate 
MonitorKeyboardPowerCase
Sony Bravia 32" 720p 60Hz Sidewinder X4 OCZ ZX Series 850W COOLER MASTER HAF 922 
MouseMouse PadAudio
RAZER ABYSSUS Black 3 Buttons Random anime character ASUS Xonar D1 
  hide details  
Reply
post #3 of 5
Thread Starter 
Thanks SamKook, yeah I'd have to modify the output script on sab to output to the folders used to que up handbrake. Looking at this I think i found the solution, though i don't like it. Theres a program out there called dropfolders, it automates a script using the handbrake cli to encode files as they show up in the cue folder... unfortunately my esxi server that im running this on also houses 2 file servers. So the resources dropfolders takes up makes me nervous. Looks like ill have to get the old Q6600 box out and use that. Plus I hate using the CLI, looks like I'll have to get my hands dirty. Ill post a followup once i get it all figured out and working.
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
post #4 of 5
I was thinking more along the lines of telling handbrake to encode the file(or folder in this case since we don't know the video's file name) directly instead of watching a folder, but after thinking about it a bit more, it might be a bit complicated to implement for it to work well.

You'd have to:
-make the python script check the folder for a video file
-send it to handbrakecli and set the output to a different folder
-tell sickbeard to process the output folder once the encoding is done(I don't know if python will wait by itself or not here or if there's a way to tell it to)
-delete(or move if you want to be safe) the input video
-loop back to the beginning to check if another video had time to dl
--if yes, repeat process
--if no, exit script

The script would also have to check if handbrake is running when launched and simply exit without doing anything if that's the case since another video could(and most likely will I assume) get downloaded during the encoding process and encoding too many at the same time could be problematic.

Not sure if you have the programming skills and the python knowledge to do this though and since I lack the latter, I can't help much.
First decent rig
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P67 Extreme4 NVIDIA GeForce GTX 560 Ti Corsair Vengeance Black 
RAMRAMRAMHard Drive
Corsair Vengeance Black Corsair Vengeance Red Corsair Vengeance Red OCZ Vertex 3 60GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Black 1TB ASUS 12x BD-ROM XIGMATEK LOKI SD963 Windows 7 SP1 x64 Ultimate 
MonitorKeyboardPowerCase
Sony Bravia 32" 720p 60Hz Sidewinder X4 OCZ ZX Series 850W COOLER MASTER HAF 922 
MouseMouse PadAudio
RAZER ABYSSUS Black 3 Buttons Random anime character ASUS Xonar D1 
  hide details  
Reply
First decent rig
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P67 Extreme4 NVIDIA GeForce GTX 560 Ti Corsair Vengeance Black 
RAMRAMRAMHard Drive
Corsair Vengeance Black Corsair Vengeance Red Corsair Vengeance Red OCZ Vertex 3 60GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Black 1TB ASUS 12x BD-ROM XIGMATEK LOKI SD963 Windows 7 SP1 x64 Ultimate 
MonitorKeyboardPowerCase
Sony Bravia 32" 720p 60Hz Sidewinder X4 OCZ ZX Series 850W COOLER MASTER HAF 922 
MouseMouse PadAudio
RAZER ABYSSUS Black 3 Buttons Random anime character ASUS Xonar D1 
  hide details  
Reply
post #5 of 5
Thread Starter 
Yeah... my proficiency with script, any script, extends to copy and paste unfortunately. I'm more looking for programs to do the dirty work for me. So far dropfolders is the closest I've found, but im open to more suggestions. (Especially since im not a big fan of dropfolders)
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
    
CPUCPUMotherboardMotherboard
Intel Xeon Intel Xeon unknown unknown 
GraphicsRAMRAMRAM
Rage XL/XC Samsung  Samsung  Samsung  
RAM
Samsung  
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: HTPC
Overclock.net › Forums › Specialty Builds › HTPC › automation help needed