TuneCatcher - A Youtube Audio Player

I've often heard people on the MacRumors PowerPC forum say that they like to use Youtube for audio playback only - listening to albums or gigs etc so don't really require all the CPU intensive donkey work of playing video.

With that in mind I've cobbled together TuneCatcher and TuneStreamer - scripts that play audio only and save on all important CPU cycles.

Included in the install is Choob - a TenFourFoxBox Youtube browser preloaded with a vintage Nokia N90 user agent (hence the groovy app icon) which eschews all the usual Youtube script clutter and allows you to browse for videos quickly and efficiently.

Download and unzip the installer dmg - once mounted there is a choice of two installers. Youtube-dl is a requirement for this package, so if you have it installed as normal or with PPCMC, choose the appropriate installer.





Incidentally, PPCMC is a must have application for any PowerPC Mac - apart from it's core functionality it's also a Swiss Army Knife of essential tools including Python, youtube-dl, ffmpeg, curl and soon, ffplay all in one package without the usual fuss of needing X11 and Macports.


The installer will create a TubeAudio folder in ~/Music and place Choob, mplayer, TuneCatcher and TuneStreamer in /Applications.

Use Choob to browse for your desired clip, right click and Copy Link Location, then click on TuneCatcher in the dock (assuming you made a shortcut earlier.)
The link is passed to youtube-dl, the m4a audio file is downloaded and opened by MPlayer where the normal keyboard shortcuts apply for playback control.
When the clip is finished (or stopped) it is moved to ~/Music/TubeAudio/Archive.




Note, the m4a encoding used on Youtube is problematic to PowerPC Macs - without conversion they'll need to be played in either MPlayer or VLC.

If the Youtube clip you want to play is of a length unreasonable to download, choose TuneStreamer instead but be aware this will not keep a copy of the clip.
Also because of piping the stream via stdin the normal MPlayer controls aren't available.

Download is available here.

Download the G3 compatible version here. Unfortunately, mplayer for G3 doesn't accommodate streaming or playing m4a audio, so using TuneCatcher, a standard 360P video is downloaded which mplayer plays without processing the video.

MPlayer keyboard shortcuts for reference:

Pause/Play.....Space
Left/Right.......Back/Forward 10 seconds
Up/Down........Back/Forward 1 minute
9/0................Volume -/+
[ ].................Decrease/Increase playback speed by 10%
ESC...............Stop and quit

Blogging Like It's 1999

Pardon the lazy Prince pun/reference but all will become clear...

While writing theses posts will always primarily be done in front of a Mac screen, it's nice to have the ability to write when out and about too - enter my pocket sized, vintage Oregon Scientific Osaris from 1999 - a budget copy of the mighty Psion Series 5 PDA.

Being an 18Mhz EPOC32 device, this thing only gently nibbles away on two AA batteries and saves files to a Compact Flash card - so even in the worst case scenario of the main and backup batteries failing, my data is safe.

 



Whilst working on a post it's no sweat to swap the Compact Flash card out of the Osaris and use an adaptor to share it with a Mac, however, I'm reluctant to place repetitive strain on the card hatch and connector on the Osaris - I'd rather use it's friction and fatigue free infrared port.

This is by necessity more than anything, as unfortunately, buying the Osaris secondhand, it didn't come supplied with the original serial connector lead so the only connectivity available is the infrared port and luckily, I do have an old USB infrared dongle - however, it only works with Windows 98/ME/XP.

At the moment I don't have a PC - old or otherwise - permanently setup but what I do have is Virtual PC 7 on my Powerbook.


So, after installing Windows 98SE to a 1Gb virtual drive, and doing a few optimisations to keep the CPU demands down, the workflow is as follows.


With the USB infrared dongle attached and in range of my Osaris with Desktop Link activated, I start Windows 98 and launch PsiWin (the connectivity manager designed for Psion PDAs but also fully compatible with the Osaris.)

Once the infrared serial connection is made, from PsiWin I can browse my Osaris and it's Compact Flash card and exchange files - in this instance, an EPOC Word document is imported and converted to a TXT file (MS Word and other options are available too.)

