Use handbrakeCLI.
Here are all the options:
https://trac.handbrake.fr/wiki/CLIGuide
Just create a textfile, shebang @ top and your own presetline in it. Make it executable and choose it as a postprocessingscript.
Search found 85 matches
- March 10th, 2011, 12:28 pm
- Forum: Post-Processing Scripts
- Topic: Linux script to convert HD video to SD
- Replies: 1
- Views: 2672
- March 1st, 2011, 12:57 pm
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Just add && behind the cp command, this means after command is succesfull go to the next command, else it stops.
cp -TRf "$folders" "$newpath" &&
rm -Rf "$folders"
cp -TRf "$folders" "$newpath" &&
rm -Rf "$folders"
- February 12th, 2011, 2:53 am
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Ok, I learned some shortcomings in the mv-command. It can't move directory's to directory's that allready exist. That's kinda stupid in my opinion. So I did some research and we need the copycommand. After the copy te source can be deleted, and so it is the same as the move-command but with more opt...
- February 11th, 2011, 1:05 am
- Forum: Post-Processing Scripts
- Topic: Sickbeard post processing script
- Replies: 6
- Views: 9319
Re: Sickbeard post processing script
glad it works for you. I symlink every script I have to my postprocessingfolder and that works ok, big questionmark why it won't work for you.
- February 11th, 2011, 1:03 am
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Your pastebin link doesn't work Then it works, but is missing quotationmarks somewhere. I always forget those... spaces in locations break up scripts if it is not properly quoted... Here, I quoted everything to be sure. #!/bin/bash # VARIABLES #---- EDIT HERE IF THINGS CHANGE, E.G. OTHER NETWORKLOCA...
- February 10th, 2011, 3:46 pm
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
I am sorry, I will not be to technical. Yes you need pathguessing, why? Otherwise the script can't see which path a tvshow has to go in. We need the last part of your folder behind /Users/Chris/downloads/. This part we need: TV/The Big Bang Theory/Season 3/ is the part we need to store your shows i...
- February 10th, 2011, 3:32 pm
- Forum: Post-Processing Scripts
- Topic: Sickbeard post processing script
- Replies: 6
- Views: 9319
Re: Sickbeard post processing script
I don't know. Did you remove the sabToSickbeard.py in your scriptsdirectory prior to creating the symlink? If not, delete in your scriptsfolder and try again. And use fullpathnames for creating the link to avoid problems.
- February 10th, 2011, 2:10 pm
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Please post your log so I can see what to edit, you can find the log in history of sabnzbd, click the + sign and then more, copy that content and paste it here or on pastebin.com and link it here. The outputpath is virtually created (or guessed) with this: sed "s#/Users/Chris/Downloads/#/Networ...
- February 10th, 2011, 12:24 pm
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Try this: #!/bin/bash for folders in $1 #### for all folders inside the downloadpath do the following do newpath=$(echo $folders | sed "s#/Users/Chris/Downloads/#/Network Drive/#g") #### create new path by replacing local dirs with networkdir mkdir -p "$newpath" || #### make the ...
- February 10th, 2011, 12:29 am
- Forum: Post-Processing Scripts
- Topic: Sickbeard post processing script
- Replies: 6
- Views: 9319
Re: Sickbeard post processing script
Did you rename autoProcessTV.cfg.sample to autoProcessTV.cfg and edited it with your setup? Is Sickbeard running as the same user you execute this manually with? (stop then edit /etc/init.d/sickbeard and edit USER=) The best option is to symlink sabtosickbeard.py to your scriptsdirectory (ln -s /hom...
- February 9th, 2011, 9:11 am
- Forum: Post-Processing Scripts
- Topic: [BASH] How to create your own postprocessingscript
- Replies: 30
- Views: 82786
[BASH] How to create your own postprocessingscript
Bash is a flexible language and not that hard to write. Just open a blank textfile and write a shebang in the first line: #!/bin/bash (or #!/usr/bin/env bash) and commands on the next. When you want to explain something in the script, or stop a command from executing, put a # in front of it, it disa...
- February 9th, 2011, 7:40 am
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
Sabnzbd logs what happened with your download, you can find that under history and click the + sign to see what happened. Since sab is on a mac, you could try this: Map the networkdrive on your mac (use google for that). I don't own a Mac and advise everyone to do not so too ;-), it's a digital pris...
- February 8th, 2011, 11:24 am
- Forum: Post-Processing Scripts
- Topic: simple script to move files after processing
- Replies: 39
- Views: 69142
Re: simple script to move files after processing
It looks like you setup Sabnzbd so that it decides for itself if it's a movie or a tvshow, so you dont need the if statement, this should be enough: mv -fv "$1" "Network Drive" But I don't really see why you use a script to move files to your networkdrive. You can use sabnzbd to ...
- February 8th, 2011, 11:16 am
- Forum: Post-Processing Scripts
- Topic: I've written a MOVE TO MUSIC LIBRARY script..
- Replies: 22
- Views: 23844
Re: I've written a MOVE TO MUSIC LIBRARY script..
[offtopic] http://mywiki.wooledge.org/EnglishFrontPage http://www.faqs.org/docs/Linux-HOWTO/Bash-Prog-Intro-HOWTO.html and a lot of google, with terms like "bash list only moviefiles in folder" for example. 21st of januari I posted my first installscript for Sickbeard (very simple commands...
- February 7th, 2011, 1:10 pm
- Forum: Post-Processing Scripts
- Topic: I've written a MOVE TO MUSIC LIBRARY script..
- Replies: 22
- Views: 23844
Re: I've written a MOVE TO MUSIC LIBRARY script..
Lol, he whips out bash like it's cookies. I don't see what he is trying to do with that code (I ve learned bash 2 weeks ago, so big noobie here..). Didn't know he is on github, I think I have a simpler solution with the repo version. I am testing right now. Here is my solution. it works ;) You can ...