FAST playback has arrived (Patreon)
Content
Last month I wrote about my critical financial situation. I'm pleased to say that I have since found some part time work, and I'm going to be okay. I don't really want to talk about it more than that since it's not work I enjoy, but I did want to touch on that subject since I think I might have left last month's post on a bad note. I wanted to clear that up. I'm stable with my housing situation for the moment and I have a path forward.

I've taken a liking to Agile development, specifically the concept of weekly sprints. I've been using Github for tracking website issues and I went ahead and created an issue to track the sprint and my progress throughout the week.
First thing I wanted to tackle was the fact that the VOD upload process is ambiguous. Right now I'm the only one developing Futureporn, but if there was another, handing over the job of uploading and processing a VOD for display on the website would be a difficult task.
Until today, uploading required a myriad of tasks carried out across two or three mediums. I would have to log into the command line of my most powerful cloud server, "baba" and retrieve the recorded stream. I would then use CLI tool ffmpeg to combine any disconnected stream segments into one file. Then I would upload the file using Backblaze CLI tool, b2-linux. Then I would pin the file on IPFS using ipfs CLI tool. Next I would open pgAdmin on my desktop computer to bring up the GUI for modifying Futureporn's database. I would copy-paste in the URL and CID output of b2-linux and ipfs into a new row in the vods table of the postgres database. Then I would browse to Fleek.co's website where I'd find the 'Trigger Deploy' button and click it, starting a fresh new frontend build with the new VOD data.
If this seems complicated, that's because it is. That wasn't even the full checklist, which I'll spare you from because it's a boring, repetitive task. I skipped over thumbnail generation, twitter metadata retrieval, and tags, because I forgot about those parts. That brings up another point I want to make which is that half the time I forget something in the upload process, and end up later doubling back to fix something I missed.
I ended up making a checklist.sh script which I would run when I needed to add a new VOD. The script would guide me through each step in order. The script itself would do nothing other than tell me the step and wait for me to press enter before displaying the next step, but it was a great way to keep on track and be consistent in this task with many intermediate steps.
Every now and then I'll hear a good tip from an entrepreneur which I try to employ in my projects. One of those tips is that it's good to run a business like it's a franchise. Every task, every job needs a documented process that can be scaled and duplicated to another building where the business can expand to. Without well-defined processes, the employees would improvise, and brand experience would become inconsistent for guests.
I'm applying this idea to VOD uploads. My goal is to make a Futureporn admin's method of uploading a VOD exactly the same as the viewer's method of uploading a VOD. It's imperfect, but I've implemented futureporn.net/upload which is the first step towards that goal.

Inspiration was drawn from Youtube and Xvideos, sites where users fill out a form and upload whatever video they want. Of course Futureporn doesn't offer the freedom to upload anything just yet. Futureporn's goal and mission is very focused on VTuber hentai, and right now only ProjektMelody is on the menu, but the point is that Futureporn is moving in the right direction of capturing them all... Pokemon!
I made myself laugh. I should do standup.
Ok seriously though. I've nearly finished the May 15 sprint, with one final remaining open issue, missing thumbnails. Let me tell you about thumbnails. Wow, have thumbnails been the bane of my existence for the past several months!
One would think a simple JPG summary of a stream would be a simple thing to put on a website and serve. Maybe it is a really simple thing to do, and I'm too obsessed with using modern tooling which complicates the process, introducing incompatible dependencies on image processing libraries, slowing build processes down, adding fragility via flaky network requests, driving up a bill consuming metered downloads of said requests... wow. A year ago I'd never think I would struggle so much on thumbnails.
The thing is, it's not even a solved problem. It's partially solved, but the solution I'm using depends on packaging the three different optimized versions of each thumbnail image into the same content delivery network (CDN) which serves the website html, css, and image assets. I like this solution because it results in images that load fast.
I don't like this solution because it means that fresh VODs being added to the site require a completely new frontend build, something that is slow due to all the images and their various sizes and formats being dynamically fetched and generated each time and packed in the build output. Sometimes it's so slow that the build server times out.
Caching build assets would solve this problem, but build caches are not something supported on Fleek. I've been thinking of switching to Netlify for this reason and more, an idea I'll touch on later in this post.
Ideally, I could add a new VOD to the site without having to rebuild the entire frontend. Ideally, images would be on their own CDN, and VOD data loaded into the frontend would reference image URLs from said CDN. This is completely doable, but requires a redesign, and probably more money for the CDN. I'm avoiding doing things that require more money, because money continues to be a pain point for me.
Speaking of pain, I'm getting to a place in my development cycle to where I think I need to redesign the entire frontend. I've learned so much expanding the featureset of Futureporn to the point where I realize the number of mistakes I made implementing things. This isn't a bad thing, it's all good. I'm learning, I'm leveling up as a web developer, and things I make going forward are only going to be better. Yeah I made mistakes, but these little failures are necessary and celebrated. Necessary because failure is on the route to success.
Let's talk about new features. Futureporn visitors will see that a select few videos have two icons on the front page. One denotes that a public vod is available, the other denotes that a patron vod is available. As the names suggest, the Patron vod is restricted to logged-in patrons only, and those videos are served by a fast, battle tested CDN called Mux. If you're a patron, check out one of those vods! I think you will be pleased by the small load time and the helpful timeline hover previews.