The same applies in reverse if I wanted to import a document to the Osaris with PsiWin converting the file to a native EPOC version.





Once within Windows, my document is readily accessible to OSX where I can work on it or share it to another device via WebDAV.


Virtual PC often gets a rough deal in the PowerPC sphere as being a poor substitute for Windows but I've had good use out of it - the key is to have reasonable expectations, use the oldest compatible version of Windows for your applications and to realise it's performance doesn't scale with the spec of your Mac.

wicknix

 In my two plus years away from this blog, I was also away from using PowerPC hardware most of the time.  So I hadn't been keeping up with the development of PowerPC software much.  Then I come back to find someone named wicknix who frequents the Mac Rumors PowerPC forum.  This guy has been very busy developing PowerPC and early Intel software, and he's done some pretty amazing work for Linux and Mac OS X users alike.  

He also has a blog called Random Mac Stuff where you can find all his software.

So I just wanted to help bring awareness to the amazing efforts this guy has made.  I have had written correspondence with him, and I can tell you he's extremely humble.  I was trying to recruit him to write here, but he's just too busy.  So thanks for all your work, wicknix!   


A list of everything he has done and/or contributed to:

Arctic Fox Browser for 10.6

InterWeb Browser for 10.6 & 10.7+

SpiderWeb Browser for 10.6 & 10.7+

Software for 10.4 - 10.7 and PowerPC Linux

Lubuntu PowerPC 12.04 & 16.04 Remix live DVD + installer

Debian Sid PowerPC Remix installer

How to install Fienix Soar on 32-bit PPC Macs

How to watch Twitch Streams on 10.3/10.4/10.5 (he contributed the twitch script)

Security of the mind

 Security is a very dynamic sort of thing quite often.  It changes a lot over time, but it also often stays the same in many ways.  For the average user out there, they only have the know-how to rely on the OS for all potential security threats.  We all have experience using the internet every single day, but some don't utilize the best security tool on earth...  your own sound judgment. But sound judgment often derives from experience.  From experience comes confidence, and from confidence comes a sound mind.  Confidence should never be cocky though, because that will get you into trouble eventually.

When you consider that Apple hasn't offered a security update for a PowerPC OS since 2009...  we really are on our own with OS X.  But that's okay, because we the users dictate how secure we are through our own habits online.  And I am guilty myself of not having the confidence in some to be their own best security in my past writing here.  I don't know if that ever hurt anyone's confidence back then, but I certainly didn't help it either.  This changes now to a personal policy of encouraging confidence once people are put on the right path.  I'm going to instill confidence rather than fear. 

We notice things much easier when of a calm mind, and awareness is very important with security.  

So the point here is don't allow the lack of security updates on OS X to ever stop you from using it online.  Look no further than TenFourFox for modern web compatibility and security.  We really owe so much to Cameron Kaiser, because he alone has kept Mac OS PowerPC a viable internet platform.  So let's give him the respect he deserves.

I have been away from PowerPC Linux for a few years now, and need to re familiarize myself with it again, so for the next few months at least, my writing will be Mac OS related, and to me that's a great place to start after a two year hiatus here.

So for the next few months I will be doing a series of writings on OS X PowerPC security in 2020/2021, and how to best protect yourself.  To instill in you what I have to offer in me to keep yourself safe on operating systems that are 11+ years old now.  Only now instead of a Sawtooth, I'm using a G4 mini that dual boots Tiger and Leopard.

You're all going to have hardened ceramic armour shells when I'm done with you!  I hope you all can deal with that! 

WebDAV and Goliath

It's been a few years now since Dropbox ceased support for PowerPC and although there was a community workaround that worked for a while, that too fell by the wayside with ongoing developments at Dropbox.

Folder syncing has never been a specific requirement for myself but having convenient access to a central repository across various machines is always useful - for this I use the WebDAV protocol supported by various online storage providers either via Finder in OSX or with the excellent WebDAV client, Goliath (which I personally find delivers faster file transfers.)

