The grind of streaming on Twitch

Update 2023/03/26:

Turns out streaming gunpla instead of video games helped so much more in getting over 3 average viewers at the same time. People also feeling more engaged and tend to participate much more in chat too.

That was really unexpected but I’m fine with that because I liked streaming my build of the HG Gundam Aerial:

I will definitely do more of that and improve my setup since I have no plans of stopping. I’ll write up a post about the setup once it’s more set in stone.

Original post:

As I’ve announced previously on YouTube and also on the blog I’m trying to get a bit more into streaming. The grind isn’t easy because the path to affiliate has some specific requirements that are actually a bit hard to achieve.

Path to Affiliate

This is what it looks like:

The harder part of it is getting an average of 3 viewers because if I stream towards an audience of no one then I’m just digging down.

I also tend to get much more views on YouTube but more on that later down the post.

Streaming on multiple platforms is forbidden

Once affiliated with Twitch I won’t be able to stream to Twitch and YouTube at the same time. Streaming towards a Restream Docker container was really convenient to automatically upload my VODs to YouTube but it increases the stream latency so much that the interactions are slow.

Once I gain my affiliate status I won’t be streaming to two platforms at the same time.

Streaming on YouTube?

To enable monetisation on YouTube there are different rules:

Getting at least 1k subs is easier than keeping viewers engaged for 4k hours.

I’m thinking of trying something with the public shorts views but that would mean that I need to line up some content and be as widespread as possible.
I could edit some of my VODs on YouTube to extract some highlights but there could be much more work than I’m expecting.

I’m also not very fond of YouTube shorts as I classify that under “infinite scrolling brain dead content for zombie”.

Conclusion

Streaming is a grind and it ain’t easy.

‘Nought said.

Going into 2023

After a pretty full year of me finally committing to at least one video per month on my YouTube channel (in French) I’m thinking about getting much more into streaming because why not?

In November 2022 I streamed Breath of the Wild and I loved every second of it as usual. I’m not sure if committing to just one language will bring me success but I can’t do more than attempt tag my streams as multilanguage.

After that I went to Japan and thought about vlogging about it, honestly it’s not performing well on YouTube so I’m a bit bummed but that’s my fault for having no idea about what I was doing.

For 2023 I plan on trying to build some streaming tools for me to use as a way to avoid depending on external services and so the next tool I’m thinking about building should be my own multi chat reader for Twitch and very hopefully YouTube. I still need to figure out how to properly use that YouTube API and it doesn’t look fun nor does it look straightforward…
At least Twitch uses the IRC protocol.

I hope my streaming attempts will be met with a bit more success even though I’m not trying to transition into being a real streamer. I just want to get better at it. Making money would be some sort of bonus but clearly not what I’m aiming for (it could pay for stuff).

Other than that I’ll be gaming hard, coding hard and trying to keep up with the global apocalypse going on since 2020.
Fun times I swear.

No ShadowPlay overlay in games, no recording after install a Stream Deck

I’ve recently purchased a Stream Deck MK2 by Elgato (Corsair) after playing around with the mobile app for a while and planning out some profiles for stuff like video editing and streaming.

It’s honestly a nice piece of equipment but I’ve had it for less than 24 hours and I’ve already found some problems.

Symptoms

After running the Stream Deck software to configure the keys and browse the plugins that are available I noticed that my ShadowPlay overlay isn’t showing in the critically acclaimed Final Fantasy XIV, which is unusual.

I closed the game, relaunched it, even rebooted and nothing. Time to try another game like Monster Hunter World, same. I confirmed that the main menu would show up but I had no overlay showing the replay buffer running.

Weirder was when I attempted to record it would ask me if I wanted to enable desktop recording. That’s when I started thinking that some software was grabbing ShadowPlay and keeping it to itself without ever releasing it.

I was looking for the icons on the bottom right

How to blacklist apps from ShadowPlay

The only way to fix this is to find a way to forbid ShadowPlay from hooking into it and of course Nvidia doesn’t give us tools to deal with that.
But on the bright side we have third party tools and I used the NVIDIA Profile Inspector, download a release here.

Download it, run it and the in the box on top search for Discord:

We will now add the StreamDeck.exe utility to that list by clicking on theĀ add application to current profile button, browse to your Stream Deck installation folder and addĀ StreamDeck.exe to it.

You might need to relaunch the Stream Deck utility, relaunch ShadowPlay through GeForce Experience or even reboot.
After that the utility will no longer trigger the overlay notification you get when you run a game and you should be able to record gameplay without enabling desktop recording.

Closing notes