I'm unsure of exactly how much money the Mux CDN is going to cost me every month, so I'm starting very small by only publishing a certain number of vods to that platform. I'm calling this the Mux allocation count, which is a dynamically calculated variable based on patron pledges. I'm going to wait a month, see what the bill is like, and adjust the Mux allocation count based on what I learn. Right now, the Mux allocation count works out to be 2, but there's a bug which results in more allocations than that number. I'll touch on that more in a bit.
Futurebutt [bot] is a new helper bot I've coded which makes an appearance in the Futureporn Discord server. Futurebutt helps me with some repetitive tasks that need to be run when a VOD record in the database is updated. This is a major improvement for HumanOps and a necessary addition to creating a consistent upload workflow.
Futurebutt is responsible for pinning vods on IPFS, creating 240p encodes and pinning those as well. Futurebutt is also responsible for allocating vods on Mux, based on the muxAllocationCount variable I mentioned earlier. There's a bug here where Futurebutt will allocate vods to Mux, but it won't delete them from Mux when newer vods are added. I'm going to fix this in the coming week.
Finally, Futurebutt generates thumbnails and triggers website builds. The website building function is broken at the moment because Fleek doesn't have a programmatic way of triggering a build other than committing new code to version control. This is something I am going to have to automate with UI automation, reverse engineering unpublished APIs, or perhaps migrate from Fleek to Netlify like I mentioned earlier. I'm undecided on the best way forward here, since Netlify doesn't have IPFS support like Fleek does.
I've made the choice to hide patron names on Futureporn.net. This is only a default policy, but anybody who wants to show their name on futureporn.net/patrons is free to opt-in using the appropriate checkbox on futureporn.net/profile. I've made this change to simplify my Patreon tiers. Instead of needing a separate tier for those who don't want their name displayed publicly, I can now deprecate those tiers by making privacy the default.
Speaking of tiers, I need to recognize a shortcoming of mine. I am not good at checking Patreon and ensuring that I've distributed rewards and marked them as complete. I know I have a few patrons who chose a tier with a specific reward but immediately said they didn't want the reward, they only wanted to support the project at that tier's price point.
Going forward, I am going to remove tiers with rewards unrelated to Futureporn. I think it's too much for me to have all the complexities of Futureporn to manage and improve on, in addition to tracking Patreon rewards and distributing them. I hope that's understandable. I've got a lot on my plate and I need to simplify things where I can.
If there are any patrons out there who signed up for a specific reward that they have not yet received, please let me know. I will make good on my word and get you what you ordered. Two benefits I can think of where this might apply are, "Your URL displayed on Futureporn.net" and "Music (Digital download)." The URL display is something I'm planning on automating by adding a text input field to futureporn.net/profile so anyone with that benefit can use the field to shout out whatever URL they want.
Music downloads are another thing that I might not be up-to-date with. The way Patreon shows that todo list is that it resets itself every month, so I'm not sure who I've sent mp3s to and who already got them. Again, the mp3s are unrelated to Futureporn so I'm going to be removing that tier, but anybody who signed up for that benefit and hasn't got them yet, let me know and I'll get them to you.
I have a lot of big plans for Futureporn and I want to focus as much of my time working on those as possible. The next big thing I want to tackle is the tagging feature. I set tagging as a goal for Patreon pledges at the $180 level. We're not there yet, but I think we're on track to reach it, so I want to get that feature ready.
Lots of gratitude to Futureporn Patrons and supporters. During this May 15 sprint, there was a time when I got stuck on a code problem. I began to feel anxious that I wouldn't be able to solve it. I doubted myself and feared that I would have to give up. That's when I remembered Futureporn Discord, which I opened and saw a few new names. It was a reminder that people want this website to succeed, and I'm not alone in this journey. So thank you! Thank you for joining me and helping me along.