facebookarchive / 360-Capture-SDK

A developer focused sample SDK that allows game and virtual Reality devs to be able to easily and quickly integrate 360 photo/video capture capability into their game apps.
https://github.com/facebook/360-Capture-SDK
Other
253 stars 75 forks source link

Unexpected output channel count, expected stereo #27

Closed NoxMortem closed 6 years ago

NoxMortem commented 6 years ago

(Unity 2017.3.0f3) The FBSDK does only produce 0 byte .wav and .h264 files and in the log file I find the following error

[ 2017-12-27 16:16:23 ][LOG]: Folder is already existed
[ 2017-12-27 16:16:23 ][LOG]: Video Codec info: NV_ENC_H264
[ 2017-12-27 16:16:23 ][LOG]: Bitrate:: 500000
[ 2017-12-27 16:16:23 ][LOG]: Device type: DirectX 11
[ 2017-12-27 16:16:23 ][LOG]: Set encode configurations successfully
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Steam Streaming Microphone)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Steam Streaming Speakers)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Creative SB X-Fi)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : SPDIF Out (Creative SB X-Fi)
[ 2017-12-27 16:16:23 ][LOG]: Can't find Rift audio device. Just try to use default audio device
[ 2017-12-27 16:16:23 ][ERROR]: Unexpected output channel count, expected stereo
[ 2017-12-27 16:16:23 ][ERROR]: Failed to start output audio client

I am running on a 5.1 system, how can I specify the output channel count and fix the 0 byte video?

The screenshots work fine.

grancia commented 6 years ago

For now it only supports 2 channel speaker perfectly. If you want to use 5.1 system, you can change or comment out below line or in AudioCapture.cpp. if (!isInput && outputPWFX_[sessionID]->nChannels != 2) { DEBUG_ERROR("Unexpected output channel count, expected stereo"); return false; }

grancia commented 6 years ago

Because it has been about over two months since v2.0 was released, I want to close v1.x related issues now. If you have any issue on v2.0, please create separate thread. Thanks,