winvid – A slim YouTube to WMV converter
Posted in Other Projects March 18th, 2021 by dotcomboom

A couple days ago I hacked together winvid, a site that lets you download YouTube videos as 144p or 240p wmvs that you can play on Windows Mobile phones or other suitably older equipment.

The backend is a very simple Flask application that runs youtube-dl for downloading the video, and then ffmpeg to convert it into two qualities of WMV. First, it converts the downloaded mp4 into the 240p version, and then that is sampled down to an additional 144p mono version. This is done to save processing time, as the conversion from mp4 to wmv is actually the longest part of the process. Longer videos, naturally, will take a longer time to convert than shorter ones. Just hold on the line a few minutes. Once it’s done, it refreshes the index which lists out all the videos cached.

Regrettably, the site itself will not work on mobile IE due to Replit’s new encryption practices—yet another victim of the ever-spreading “HTTPS-first” philosophy. It will still work on RetroZilla and Opera Mini 5.1 however, so old PCs and pocket devices can still download to their hearts’ content, at least for now.

On mobile, remember that data charges may apply if you’re not downloading over Wi-Fi. If you’re on a prepaid plan like I am, you may find it beneficial to transfer the videos through Bluetooth/microSD/USB, what have you. I have gotten it down to about 2mb per minute for the 144p mono version so it’s just about as efficient as it could be on data, though results will still vary.

As well as Windows Mobile and Pocket PCs, I’m confident that this would be very useful for less equipped, retro processors as well–think your Pentium II-era, and potentially your XP-era machines. People throw 1080p video at these things and when they start skipping frames, deem them useless. In reality, 240p and even 144p are still quite watchable for a lot of videos so long as you aren’t narrowed into the details. I’m looking forward to trying it out under RetroZilla and WMP on some bare metal when I get the time.

It’s a small and niche pet project, but also pretty hackable and adaptable. If you’re the type, I encourage you to fork it, make changes to it, that good stuff. I’ll note that this definitely can be run over a local network as well with a bit of setup. I’ve found it useful, and hope it is for you too.

And now for something completely different
Posted in Reblogs November 19th, 2020 by dotcomboom
Ashens and Algomusic!
Posted in Music, Software January 29th, 2020 by dotcomboom

Here’s a fun fact: you know that opening jingle before every one of Ashens’ videos? I had learned recently that that was a clip of procedurally generated music, from a program called Dunc’s Algomusic MkIIIb.

This kinda computer-generated music had always intrigued me in a way, things like making computers spit out jazz through neural networks and whatnot. Although Algomusic is definitely more primitive in a sense (compared to all the kilowatts used for training an AI) it’s fun to see what simpler algorithms and random seeds can still do. Also, I can’t help but feel algorithm-based generation has more charm and personality to it, as in the end it’s following a human-written pattern. Neural networks just remind me of the robot uprising.

And I should mention, the algorithm’s input/seed is indeed the song title. Grab a copy of Algomusic MkIIIb (later versions use different algorithms) yourself, type in “Doctor Ashen” and you’ll get to listen to the full thing. How you define “full thing”, though, is how long you’ll be able to handle it, since Algo̶̢̧̯̫̼̞̍m̶͉̼̩̱̠͌̽̓͑̿̈̄͆̂us̴̨̡̨̛̙͚̞̲̜̬̠̣͖̪͋̏͂͂̀̒̋̔͒͘͠į̷̣̮͒̈͊͗͝ć̸̡̢͎͉̳̦̣̹͕̱͈̀̆͐̆͛̓̚͝͠͝ͅ ̶̠̙͓̬̪̠͇̎͐̃̑̚͘stops̵̨̼͕̱̫̣̤̟̖͓̗̿͛̊͜͝ ̷̗̱͒̃̒̓̓̀̾̃f̵̜̻̱̳̑̆͠o̷͙̱͚̝̍͝r̸̯̟̖͖̙̤̥͉͈̄̏̈́̍̊͛͗͜͝͠ ̶̧̫̟̭͎͇̙̥̫͎̞̜̠͋̋͂̽̔́̏͆̉̆̄̿̚ͅṇ̴̡̲̹͖͇̦͚̰̼̺͕̭͆̊͐́͜o ̴̨̨̺͍̫̩̳̠̳͐̇͐̌̈́̊̃̂͘̚o̶̫̲͈̜̮͙̳͎͕͋̏̒̀̇͊́̂͒ņ̸̢̲͓̲͓͉̥̣̝͈͆͆̄͌̏͊̉̚͘͠e.

You can hear a portion in this video where he reviewed a bunch of these fake iPod radios:

The actual mad lad put this up on FM radio, for all to hear, just to test some Chinese iPod clones. Bless him.

And, of course, I did a fair bit of Algomusic testing myself as well:

[10:56 PM] Cammy: we sound epic
[10:56 PM] lince euroasiático: interesting bit too is that the samples are wavs that can be just swapped out
[10:56 PM] Cammy: man i want the theme to a calelira video game to sound like this
(Bonus: Ever wondered where this song came from? Here it is! I’d get down to it.)