Giter Site home page Giter Site logo

youtube-osc-feeder's Introduction

#Osc video feeder of youtube videos and playlists.

(http://www.youtube.com/watch?v=b2Y7h0FmCGM) "Ain't me babe")

Give it urls to download then randomly send videos over osc within min and max time limits.

It also send a frame to skip to. All youtube videos are 30fps.

##Run

(requires node 7.0++)

npm start

##Configure

The video path on the harddive is sent over OSC with port TARGET_OSC_PORT at this route:

/layer<layerIndex>

There is a frame route if you want to skip to a frame in the video.

/layer<layerIndex>/frame

Only 1 argument for each. In layer.js

###Configure

config.json

  • Each array item is a layer

  • Fill each layer item with youtube playlists urls or video urls

Example config.json with comments

[

  //osc route would be: /layer0
  [{
    "playlist": "https://www.youtube.com/playlist?list=PLRQ2jIXShfkYUDJWN4v_hClyFb0Qcnhlk"
  },{
    "playlist": "https://www.youtube.com/playlist?list=PLuTh1a1eg5vZ4NbXHavLdiJD3xkyrT7xi"
  }, {
    "playlist": "https://www.youtube.com/playlist?list=PLuTh1a1eg5vbZTFzVvH3_lpTCgPlfzaoV"
  }, {
    "playlist": "https://www.youtube.com/playlist?list=PLuTh1a1eg5vZ1PnDQIiolbphrhaX07hxR"
  }],

//osc route would be: /layer1
  [{
    "video": "https://www.youtube.com/watch?v=JNpXMY-vRTo"
  },{
    "video":"https://www.youtube.com/watch?v=9BqWQEaIDaU"
  }],

//osc route would be: /layer2
  [{
    "video": "https://www.youtube.com/watch?v=JNpXMY-vRTo",
    //!! You can specify time ranges in seconds
    //!! It will only use these segments and not the whole video
    "times":[[3, 10], [40, 60]]
  },{
    "video":"https://www.youtube.com/watch?v=9BqWQEaIDaU"
  }]

]

All Options.

PORT=3456
BINARIES=./binaries/
OSC_PORT=12345
MAX_PLAYTIME=40
MIN_PLAYTIME=20
VIDEO_DIR=videos
TARGET_OSC_PORT=32000

Really only needs to play with these.

MAX_PLAYTIME
MIN_PLAYTIME
VIDEO_DIR
TARGET_OSC_PORT

Needs ffmpeg installed. Brew is easiest.

  • install brew

  • brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-openssl --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265 --with-faac --with-lame --with-x264 --with-xvid

#Roadmap

  • Better way to add videos

  • live watching for uploads

youtube-osc-feeder's People

Contributors

samelie avatar

Watchers

James Cloos avatar  avatar

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.