Listen to Youtube videos sound (only)

Everything about X, Gnome, KDE, ... and everything running on it

Listen to Youtube videos sound (only)

Postby Deblib » 2018-10-14 18:06

Hi! is there an application in the Debian repositories to listen to Youtube videos sound (only) and create playlists?
Deblib
 
Posts: 102
Joined: 2016-05-14 14:41

Re: Listen to Youtube videos sound (only)

Postby pylkko » 2018-10-14 19:46

I am not sure what you mean exactly, like do you want to not download the video content, or would you be fine with just not watching it?

Because for sure you can watch youtube videos on VLC and it has an option to disable video track, therefore you hear only audio.

There is also an mpd like daemon called "mopidy" in the debian repos that has a youtube plugin, you can therefore listen to youtube video audio, make playlists whatever.

But I believe these both download the whole video - possibly with youtube-dl and then just extract the audio
User avatar
pylkko
 
Posts: 1353
Joined: 2014-11-06 19:02

Re: Listen to Youtube videos sound (only)

Postby shep » 2018-10-14 20:06

To do this on the fly:
https://gist.github.com/daz/93242c47b785c3019c2a2aec98f85e65

If your goal is to get and save the audio, you can do it in two steps:
1) Download the video
2) Extract the audio w/ ffmpeg - lots of online tutorials on how to do this along with format options (ogg vs mp3 vs flac).
shep
 
Posts: 223
Joined: 2011-03-15 15:22

Re: Listen to Youtube videos sound (only)

Postby Proinsias » 2018-10-18 09:48

mps might be worth a look
https://github.com/mps-youtube/mps-youtube

youtube-dl can extract audio (-x) and works well with playlists in that it can skip errors, transcode etc. I've not used it for streaming audio only playlists though.

mpv has a --no-video option and can leverage youtube-dl for downloading/streaming.
Proinsias
 
Posts: 4
Joined: 2018-10-18 09:32

Re: Listen to Youtube videos sound (only)

Postby stevepusser » 2018-10-18 18:23

I kind of remember seeing some app for this on the OMGUbuntu or webupd8 blogs, but will leave the search up to you. If you can find it, I would try and help build a Debian package, though.

VLC also seems to be able to do just about anything, so there's no doubt some command line way to get to just play the audio from a Youtube stream, though IDK about playlists.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10130
Joined: 2009-10-06 05:53

Re: Listen to Youtube videos sound (only)

Postby debiman » 2018-10-21 14:01

Proinsias wrote:mps might be worth a look
https://github.com/mps-youtube/mps-youtube

youtube-dl can extract audio (-x) and works well with playlists in that it can skip errors, transcode etc. I've not used it for streaming audio only playlists though.

mpv has a --no-video option and can leverage youtube-dl for downloading/streaming.


+2 for these suggestions.
User avatar
debiman
 
Posts: 3017
Joined: 2013-03-12 07:18


Return to Desktop & Multimedia

Who is online

Users browsing this forum: eveanne and 6 guests

fashionable