OBS on Apple Silicon

azaire1180

New Member
Hello,

I don't know if I'm the only one but every time I launch OBS, I have a pop up check for update automatically that I can't close since the last update... not to mention that users macsilicone are put on the side a lot
Capture d’écran 2022-01-21 à 01.41.07.png
 

Nickeleye

New Member
Sorry for the rookie question, but I don't really know much about re-compiling code. Is there any way to recompile the Stream Elements Live fork of OBS Studio 27.1.3 for M1?
 

FallingLuma

New Member
Not sure if this could be of use but this is a build of the current Git codebase with reliably working VideoToolbox HW encoder including the bitrate limiter (I removed the VT property causing the framedrops as per this issue: https://github.com/obsproject/obs-studio/issues/5840 and https://github.com/obsproject/obs-studio/pull/5809 was merged which fixed the hangs). Let me know how it works for you, works really well on my end for both recording and streaming: https://mega.nz/file/fxQlnQrQ#dASrIoovSiTFnJjrJmlYIn71zMrUutdAfWrjCvDF4iE
(And yes, the M1 is a beast for software encoding but it's nice to have HW encoding working as well)
 
Last edited:

ditherkins

New Member
(reply to StrayTexel)

Having the exact same issue and would be incredibly appreciative of a functional 4.9.1 websocket version, I use Touch Portal for all my controls while live and it would be amazing to have that back.

On that note though, callimeron has single-handedly saved my production pipeline and livelihood by putting all these together and I just want to say THANK YOU SO MUCH. Seriously, incredible work.
 

Bartyx

New Member
@callimeron thank you very much for your work. The performance of your version is incredible and everything works fantastic. I hope it will transform in the official release.

EDIT: One little thing. But I am not sure you can change it. My streams and records via Apple Hardware Encoder looks like they lost some of colors. It looks like flat camera profiles. I need to try some color grading filters I guess.
 

Heals

New Member
Not entirely sure if it's related to being compiled for M1 or possible differences in the M1's VT H264 encoder but has anyone noticed issues streaming with bitrate limiter enabled?

These settings work just fine and I did a 4 hour long stream to Twitch without issues:

Code:
20:10:53.644: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
20:10:53.660: [VideoToolbox streaming_h264: 'h264']: settings:
20:10:53.660:     vt_encoder_id          com.apple.videotoolbox.videoencoder.ave.avc
20:10:53.660:     bitrate:               5000 (kbps)
20:10:53.660:     fps_num:               60
20:10:53.660:     fps_den:               1
20:10:53.660:     width:                 1920
20:10:53.660:     height:                1080
20:10:53.660:     keyint:                2 (s)
20:10:53.660:     limit_bitrate:         off
20:10:53.660:     rc_max_bitrate:        5000 (kbps)
20:10:53.660:     rc_max_bitrate_window: 1.500000 (s)
20:10:53.660:     hw_enc:                on
20:10:53.660:     profile:               default
20:10:53.660:
20:10:53.662: [CoreAudio AAC: 'adv_stream_aac']: settings:
20:10:53.662:     mode:          AAC
20:10:53.662:     bitrate:       128
20:10:53.662:     sample rate:   48000
20:10:53.662:     cbr:           on
20:10:53.662:     output buffer: 1536
20:10:53.663: [CoreAudio AAC: 'adv_archive_aac']: settings:
20:10:53.663:     mode:          AAC
20:10:53.663:     bitrate:       128
20:10:53.663:     sample rate:   48000
20:10:53.663:     cbr:           on
20:10:53.663:     output buffer: 1536

However VT H264 being a VBR encoder I do get the rare output spike up to 10.000kbit - twitch didn't complain with an overall stream bitrate of 4.800 for 1080p@60 however IMO that's where the 'limit bitrate' setting comes into play. Enabling it however causes streams with "0kbs" to arrive at twitch - e.G. nothing.

I tried various combinations of encoder settings but the gist is that this won't produce any stream output to arrive at twitch while the same without "limit bitrate" works:

Code:
10:05:06.255: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
10:05:06.271: [VideoToolbox streaming_h264: 'h264']: settings:
10:05:06.271:     vt_encoder_id          com.apple.videotoolbox.videoencoder.ave.avc
10:05:06.271:     bitrate:               5000 (kbps)
10:05:06.271:     fps_num:               60
10:05:06.271:     fps_den:               1
10:05:06.271:     width:                 1920
10:05:06.271:     height:                1080
10:05:06.271:     keyint:                2 (s)
10:05:06.271:     limit_bitrate:         on
10:05:06.271:     rc_max_bitrate:        5000 (kbps)
10:05:06.271:     rc_max_bitrate_window: 1.500000 (s)
10:05:06.271:     hw_enc:                on
10:05:06.271:     profile:               default
10:05:06.271: 
10:05:06.272: [CoreAudio AAC: 'adv_stream_aac']: settings:
10:05:06.272:     mode:          AAC
10:05:06.272:     bitrate:       128
10:05:06.272:     sample rate:   48000
10:05:06.272:     cbr:           on
10:05:06.272:     output buffer: 1536
10:05:06.273: [CoreAudio AAC: 'adv_archive_aac']: settings:
10:05:06.273:     mode:          AAC
10:05:06.273:     bitrate:       128
10:05:06.273:     sample rate:   48000
10:05:06.273:     cbr:           on

(Happy to make a new thread for this if it doesn't belong here but since this is "OBS on Apple Silicon" it seems like a good starting point to ask)
 

Heals

New Member
Update on my previous post - I shuffled over GitHub and this seems to be a known issue and had a recent PR merged to alleviate some of the problems:

Ignore that the author mentions FaceBook, I had similar experiences with Twitch.

@callimeron - would it be possible for you to provide an updated M1 build based on the latest github? (or at least the mac-vth264)
I'd try to do it myself but I lack any knowledge what you changed in the build files / process.
 

FallingLuma

New Member
Update on my previous post - I shuffled over GitHub and this seems to be a known issue and had a recent PR merged to alleviate some of the problems:

Ignore that the author mentions FaceBook, I had similar experiences with Twitch.

@callimeron - would it be possible for you to provide an updated M1 build based on the latest github? (or at least the mac-vth264)
I'd try to do it myself but I lack any knowledge what you changed in the build files / process.
Check my post above (I'm the author of the PR/issue btw). I also removed the RealTime property in the build which (at least on my end) makes the HW VideoToolbox very reliable
 

Heals

New Member
Check my post above (I'm the author of the PR/issue btw). I also removed the RealTime property in the build which (at least on my end) makes the HW VideoToolbox very reliable

I did in the meantime (I wish we could edit posts here..) thank you very much for the PR, it fixes my issue for M1/native perfectly fine and I'm not experiencing any random frame drops either.

In case anyone is interested - this is an M1/native build of the current github trunk:
- obs-studio-27.2.0-beta4-67dbb316a-macOS.dmg
- pw: Fff!2.hV
 

samerg

New Member
Hello,
I don't know if I'm the only one but every time I launch OBS, I have a pop up check for update automatically that I can't close since the last update... not to mention that users macsilicone are put on the side a lot

Yes, same here. The box stays open in the background, I cannot close it, but it doesn’t hurt ;-)
 

Nickeleye

New Member
I did in the meantime (I wish we could edit posts here..) thank you very much for the PR, it fixes my issue for M1/native perfectly fine and I'm not experiencing any random frame drops either.

In case anyone is interested - this is an M1/native build of the current github trunk:
- obs-studio-27.2.0-beta4-67dbb316a-macOS.dmg
- pw: Fff!2.hV

If I install this now, is it going to mean I have to re-do all of my plugin setup and everything I got working from 27.1.3? I almost don't want to touch anything if it might break.
 

jemannin

New Member
@binone I managed to get the obs-ndi work with the guide in this link mentioned before in this discussion. Seems to work but I haven't tested its quality yet.

Anyone else has had a problem that there is no ability to use the YouTube API to stream to it? I mean the way of being able to create a new live stream directly in OBS.
 

binone

New Member
@binone I managed to get the obs-ndi work with the guide in this link mentioned before in this discussion. Seems to work but I haven't tested its quality yet.


Anyone else has had a problem that there is no ability to use the YouTube API to stream to it? I mean the way of being able to create a new live stream directly in OBS.
It works that way, thank you!
 

jemannin

New Member
Anyone else has had a problem that there is no ability to use the YouTube API to stream to it? I mean the way of being able to create a new live stream directly in OBS.
I can only see a way to insert RTMP-key; no way to use YouTube Integration. I guess that feature came in OBS Studio 27.1 but is it possible that it is only available in legacy releases?
 
Top