I’ll make a proper post about how I use it at a later date (maybe) but for now I’m pretty much pleased with how easy it is to configure and I have started experimenting with some plugins such as Discord (mute/deafen toggle), iCUE profile changer (for my Corsair iCUE H150i RGB PRO XT) and a plugin to show CPU and GPU temps with HWiNFO.

I’ll get started with streaming a bit more often I guess and will improve my general workflow and battlestation setup.

Corsair AIO resetting randomly with HWiNFO running

For the past two weeks I’ve had my Corsair iCUE H150i RGB PRO XT resets randomly. This happened when I swapped my Nvidia GTX 1080 for an RTX 3080Ti.

So much went wrong for no reason that I was questioning my sanity and how good I build computers.

Conflicting monitoring

It happens that I also run HWiNFO to monitor my hardware, not that IĀ need to but just because I want to. The thing is that my AIO started reset itself and iCUE would break randomly, under load or while idling.

There was no pattern, I thought the problem would be coming from the cooler itself or the motherboard.

It turns out that HWiNFO might conflict on rare occasions with iCUE, Corsair and Asetek coolers. How do I know it might be that?
I didn’t run HWiNFO since yesterday and my AIO didn’t reset once or default to hardware RGB.

Setting up HWiNFO to not conflict with the AIO

Honestly when it comes to making two pieces of software not conflict all I can imagine doing is just turning off one of them. However this isn’t a solution for Corsair iCUE and my cooler still needs to work with the curve I setup.

I’ve started running OCCT to diagnose some stuff on my PC and found in the settings some checkbox for Corsair stuff. I thought to myself that HWiNFO might have one too.

All I need is to uncheck this box and I should be good to go.

Corsair iCUE might still fail

I like Corsair but iCUE can be garbage sometimes and this isn’t acceptable when the software is in charge of interacting with cooling.

Sometimes the sensors will no longer update in the dashboard and in the cooling settings, thus making it impossible to follow the temperatures and fan speed.
When this happens all I need to do is restart the iCUE service but I feel like it shouldn’t hang and I can’t help but be concerned about it.

Now the good news is that I no longer need to RMA the cooler. I can focus on other problems.

The cheating problem of Final Fantasy 14

It’s weird that we can disagree on what’s cheating and what’s not sometimes, so I guess this is just my opinion.

Following a discussion I found on redditĀ and after listening on Discord to someone justifying using those third party tools to know the target’s moves in advance and even getting “help”, I can’t really believe that people are defending the use of those tools.

While some do claim that it improves the accessibility, I think that it solves the problem in a bad way.

Let’s talk about one tool in particular first.

What is Cacbot?

As described on GitHub it’s an ACT overlay that provides raiding tools for Final Fantasy XIV. Presented like that it doesn’t seem like much until you start looking at the screenshot below:

Cacbot taken from a YouTube video

On the middle of the screen there’s a notification and an order to avoid the next action the boss will do: Get out of front.

It can’t be made more obvious than that. Notifications and automatique callouts are accompanied with a bell sound or whatever is setup.

On the top left we have a timeline of actions:

These actions have a countdown on the right so you know what will happen and what to expect.
It does other things too and it’s not the only kind of tool that I would call a cheat.

The game’s stance on third party tools

A post was made on the Lodestone about third part tools. Basically third party tools are strictly prohibited, they say they will suspend and permanently ban repeat offenses. Do they really ?

Well let’s say that they did ask players to notĀ push in this video:

In the case of ACT, it permits users to graph the DPS and other numbers, how different is that to typing the numbers manually on a calculator?
Yoshida argues that there’s no end to such a conversation and he’s right.
The whole video is interesting on its own so check it out.

The part where basically players shouldn’t push it is during the harassment part. Players shouldn’t be judging and discussing other players numbers. Player shouldn’t discriminate based on numbers shown in a third party tool.

On my part I can’t defend parsing because at some point we all meet a very toxic player telling you how to optimize your damage output. If the analytical tools like DPS meters were used only on a personal level, with no DPS shaming, then I don’t think these tools would be an issue.
Some great analytical tools exist such as xivanalysis that helps you improve your rotation. But like the music says one brings shadow, one brings light

But what about the Cacbot tool mentioned above? Well to me that falls in the category of cheats since it appears to be able to display a timeline of actions that a target will take.
This does affect my experience too and I do not consent playing with cheaters.

No running anticheat

Final Fantasy XIV has taken the approach of not running a classic anti-cheat with the game and that’s ballzy. Any other game would be running along with some kernel driver monitoring the game or some sort of other implementation just to make sure the players are playing by the rules.

Not having to deal with the down sides of an anti-cheat is great as it doesn’t impact the game’s performance.

Conclusion

Cheaters sicken me.

If you need a third party tool to do the callouts or you do callouts based on that tool then you shouldn’t be bothering with the game. Especially if you suck at it with cheats.

Don’t defend the use of the Cacbot, it’s like having a wallhack in FPS. You know what’s coming. You know how it’s coming.

And don’t you dare talk to me about how you hate spoilers if you have a precise timeline for each and every action the boss is going to do. You are the one spoiling the fight and you are affecting my game with your cheats.

Discord animated voice PNGs

Update 2023/05/03

Use Reactive.Fugi.Tech instead, it’s easier. You can setup your profile pictures and share a link to be integrated into OBS. It just works.

Original post

When building your streaming overlay you might want to add the other users that are in your current vocal chat but you want to customize a bit the way it’s displayed.

Discord doesn’t offer any of those options natively but with OBS Studio it’s possible to use some tricks.

CSS & web knowledge required to understand how to use CSS and how to link images.

Setting up the widget

Nothing really hard here, got to the Stream Kit page for Discord in the overlay section.

Setting up the server and the voice channel to be used will alter the URL so make sure you are using the right channel, but it’s possible to use a personal and private channel to use for PNG VTubing.

In OBS within your scene you need to create a browser source and use the provided link as such (no preview until it’s saved):

This is the basic setup. Next we will need a way to get the user ID on Discord.

Setting up Discord

To be able to get the user IDs we need to enable the developer options within Discord. Go to your settings within Discord and in the advanced tab you’ll find the developer toggle:

Getting the user’s ID is as simple as right clicking a name in the chat and clicking on the Copy ID button:

Customizing the widget

Since the widget is a web page within a web view in OBS Studio it’s easy to customize through CSS. Here’s the code to copied & pasted into the custom CSS text area in the browser source:

/*
To be used with the Voice Widget from the Discord Stream Kit
https://streamkit.discord.com/overlay

Do not hotlink images, please rehost them to avoid stealing
bandwidth and keep control over your images, Imgur is a fine
option for this.

Credits:
- Generator by kukushie: https://www.reddit.com/r/VirtualYoutubers/comments/k4q8jw/css_generator_for_discord_reactionary_images_that/
- Edited & improved by SenpaiSilver: https://twitter.com/SenpaiSilver

Please keep the credit chain when making & publishing your changes.
*/

@keyframes speak-now {
    0%  { bottom:0px; }
    15% { bottom:15px; }
    30% { bottom:0px; }
}

body {
    background-color: rgba(0, 0, 0, 0);
    margin: 0px auto;
    overflow: hidden;
}

/* Aligning everything on the same line */
.voice-state {
    display: inline-block;
}

/* Images must be square, change height for it to be scaled
back to 128px wide, or else deal with bad alignments */
.avatar {
    height: 128px !important;
    width: auto !important;
    border-radius: 0% !important;
    filter: brightness(50%);
}

.speaking {
    border-color: rgba(0,0,0,0) !important;
    position: relative;
    animation-name: speak-now;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    filter: brightness(100%);
}

/* Hiding names because the discord parameter on the streamkit
doesn't seem to be taken into account correctly */
.name { display: none; }

/* Default avatar */
.avatar {
    content: url("https://link-to-image.png");
}

/* Users go here: */

.avatar[data-reactid*="new"] {
    content: url("https://link-to-image.png");
}
.speaking[data-reactid*="new"] {
    content: url("https://link-to-image.png");
}

The result is an overlay, where the images change went talking in some way:

  • Brightness is increased;
  • The image is bumped 15 pixels higher;
  • The image changes depending if an image is set for talking only.

Explaining some parts of the code further

It’s important to understand some parts of the properly before running this code, even though it’s just CSS.

First of all you cannot trust users, I recommend using a default image for users that are not part of the CSS to avoid displaying potentially unwanted profile pictures:

/* Default avatar */
.avatar {
    content:url("https://link-to-image.png");
}

This code will replace theĀ img tag’s content with the provided image for everyone that connects to the voice channel. After that it will be possible to set below the specific users with their IDs:

.avatar[data-reactid*="user discord id"] {
    content:url("https://link-to-image.png");
}
.speaking[data-reactid*="user discord id"] {
    content:url("https://link-to-image.png");
}

When we overrideĀ .avatar we are already setting the default image for the user, by specifying that the attributeĀ data-reactid contains a certain string we can refine our selector and make it target a specific user ID (since they are unique).

In this case the same applies whenĀ .speaking is added to the userĀ .avatar.

If you wish to retain round avatar you will need to tweak theĀ border-radius within the first definition of .avatar.

Possible improvements

Since we are dealing with images, animated GIFs are an option and could be used to display an animation with transparency.

If the GIF format doesn’t provide enough colors then it’s possible to fallback to something like the animated WebP or APNG format.

