Tell HN: Videos with privacy

2 points by simgidacav ↗ HN
Hello my dear hackers

I like watching videos, but I want to minimize youtube interaction with my browser. This for various reasons, you know them already.

I want to share with you my recipe for this:

1. Install youtube-dl, ffmpeg and mplayer

2. Combine them with scripts or shell functions like this:

  function ytmusic    { youtube-dl -o - $1 | ffmpeg -i pipe:0 -vn $2 }
  function ytview     { youtube-dl -o - $1 | mplayer - }
  function ytlisten   { youtube-dl -o - $1 | mplayer -vo null - }
3. Use the functions, or youtube-dl directly to {listen,save{ videos,audios}}

Also, the last version of http://duckduckgo.com allows you to fetch youtube urls without entering youtube. Once you've got the url, youtube-dl can do that for you.

2 comments

[ 0.21 ms ] story [ 20.9 ms ] thread
What is the difference between music and listen?
While `ytmusic` saves it on the hard drive (second parameter is the name of the file), `ytlisten` streams that directly into mplayer.