How to Setup Vimeo Video Upload as 5.1 Surround?

These features require OBS-Studio 21.0 or newer.


Table of Contents:

  • Overview
    • Use cases
  • Setup
  • Gaming and Streaming Services Back up
    • Compatible Streaming Services
    • Incompatible Services
  • Streaming Servers and Players
    • Uniform Streaming Servers
    • Uniform Spider web Players
  • Streaming Music
    • Filters and VST
    • High Quality Recording
    • Interfacing with a DAW
  • Ambisonics
    • Higher Order Ambisonics
  • Multilingual Streaming
  • Detailed list of surroundings sound features

Overview

OBS-Studio is the starting time mainstream streaming software to support surround sound streaming and recording.
Traditionally this is a characteristic reserved to professional broadcast appliances.
OBS-Studio can stream and record up to viii sound channels.
The audio channels tin can be surround sound channels or more full general multichannel ones.

Employ cases:

  • gaming
  • music
  • ambisonics
  • multilingual streaming

Setup

  • Settings > Audio : just select a channel different from Mono or Stereo in the Channels list. Click OK to the Warning pop-up and restart OBS.
    Imgur

  • Settings > Output :

  • Important Alert: make sure to select the same aqueduct layout equally your input (if you lot have a four.ane audio source do non select seven.ane). If you don't, channel mixing may (or may non) occur. There is an automatic channel rematrixing when either downmixing or upmixing is mandated by a difference in channel layouts between source and output. This channel rematrixing mixes channels in general. Or it can remove a channel (ex: 3.1 source to four.0 output removes the LFE channel).

  • DOLBY
    Streams can be encoded in ac3 /eac (using Output > Advanced > Custom FFmpeg recording > stream to URL ). Merely support of the various streaming services or web players has non been tested.
    Modify this wiki if this works.
    Capture of dolby can be tricky if the channels are lumped into ii PCM channels; in gild to exist decoded correctly and encoded all the channels should be held in dissimilar PCM channels.

Gaming and Streaming Services Support

Compatible Streaming Services

Equally of now, the following services have been tested and are compatible with live environment sound streaming:

  • Twitch,
  • Mixer (rtmp but Non with ftl protocol),
  • Smashcast ...
  • Facebook Live 360 with spacial audio (requires ambisonics capture device)

Incompatible Services

  • YouTube Live (discards channels beyond the first two).
  • Facebook Live (downmixes all the channels).

Streaming Servers and Players

Apart from streaming to services like Twitch or Facebook Alive, you might use your own streaming server which delivers streams to your website.

Compatible Streaming Servers

The following servers have been tested and ingest surround sound in rtmp protocol :

  • wowza
  • nginx with rtmp module

Note yet that server-side recordings only go along the first 2 channels although.

Uniform Web Players

  • html5 players (tested with hls or mpeg-dash):
    • videojs,
    • bitmovin,
    • mediaelement,
    • viblast (hls & dash),
    • hls.js

NB: Flash histrion accepts rtmp environment sound in Dolby; it might piece of work ==> untested.

Streaming Music

For music bands, Djing, ... , bring your production with environment audio to the Globe !
Up to seven.one surround sound is available. (For more channels (up to 16.0) cheque this fork).

Filters and VST

OBS-Studio has congenital-in audio filters as well as VST 2 support. The filters are compatible with surround audio; the VST besides if they originally back up multichannel. Cheque the Filters-Guide.

Loftier Quality Recording

Select Custom FFmpeg recording and a PCM format (e.g. pcm_s24le for 24 chip samples) for uncompressed audio.
For compressed formats, you can select also libopus and aac which will piece of work very well (target at to the lowest degree 64 kbs per channel).

Interfacing with a DAW

For that yous volition need some awarding ensuring the routing.

windows

