The short version:
Have AltspaceVR and OBS installed. Launch AltspaceVR in 2D mode, launch OBS, either live stream or create a 'New Live Event' on YouTube, set OBS up with your YouTube Stream Key, start streaming in OBS, start streaming on YouTube and you are off to the races!
The slightly longer version:
Click 'Windows' to download OBS (this post is using OBS v22.0.2)
Have AltspaceVR running in 2D mode BEFORE you run OBS
-Download AltspaceVR from our Website: https://account.altvr.com/downloads
- To make sure you launch AltspaceVR in 2D mode, either unplug your HMD’s USB cable from your PC or if you have a Rift: Ctrl+Alt+Del, Services, Oculus VR Runtime Service, right click, Stop. This will disable Oculus Home and start AltspaceVR in 2D mode, repeat these steps and Start to get VR mode again.
Alt-Tab over to OBS
Under Sources, click +, Select Game Capture, Create new, Edit text to 'AltspaceVR Capture', tick Make source visible, OK
Double click AltspaceVR Capture
Mode: Capture specific window
Window: [AltspaceVR.exe]: AltspaceVR
Window Match Priority: Match title, otherwise find window of same executable
Scroll down to Capture Cursor: un-tick
This should make AltspaceVR show up in OBS. Nice!
Now in OBS go to File>Settings
Tick Automatically record when streaming (this records a video file to your computer in addition to live streaming)
Stream Type: Streaming Services
Service: YouTube / YouTube Gaming (Can also stream to Twitch, Mixer, Facebook Live, etc)
Server: Primary YouTube ingest server
Stream key: Paste your Stream Key from YouTube*** (See ‘Setting up Live Streaming on YouTube’ below)
Output Mode: switch to Advanced
Audio Track 1
tick Enforce streaming service encoder settings
Rescale Output: un-ticked
Rate Control: CBR
Bitrate: 6000 (6000 for 30fps or 9000 for 60fps)
Keyframe Interval = 2
CPU Usage Preset = veryfast
Recording Path: D:/Video (Browse to where you'd like the video file saved to if you selected 'Automatically record when streaming' earlier)
Recording Format: mp4 (If you get some crashing while recording, try flv here instead of mp4, if you crash the video will still be usable with flv)
Audio Track 1
Encoder: Use stream encoder
Audio Bitrate: 160 (for all Tracks)
Replay Buffer Tab
Sample Rate: 48khz
Desktop Audio Device: Default
Desktop Audio Device 2: Disable
Mic/Aux Audio Device: Default
Base (Canvas) Resolution: 1920x1080
Output (Scaled) Resolution: 1920x1080
Downscale Filter: Bicubic (Sharpened scaling, 16 samples)
Common FPS Values: 30
Process Priority: Normal
Alright, now make sure to click Apply, then OK, then close and reopen OBS. That will save your all your OBS settings. Looking good :)
See the 'How to record AltspaceVR in 2D mode on PC' post for instructions on how to test recording using a local recording instead of the live stream and also how to get your camera shot setup first before recording.
Another issue with audio is the way OBS is set up. It captures ALL audio from your computer, so if you are watching YouTube it will record that audio, or Slack messages, or notification sounds.
To record just the audio from AltspaceVR, go into Volume Mixer (right click on the Speaker icon on the bottom right of Windows) and Mute System Sounds, Browsers, etc., but do not Mute OBS or AltspaceVR.
Don't forget to turn these back on after recording ;)
Setting up Live Streaming on YouTube
You can either real quick get a live stream going (LIVE STREAMING) or set up a future live stream event (New live event). I might suggest you set it up the 'New live event' way.
Open your browser and sign into https://www.youtube.com/
Click on your Account icon, top right, select Creator Studio from the drop down
LIVE STREAMING on the left side of the page.
'Stream now' method
Change thumbnail if you need to
Change BASIC INFO
Keep Server URL as the default
***Stream name/key, click 'Reveal' and copy this key
Paste this into Stream Key
Apply, then OK
Click Start Streaming
Switch over to YouTube and you will see you are now LIVE on YouTube!
To see your actual YouTube live stream video page, you need to scroll down and look to the bottom right for the SHARE link.
Copy and paste this into a new browser tab, then click VIDEOS, in the list you will see your video, it will show LIVE NOW, click that and you will see your YouTube live stream page.
This URL is your live stream link and can be shared out to all your Social channels :)
To stop the live stream, click Stop Streaming on OBS, this will end the live stream on YouTube.
'Events' method - https://www.youtube.com/my_live_events
Click 'New live event'
Add Title, Date, Start time, Description and Tags – Don’t forget to tag AltspaceVR :)
Choose Public from the drop down menu
Click 'Create event'
If you'd like to add a custom thumbnail click Browse and upload your image. (1280x720 works best)
Select: Single-use stream key
Select your encoder: Other encoders
Copy Stream Name (Stream Key)
Now right click the 'View on Watch Page' and 'Open link in new tab'
This is your YouTube live stream event link, this can be shared on Social way ahead of your actual event!
Now open OBS
Paste the Stream Key you just copied into the Stream Key field
Apply, then OK
Back to YouTube, 'Save changes'
Right click 'Live Control Room' and 'Open link in new tab'
Now back to OBS to click 'Start Streaming'
Back to YouTube, you'll see the 'Preview' button is now blue
Click the Preview button
Dialog box opens, asking if you want to preview the live event, OK
Wait a moment, then you will see the 'Start Streaming' button
Click 'Start Streaming'
Dialog box opens, asking if you want to stream your live event, OK
You are now LIVE!
Go to your browser tab with the 'View on Watch Page' link open to make sure the video looks good. REMEMBER you won’t hear the audio because you’ve turned off audio from your Browsers when you muted them in Windows Volume Mixer. Check the audio on your phone or ask a friend to check the audio for you.
Alt-Tab back to AltspaceVR to move your camera (ie your Avatar) around in your event.
When you are done with your live stream go back to the YouTube 'Live Control Room' page
Click 'Stop Streaming'
Dialog box opens, asking if you want to stop streaming the live event, OK
Go to OBS and click Stop Streaming as well.
Congrats you are now an AltspaceVR streamer!