Credits, warranties & notes

This code is based on a generator found on reddit, I’ve changed it to make it work better and fit my own settings. If you modify the code please keep the credit list and add yourself to it.

The code is provided as is and might break one day if the Stream Kit is updated.

This code can be used for son PNG VTubing too.

Fix ethernet interface following ASRock B450M-HDV’s UEFI update on Linux

I own an ASRock B450M-HDV for my home server, it was cheap. It’s currently paired with a Ryzen 3 2200G, but will be getting a Ryzen 5 5600G very quickly.

But to get a more recent CPU I need to update my UEFI from version 1.20 to 4.40. This is great because this means that my home server built cheap can properly evolve and extend its lifespan by a bit.

Symptom

After an UEFI update I always login and attempt to ping 8.8.8.8 but it wouldn’t reach.

No entry for the NIC exists within the UEFI but it is detected:

senpaisilver:~$ sudo lshw -C network
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 15
       serial: 01:23:45:67:89:AB
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:36 ioport:f000(size=256) memory:fcd04000-fcd04fff memory:fcd00000-fcd03fff

Resolving the solution

This is a walk in the part, when querying the NICs I need to get the logical name:

senpaisilver:~$ sudo lshw -C network | grep "logical name:"
logical name: enp7s0

In my case I’m interested in the enp7s0, this will be the string I will have to update in my netplan. In my case there’s only one netplan /etc/netplan/Ā which is 50-cloud-init.yaml (may differ on other installations).

In that file we need to copy the logical name in the ethernets section like so:

network:
    ethernets:
        enp7s0:
            dhcp4: true
    version: 2

Save and then run the following commands to enable the new netplan:

sudo netplan generate
sudo netplan apply

If everything works you should be able to reach the internet, otherwise try rebooting.

Why update the CPU?

I’m been having issues with slow encoding and to be honest the Ryzen 3 2200G was a low cost way of getting started, I need more power and I’ll probably update the SSD to a proper NVMe PCI-E 3.0 one if the need arises.

But by the end of the day I need more CPU performance and I’ll be need more RAM too for a PhotoPrism instance too. Maybe it would be a great moment to properly setup a Grafana dashboard too since I already have most of the docker compose file ready.

So much to do… So much to do…

Update 2022/01/08

I received the Ryzen 5 5600G and proceeded to install it, after working for a few minutes the screen would turn off and sleep. The reset and power buttons wouldn’t register at all, the ethernet would cut off meaning I had no other option than to pull the plug (or use the PSU’s switch).

Continue reading Fix ethernet interface following ASRock B450M-HDV’s UEFI update on Linux

Beef PC

It’s upgrade time and starting today I’ll be rocking a new build.

Old parts

My 2017 desktop has some very old parts dating back to 2011 and 2012. Only the GPU dates back to 2017 and I’ve add some SSD drives last year.

The old parts are:

  • Intel i7 3770K @3.50GHz with 4 cores;
  • 4 times 4GB Corsair Vengeance 1866MHz;
  • Gigabyte GTX 1080 8GB (the newest);
  • Asus Sabertooth P67;
  • Cooler Master HAF-X.

It has also two Samsung 860 SATA SSDs and a 2TB Seagate Barracuda spinning rust drive.

New parts

First of all to get started I’m only swapping the CPU (+ cooler), motherboard and RAM. I’ll be adding two NVMe PCI-E 4.0 SSDs to the lot too.

I’m now rocking:

  • AMD Ryzen 9 5900X @3.7/4.8GHz with 12 cores;
  • 2 times 16GB Corsair Vengeance LPX 3600MHz CL18;
  • Asus TUF Gaming X570-PRO;
  • 2 times 1TB Samsung SSD 980 Pro M.2 PCI-E 4.0 NVMe;
  • Be quiet! Silent Base 802;
  • NVidia RTX 3080Ti.

I’m still shaking because of the price and the sheer excitement I’m getting out of building such a beast. More the excitement actually than the price.

The beef PC

Right now it’s what I’d call the beef PC, even though it’s not overpowered GPU wise and the RAM could be increased to 64GB or even 128GB, I love it the way it is.

I know the DDR5 is going to be a thing, probably next year and we are already talking about PCI-E 5.0 but for now I have a good upgrade and it’s worth it.
I could wait but if I did wait what guarantees would I get that my previous hardware would still perform well enough?
Would the jump in performance and possible launch issues be worth it ?

A platform’s maturity counts very much for me. I believe I’m not missing on much right now.

With that said I’m leaving you to the reference that made me call this PC the Beef PC:

Check out 2ManySnacks’ channel, great content, the featured image is part of that video.

Update 13-06-2022

I GOT AN RTX 3080TI NOW!!!!!