Reaper :

  • SAR (requires having an ASIO commuter, for instance ASIO4ALL if you don't own an ASIO card).
  • rearoute (from Reaper, with upwards to 256 channels) if using ASIO plugin
  • Voicemeeter (Fantabulous guide hither by Jack0r for Voicemeeter Assistant)
  • Virtual Audio Cable (requires v.4.l or later).
    Imgur
  • For routing in Windows, check this excellent guide once again by Jack0r. This other guide may be of interest too.

MacOS

Tested with Reaper and the following apps ensuring the routing

  • Soundflower
  • Jack server : bank check this excellent guide.
  • Loopback
  • untested: iShow U (guide here).
  • untested: WavTap (guide here).

Linux

No DAW tested. Update the Wiki if you tested.

Ambisonics

Although the channel layouts are tagged with position (2.one 5.ane etc), it is possible to encode your channels for ambisonics use provided your decoding application is setup to supply the ambisonics positions according to channel order.
This is the case for Facebook Live 360 with spacial audio.
To apply the latter in Settings > Audio, select : channels > 4.0 ; aac codec is mandatory (if you use Recording > Custom FFmpeg > to URL > select flv container, with rtmp URL to FB alive 360 and aac audio codec + x264 video codec).
When streaming to FB Alive 360 the four channel rtmp stream will be interpreted as carrying ambisonics of order i .

In social club for this feature to work, evidently you will need an ambisonics capture device.
If yous have an aac or uncompressed audio recording with 4 ambisonics, you tin can also play it by adding a Media Source.
(If information technology doesn't piece of work, check with ffmpeg that information technology is decoded correctly.)

Higher Lodge Ambisonics

No live streaming service supports beyond first-order ambisonics.
For recording, though for lodge two or 3, y'all tin use pkviet'south fork.
If y'all record with libopus (Output > Advanced > Custom FFmpeg recording ) up to 255 channels are available with mkv.
Y'all volition have to add the mapping_family=255 option though to FFmpeg audio encoder options in OBS-Studio.

Multilingual Streaming

Multichannel support in OBS allows to stream several languages simultaneously.
This is useful for live translation (public talks ... ).

The mainstream streaming services do not support such a feature directly.
In the broadcast manufacture, one ordinarily uses mpeg-ts multi-track streams instead of a multichannel stream (in single track).

There are workarounds though allowing one to use a single runway multichannel audio.
Hither is one requiring :

  • nginx with rtmp module;
  • ffmpeg scripts which will exist exec'd by nginx: ffmpeg volition dissever the audio channels and create mono rtmp streams (equally many as there are languages).
  • each of these mono rtmp streams can so be pushed by nginx to a service like FB or YouTube Alive.

For nginx setup with rtmp module, check elsewhere. (Make sure to set it up with a single worker.)

The setup is the following for surround sound capture with each mono channel carrying a language:
(capture tested: sdi/hdmi decklink cards, reaper, Behringer X32, ASIO sound cards).

  • obs with surroundings sound enabled

  • rtmp stream to nginx which is setup with an exec script

                  rtmp {          server {         mind 1935;     ping 30s;      notify_method get;        application splitter {       alive on;       let play all;       exec /dwelling/me/splitter.sh $name;       exec_kill_signal term;       record off;    } }            
    • here nginx executes a ffmpeg script which will split the channels and redirect rtmp mono streams to nginx.

FFmpeg instance script (for 2 languages and a stereo source):

          #!/bin/bash repeat "$(date +"%Y/%thousand/%d %H:%M:%S"): starting" on_die() {   # kill all children   pkill -Impale -P $$ } trap 'on_die' TERM  ffmpeg -i rtmp://IP:port/splitter/ \        -filter_complex \           "[0:a]pan=mono|c0=c0,aresample=async=1000[a0];             [0:a]pan=mono|c0=c1,aresample=async=thou[a1]" \        -map 0:v -copyts -start_at_zero -vcodec copy \          -map [a0] -bsf:a aac_adtstoasc -copyts -start_at_zero -c:a libfdk_aac -ab 64k -air conditioning 1 \          -f flv rtmp://IP:PORT/app/stream_language1 \        -map 0:5 -copyts -start_at_zero -vcodec copy \          -map [a1] -bsf:a aac_adtstoasc -copyts -start_at_zero -c:a libfdk_aac -ab 64k -ac 1 \          -f flv rtmp://IP:PORT/app/stream_language2 & expect        

For more languages pick a corresponding channel layout and add relevant streams in FFmpeg script. Y'all should also read the ffmpeg filtering guide. Note that for 5.1 and 7.1 one channel (the fourth) volition be encoded as LFE so is not useable. For up to 16 channels support, bank check the pkviet's fork.

Detailed listing of surround audio features

  • Recording and Streaming multichannel audio sources (surround sound).

  • Compatible streaming services: Twitch, Mixer rtmp (not ftl), smashcast, FB 360 live

  • Compatible protocols:

    • rtmp
    • mpeg-ts tcp udp (others untested).
  • Streaming servers tested:

    • wowza,
    • nginx-rtmp
      (rtmp with multichannel audio passes through and tin can exist distributed by these servers to another service or cdn supporting surround audio; however, the recording feature of these servers does non work; only the beginning two audio channels are kept).
  • html5 players tested and working with live surround:

    • videojs,
    • bitmovin,
    • mediaelement,
    • viblast (hls & dash),
    • hls.js
  • Compatible containers (for recordings):

    • mkv
    • mp4
    • ts
    • flv (others untested).
  • Compatible codecs:

    • ffmpeg aac (native encoder, up to sixteen channels),
    • libfdk_aac (upward to 7.1),
    • cadre sound aac (upwards to 7.one),
    • opus (libopus encoder, up to 255 channels),
    • vorbis (up to 7.one),
    • pcm (others untested).
  • Os: compatible with win, macOS, linux (alsa, pulse-sound).

  • Misc:

    • Higher sound bitrates (up to 1024 kbs) unlocked to accomodate college number of channels.
    • audio monitoring, audio filters, VST are all working OOB.

simsolithad.blogspot.com

Source: https://obsproject.com/wiki/Surround-Sound-Streaming-And-Recording

0 Response to "How to Setup Vimeo Video Upload as 5.1 Surround?"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel