Git Product home page Git Product logo

tardisivr's Introduction

Project is no longer being developed. I recommend taking a look at this; https://github.com/HaveAGitGat/Tdarr

tardisIVR

A BASH post-processing script for Shell/SABnzbd/Radarr/Sonarr.

Features

  • Encode TV and Movies using HandBrake to meet your specific audio and video requirements.
  • Passthru 2, 5.1, 7.1 audio channels.
  • Tag mp4 metadata using AtomicParsley.
  • Run from BASH shell to re-encode single files, or multiple directories.

Example

/movies/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x movies x x 
START! Fri Jan 26 03:23:24 UTC 2018
  - Consolidating files in /movies/Movies/Movie Name (2016)

  - Discovered Media File:
    Movie Name (2016).mkv 6.8G
  - REGEX detected Movie,
  - (.*) \(([0-9]{4})\)[- .]{0,3}(\[.*\])?.*

  - Audio Channels:  6
  * Transcoding!!!
/usr/bin/HandBrakeCLI -i "Movie Name (2016).mkv" -o atomicFile.m4v -e x264 -q 20 --optimize --srt-lang eng --native-language eng --native-dub -f mp4 --decomb --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile high --h264-level 4.1 --aencoder ca_aac,copy:ac3,copy:dts,copy:dtshd

  - Encoding Speed: 123.86 minutes
  - Details:
    DIR:             /movies/Movies/Movie Name (2016)
    NZB_FILE:        x
    NAME:            Movie Name (2016)
    NZB_ID:          x
    CATEGORY:        movies
    GROUP:           x
    STATUS:          x
    Dest Folder:     /movies/postprocessing/movies/
    Dest File:       Movie Name (2016).m4v
    Title:           Movie Name (2016)
    Year:            2016
    Audio Channels:  6
    Quality:         
    Input File:      Movie Name (2016).mkv 6.8G
  - Finished:        Fri Jan 26 05:27:22 UTC 2018

  * MOVIE COMPLETE!  Movie Name (2016).m4v 
  * Moving transcoded file to folder.
  - mv atomicFile.m4v "/movies/postprocessing/movies/Movie Name (2016).m4v"
  * Moving original downloaded file to folder.
Fri Jan 26 05:27:22 UTC 2018

Requirements

add-apt-repository ppa:stebbins/handbrake-releases -y && apt-get update && apt-get install handbrake-cli -y

Optional

Install

You can download the latest version clicking here or clone the repository with the command below.

git clone https://github.com/scrathe/tardisIVR.git master

Shell Usage

TV

ls
TV Show Name - S01E01 - Episode Name [HDTV].mkv
tardisIVRvideo.sh "`pwd`" x x x tv

Movies

ls
Movie (2014) [HDTV].mkv
tardisIVRvideo.sh "`pwd`" x x x movies

Tag only, don't encode.

ls
TV Show Name - S01E01 - Episode Name [HDTV].mkv
tardisIVRvideo.sh "`pwd`" x x x tv x x tag
ls
Movie (2014) [HDTV].mkv
tardisIVRvideo.sh "`pwd`" x x x movies x x tag

Examples

# movie encode and tag
cd /media/Movies/Movie Name (2013)
/tv/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x movies x x
# movie tag, skip encoding
cd /media/TV/Show Name (2013)
/tv/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x tv x x tag
# recurse through thru seasons of a TV show and encode
cd /media/TV/Show Name
for i in * ; do cd "`pwd`" && /tv/scripts/tardisIVR/tardisIVRvideo.sh "$i" x x x tv; done
# in a download directory full of TV shows in directories, find a show by name and encode all of those.
for i in `ls -d ShowName*` ; do cd "$i" && /tv/scripts/tardisIVR/tardisIVRvideo.sh `pwd` x x x tv x x ; cd .. ; done

SABnzbd with SickBeard

Category = tv
Script = tardisIVRvideo.sh
Folder = tv

SABnzbd with CouchPotato

Category = movies
Script = tardisIVRvideo.sh
Folder = movies

SABnzbd

Sonarr

Arguments = x x x x sonarr

Radarr

Arguments = x x x x radarr

Sonarr

Sources

Thank You!

tardisivr's People

Contributors

scrathe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tardisivr's Issues

error : acdcli sync --> error 404 on bronwser

#> acdcli sync
For the one-time authentication a browser (tab) will be opened at https://tensile-runway-92512.appspot.com/.
Please accept the request and save the plaintext response data into a file called "oauth_data" in the directory "/home/jean-marie/.cache/acd_cli".
Press a key to open a browser.

Press a key if you have saved the "oauth_data" file into "/home/jean-marie/.cache/acd_cli".
Using PPAPI flash.
--ppapi-flash-path=/usr/lib/adobe-flashplugin/libpepflashplayer.so --ppapi-flash-version=
Nouvelle fenêtre ouverte dans la session du navigateur

In browse :
https://tensile-runway-92512.appspot.com/ error 404

acdcli.api.common.RequestError: RequestError: 1004, Error refreshing authentication token

I get the following error no matter how I try to run acd_cli. I installed it a couple of weeks ago, and it worked fine then, no apparent changes has been made since, except Ubuntu system updates, which is the only thing I can think of.

Ubuntu 16.04

Traceback (most recent call last):
File "/usr/local/bin/acd_cli", line 9, in
load_entry_point('acdcli==0.3.2', 'console_scripts', 'acd_cli')()
File "/usr/local/bin/acd_cli.py", line 1646, in main
acd_client = client.ACDClient(CACHE_PATH, SETTINGS_PATH)
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/client.py", line 43, in init
self.handler = oauth.create_handler(cache_path)
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/oauth.py", line 28, in create_handler
return AppspotOAuthHandler(path)
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/oauth.py", line 167, in init
self.load_oauth_data()
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/oauth.py", line 99, in load_oauth_data
self.get_auth_token(reload=False)
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/oauth.py", line 117, in get_auth_token
self.refresh_auth_token()
File "/usr/local/lib/python3.5/dist-packages/acdcli/api/oauth.py", line 210, in refresh_auth_token
'Error refreshing authentication token: %s' % response.text)
acdcli.api.common.RequestError: RequestError: 1004, Error refreshing authentication token:

<title>Error 404 (Page not found)!!1</title> <style> *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} </style>

404. That’s an error.

The requested URL was not found on this server. That’s all we know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.