News for hackers. Stuff that matters.
Re:OBS Studio 27.0 by geerlingguy on Tuesday June 01, 2021 @05:15PM (#27361403)
Excited for this release since it contains M1 Apple VT H264 Hardware Encoding support[1] — I know on my Intel Mac, OBS would massacre the CPU if I didn't have the hardware encoding enabled. On the M1 it's not quite so bad, but being able to use hardware encoding does save a lot of CPU cycles when streaming at higher bitrates!

[1] https://github.com/obsproject/obs-studio/issues/4170

Re:OBS Studio 27.0 by agbell on Tuesday June 01, 2021 @06:30PM (#27362299)
So I've had the reverse issue. With hardware encoding on and external monitors plugged into my intel macbook, everything would overheat and I would get kernel throttling of everything.

The external monitors cause the GPU to draw more power, but I'm not sure why that combined with hardware encoding in OBS caused issues. When I switched to software encoding the cpu was a bit higher but everything was fine.

Apparently this is related to VRM overheating and people have workarounds posted on reddit, but it seem like switching to software encoding made it go away for me.

https://www.reddit.com/r/macbookpro/comments/gs6bal/2019_mbp...

https://support.apple.com/en-ca/HT207359

Re:OBS Studio 27.0 by j45 on Tuesday June 01, 2021 @06:51PM (#27362481)
I’ve had the same issue, it’s critical to get fans to cool your MacBook pro since they are not capable of cooling themselves under load, especially i7 or i9.

I have cabinet fans under mine and it works great, just don’t ask me to use a MacBook Pro as a laptop.

Re:OBS Studio 27.0 by geerlingguy on Tuesday June 01, 2021 @09:42PM (#27363822)
And if not fans, I actually just elevated my MacBook Pro on a cooling laptop stand (with no ventilation) and that was enough to keep it cool for hours-long streaming.
Re:OBS Studio 27.0 by j45 on Tuesday June 01, 2021 @11:38PM (#27364557)
Very true that helps as well. A small $2 USB fan can be enough to keep air moving but not cool
Re:OBS Studio 27.0 by samhaddow on Wednesday June 02, 2021 @12:32AM (#27364870)
Also refer these 4800+ posts at macrumors...

https://forums.macrumors.com/threads/16-is-hot-noisy-with-an...

Re:OBS Studio 27.0 by fluential on Thursday June 03, 2021 @11:17AM (#27382596)
Re:OBS Studio 27.0 by herpderperator on Tuesday June 01, 2021 @05:47PM (#27361809)
Note that Apple Silicon (arm64) support is still in progress and all the builds released to date have been amd64 only.
Re:OBS Studio 27.0 by sillysaurusx on Tuesday June 01, 2021 @06:09PM (#27362067)
Any idea when it’s coming? I know no one likes that question, but... well, I have an M1 Air, and I’d love to stream some coding sessions or tutorials. So arm64 support would be tasty.

Is there some way we could help with the arm64 patching?

Re:OBS Studio 27.0 by roneythomas6 on Wednesday June 02, 2021 @01:10AM (#27365076)
I actually managed to build OBS for M1 Mac. All the dependencies do have arm support. I only had to make small changes in the cmake file for arm64. Right now I am stuck at the part of signing the OBS app package. Without code signing Mac cannot open it.
Re:OBS Studio 27.0 by smoldesu on Tuesday June 01, 2021 @06:32PM (#27362328)
My smoothbrained take is that it'll be a little bit, since optimizing it for ARM is going to take a little effort. Like GP said, it's really about the encoders slowly being updated to better support the hardware.
Re:OBS Studio 27.0 by stephen_g on Tuesday June 01, 2021 @09:50PM (#27363870)
There’s still also the lack of Metal support - OBS still uses OpenGL to composite everything together, and Metal should be more highly optimised on newer macOS versions and the new chips than the long-deprecated (on Mac) OpenGL.

Somebody actually did write a Metal renderer and contributed it in a pull request a few years ago. The comments were like “Oh, why did you do this? OpenGL is fine” from the lead developer. The backend just didn’t get merged (I think the developer who contributed it didn’t have great English so struggled to explain why they’d want it, and nobody who commented really seemed to know much about the Mac platform… the code looked fine though).

So that renderer was never merged, and then about six months later OpenGL was deprecated on macOS. The contributed backend is probably quite out of date with changes to OBS’s APIs etc. now.

It’s a shame, there just don’t seem to be many developers contributing to OBS that care at all about Mac as a platform, so I wouldn’t hold my breath if I was you for them doing much “optimising for ARM”.

Re:OBS Studio 27.0 by smoldesu on Wednesday June 02, 2021 @01:32PM (#27371551)
> there just don’t seem to be many developers contributing to OBS that care at all about Mac as a platform

This has definitely become a trend as of late. If I had to guess, the lead devs are (rightfully) frustrated that Apple depreciated OpenGL so quickly for a proprietary solution that nobody really likes working in. Furthermore, maintaining a Metal compositor would be a royal pain in the ass, since there's no real middleware layer to help with debugging or tuning.

Honestly can't blame the poor people. Maintaining Mac software is a neverending chore.

Re:OBS Studio 27.0 by roneythomas6 on Wednesday June 02, 2021 @01:15AM (#27365105)
I was able to build OBS from source for M1 Mac. I don’t know how optimized it is. But with few changes to the cmake files you can build it without errors. The only part I am stuck is with code signing. You need to code sign, if not it crashes.
Re:OBS Studio 27.0 by haberman on Tuesday June 01, 2021 @05:36PM (#27361675)
Wow that seems like a significant feature. I'm surprised it is not mentioned in the release notes: https://github.com/obsproject/obs-studio/releases/tag/27.0.0
Re:OBS Studio 27.0 by singhkays on Tuesday June 01, 2021 @07:40PM (#27362876)
That doesn't seem like a new feature. I can access that encoder on OBS 26.1.2 on a M1 Mini under Output -> Recording -> Encoder
Re:OBS Studio 27.0 by amnah on Tuesday June 01, 2021 @06:58PM (#27362539)
any chance you know if they plan to support Apple M1 hevc as well?