Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Dronecatcher

macrumors 603
Original poster
Jun 17, 2014
5,278
7,940
Lincolnshire, UK
Prompted by a member's query about audio only playback from Youtube here are two scripts to assist.
Both require installation of youtube-dl (which itself, requires Python 2.7) but are great if you want to listen to a full album or performance from Youtube.
Unfortunately the version of MPlayer used for streaming is not compatible with G3s, so for those, playing after downloading is available with AudioGrab and for G4s and above, AudioStream will stream audio without having to download the entire file.
Once the Youtube URL has been parsed MPlayer plays the audio with a low CPU tax - around 10% on my 800Mhz G4 iMac.
Full instructions are included in each archive.

Recommendation for acquiring your Youtube URL on low end machines is Safari with javascript disabled.

Stream2.jpg
 

Attachments

  • AudioGrab.zip
    7.1 MB · Views: 155
  • AudioStream.zip
    8.6 MB · Views: 141
Last edited:
Prompted by a member's query about audio only playback from Youtube here are two scripts to assist.
Both require installation of youtube-dl (which itself, requires Python 2.7) but are great if you want to listen to a full album or performance from Youtube.
Unfortunately the version of MPlayer used for streaming is not compatible with G3s, so for those, playing after downloading is available with AudioGrab and for G4s and above, AudioStream will stream audio without having to download the entire file.
Once the Youtube URL has been parsed MPlayer plays the audio with a low CPU tax - around 12% on my 800Mhz G4 iMac.
Full instructions are included in each archive.

Recommendation for acquiring your Youtube URL on low end machines is Safari with javascript disabled.

View attachment 911885

Are you using the —get-url and requesting an audio only format?
 
No that can't be done without perhaps using ffmpeg.
[automerge]1588548956[/automerge]
If theory you should be able to integrate this into PPCMC by using ffmpeg with the relevant codecs included.

Yea should be easy to throw in another feature, great idea btw.
 
Prompted by a member's query about audio only playback from Youtube here are two scripts to assist.
Both require installation of youtube-dl (which itself, requires Python 2.7) but are great if you want to listen to a full album or performance from Youtube.
Unfortunately the version of MPlayer used for streaming is not compatible with G3s, so for those, playing after downloading is available with AudioGrab and for G4s and above, AudioStream will stream audio without having to download the entire file.
Once the Youtube URL has been parsed MPlayer plays the audio with a low CPU tax - around 12% on my 800Mhz G4 iMac.
Full instructions are included in each archive.

Recommendation for acquiring your Youtube URL on low end machines is Safari with javascript disabled.

View attachment 911885

An aside:

I get the impression from this and other posts that you listen to only Stranglers-related content 100 per cent of the time, day in and out. :D
 
  • Haha
Reactions: Dronecatcher
Actually, I've revised that - whilst the G3 version of MPlayer can't playback m4a files the one for G4/G5 can, so I've amended AudioStream and it's shaved off a few percent CPU.

By the way I tried what I thought would work but QuickTime didn’t play the audio it was just silent, oh well.
 
  • Sad
Reactions: Dronecatcher
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.