GithubHelp home page GithubHelp logo

audio-split's Introduction

I wrote this script to split a Youtube album-length stream into multiple named and tagged MP3s, because what.cd is down and chaos reigns supreme and sometimes the only version of a record you can get is a 160kbps Youtube rip okay?

Usage:

# get an audio from youtube
youtube-dl -x https://www.youtube.com/watch?v=foobarbaz

# then split it using the data format below
node split.js --out output_path/ --data data.json audio.opus

Data file example:

{
  "album": "Mignonne",
  "artist": "Taeko Ōnuki",
  "tracks": [
    {
      "title": "じゃじゃ馬娘 [Jajauma musume / Capricious Daughter]",
      "number": 1,
      // Number of seconds since the start of the audio file, not the duration!
      "seconds": 0
    },
    {
      "title": "横顔 [Yokogao / Profile]",
      "number": 2,
      "seconds": 278
    },
    // ...
  ]
}

Psst: it's pretty easy to write a transform script to generate a file like that if the album has a Youtube description with timestamps! regexpal.com is your friend.

audio-split's People

Contributors

thomasboyt avatar

Stargazers

 avatar

Watchers

 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.