So, after signing up to an online storage provider - one that includes WebDAV access - in OSX Finder go to Go/Connect to Server (or press CMD+k) and enter the provider's WebDAV URL and press Connect. Enter your username and password in the next dialogue and tick box to remember password.

All being well, the remote server will be mounted onto the Desktop and be available to all standard file operations just like any attached storage. For convenience, I make an alias of the mounted drive, move it to Documents and drag to the dock to provide instant access in future.
Note - to prevent .DS_Store files cluttering up your remote drive with this method, run the following in Terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true




The procedure is similar when using Goliath - making a new connection, enter URL, username and password and once connected, go File/Save Connection As to save a WebDAV bookmark that can be launched from the dock if desired.

Of course, the advantage of Goliath is that it's available for OS9 too - it's quite remarkable at this late stage to still have the convenience of online connected storage on such an old OS.



In addition, all these online storage providers have a web interface accessible from anywhere and usually have purpose built mobile apps for Android and iOS - in addition, there's always mobile WebDAV clients too - even my beleaguered Windows Phone 10 powered Lumia 930 can get in on the action with it's WebDAV equipped Total Commander file manager!



WebDAV access is a refreshing change in these twilight days of PowerPC - an online service that spans legacy systems and doesn't tax the CPU in any way.

For those wishing for a more Dropbox like folder syncing facility, with a compatible provider, rsync can be utilised for effective backups but for now WebDAV suits me fine.

These are a few WebDAV compatible providers but there will be more - if anyone has any suggestions please ad in the comments:

Adrive

4Shared

SwissDisk

User Agents And The Art Of Online Camouflage

The user agent is a digital calling card presented by a web browser when it visits a website, identifying it and telling the website what content is best served to that particular web browser - the simplest example being the web browser on a mobile device will receive content more proportionally formatted for a smaller, portrait screen whereas when viewed from a laptop or desktop, the web browser will deliver the fully featured site.
This user agent can also inform the web site what features it should deploy - an old browser will perhaps be incapable of rendering certain content, so that content can be effectively cut out.

This all becomes relevant, especially to us PowerPC users, when it's possible to present an alternative user agent from the one your web browser natively employs - preferably to lessen CPU load and rendering times.

This has been a feature for a while with standard browser options or add-ons that facilitate selecting different user agents but what I shall discuss in this post is site specific user agents ie user agents that present themselves on a site by site basis automatically as you browse.

This legacy feature is present in the PPC spins of ArcticFox and IceWeasel but wasn't present in TenFourFox (which I'll utilise here) until I asked the developer to reintroduce it which he very generously did.

In the TenFourFox preferences, I leave the user agent at it's default setting and add site specific user agents with TextWrangler editing the TenFourFox prefs.js file that resides in

~/Library/Application Support/Firefox/Profiles/go96ey5b.default

the last part of that location string may look different on your machine but will always terminate with .default.

This is an example string added to prefs.js:

user_pref("general.useragent.override.youtube.com", "NokiaN90-1/3.0545.5.1 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1");

In this instance, browsing to any youtube.com address will invoke the Nokia N90 user agent automatically - presenting a less busy page, free of Youtube's normal CPU hungry "features" and allowing access to the video in 3gp format (more of this in a future post.)

This process is repeated for all the sites you wish to include - a laborious task admittedly but one you'll only have to do once.

User agents can be copied from online sources or you can even use those included within TenFourFox as standard - select one in preferences, then navigate to whatsmyua and copy/paste the string.

Another method for adding site specific user agents is from within the browser itself - navigate to about:config and right click to add a new string. As per the example above, general.useragent.override.youtube.com is added as the preference name, then NokiaN90-1/3.0545.5.1 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1 is added as the string value.

Generally, I will use either the oldest browser I can reasonably get away with or a Nokia mobile user agent for sites where I don't need all the CPU sapping bells and whistles - not only does this show mercy to your ageing PPC Mac but also loads pages quicker and in some cases is refreshingly distraction free.

Some example screens of TenFourFox pretending to be otherwise....