TV Tubes - Talkin' 'bout my automation...

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    TV Tubes - Talkin' 'bout my automation... - Presentation Transcript

    1. TV Tubes Talkin’ ‘bout my automation… (Complete with crappy PowerPoint theme) Neil Crosby
    2. The Problem
      • You:
      • Like watching TV Shows.
      • Can’t watch when they’re on TV normally.
      • Don’t have a VCR.
    3. The Solution
      • Timeshift by downloading episodes.
      • Put episodes into iTunes.
      • Sync to iPod, iPhone,  TV etc.
      • Delete them once they’ve been watched.
      • But, do this completely automatically.
    4. What You Need
      • A Mac
      • TVShows.app
      • BitTorrent Client
      • VisualHub
      • iTunes
      • Two FolderActions
      • One Standalone AppleScript
      • A Small Aubergine
    5. TVShows .app
      • Lets you download new episodes of shows whenever they appear, automatically.
      • Whenever new episodes appear, they get downloaded by your favourite BitTorrent client.
      • It’s a kind of magic
    6. BitTorrent
      • Any client will do, as long as fully downloaded items are able to be moved to a “downloaded” folder automatically.
      • Azureus does this quite happily.
    7. The First FolderAction
      • Invoked when files appear in “downloaded” folder.
      • Starts VisualHub using a config file.
      • Pipes files into VisualHub.
      • Starts VisualHub re-encoding the files.
    8. VisualHub
      • Costs $23.32
      • Uses ffmpeg for encoding.
      • So, it could (and should) be refactored out as an exercise for the reader
    9. ffmpeg commandline ffmpeg -y -threads 4 -i some.show.03x05.some.episode.name.avi -s 640x480 -r 29.98 -vcodec h264 -g 300 -aspect 640:480 -qmin 27 -b 900 -level 30 -loop 1 -sc_threshold 40 -partp4x4 1 -rc_eq 'blurCplx^(1-qComp)' -refs 2 -qmax 51 -maxrate 1400 -async 50 -acodec aac -ar 44100 -ac 2 -ab 128 some.show.03x05.some.episode.name.mp4
    10. VisualHub
      • Costs $23.32
      • Uses ffmpeg for encoding.
      • So, it could (and should) be refactored out as an exercise for the reader
      • Set up to save re-encoded to episodes to “encoded” folder.
    11. The Second FolderAction
      • Invoked when files appear in “encoded” folder.
      • Adds files to iTunes
      • Works out Show Name, Season Number and Episode Number (Perl)
    12. The Perl if (/^(.*)[s.-]+s?([0-9][0-9]?)[ex]?([0-9][0-9])/i) { $show=$1; $season=$2; $episode=$3; $show=~s/s*-s*$//; // Remove dash from end of show name $show=~s/./ /g; // Convert dots to spaces $show=~s/((^w)|(sw))/U$1/g; // Capitalise each word print "$show $season $episode "; } Show Season Episode
    13. The Second FolderAction
      • Invoked when files appear in “encoded” folder.
      • Adds files to iTunes
      • Works out Show Name, Season Number and Episode Number (Perl)
      • Sets info in iTunes
    14. iTunes
      • Does any syncing that you’ve told it to do with your TV Shows!
      • You get to watch the shows you want without having to be around when they’re on TV.
      • Awesome.
    15. The Overall Process
    16. But wait, there’s more!
    17. Current Gotchas
      • Deletion process still to be written.
      • VisualHub can’t cope with videos inside folders.
      • VisualHub doesn’t like things to be added to its “to encode” list - shows get encoded twice.
    18. Write-up / Instructions
      • Full instructions for setting up your own “TV Tubes” process will be available at workingwith .me. uk very soon.

    + Neil CrosbyNeil Crosby, 2 years ago

    custom

    1114 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1114
      • 1114 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?