Git Product home page Git Product logo

tube2cast's Introduction

tube2cast.sh -- listen to YouTube videos while washing the dishes

tube2cast.sh does only one thing: it downloads videos from YouTube (actually, from any website that youtube-dl can talk to) and then serves their audio portion over HTTP. You can then stream the audio to your smartphone or similar device.

I wrote it because I want to be able to "watch" to talks and tutorials on YouTube without having to deal with their app.

The script is pretty simple and depends on python3 and youtube-dl. I'll be expanding on these notes and adding features as I need them.

Usage

By default, tube2cast.sh downloads a video, converts it to vorbis and serves the file at port 8000. If that's what you need, simply run

tube2cast.sh [link to YouTube video]

To download this video from YouTube, have it converted to mp3 and served at port 8080, run:

tube2cast.sh -f mp3 -port 8080 http://www.youtube.com/watch?v=dQw4w9WgXcQ

Troubleshooting

  • "tube2cast.sh is using the built-in options for port and filetype.
    • You are probably giving the YouTube link before the options. Instead, run tube2cast.sh like this: tube2cast.sh [options] [link to YouTube video].

TODO

  • Implement a way of showing your local IP, for convenience. I could grep and awk this from ifconfig, but not everybody uses the same interfaces.
  • Create install scripts and package for Arch Linux.
  • Enjoy the script.

tube2cast's People

Contributors

rberaldo avatar

Stargazers

 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.