sorayuki / obs-multi-rtmp

OBS複数サイト同時配信プラグイン
https://sorayuki.github.io/obs-multi-rtmp/
GNU General Public License v2.0
3.47k stars 482 forks source link

[Feature Request] Correct internal outputName for each channel #326

Open mzharikov opened 1 year ago

mzharikov commented 1 year ago

Hi! First of all I appreciate you for this great plugin. I use it in couple with websocket API, and already managed to make some nice automatizations. It will be even better if internal output names will be equal to display names instead of just 'multi-output'. 0.4.0.3 results in such response to GetOutputList:

{'outputs': [
            {'outputActive': True, 'outputFlags': {'OBS_OUTPUT_AUDIO': True, 'OBS_OUTPUT_ENCODED': True, 'OBS_OUTPUT_MULTI_TRACK': True, 'OBS_OUTPUT_SERVICE': True, 'OBS_OUTPUT_VIDEO': True
                }, 'outputHeight': 720, 'outputKind': 'rtmp_output', 'outputName': 'multi-output', 'outputWidth': 1280
            },
            {'outputActive': True, 'outputFlags': {'OBS_OUTPUT_AUDIO': True, 'OBS_OUTPUT_ENCODED': True, 'OBS_OUTPUT_MULTI_TRACK': True, 'OBS_OUTPUT_SERVICE': True, 'OBS_OUTPUT_VIDEO': True
                }, 'outputHeight': 720, 'outputKind': 'rtmp_output', 'outputName': 'multi-output', 'outputWidth': 1280
            },
            {'outputActive': True, 'outputFlags': {'OBS_OUTPUT_AUDIO': True, 'OBS_OUTPUT_ENCODED': True, 'OBS_OUTPUT_MULTI_TRACK': True, 'OBS_OUTPUT_SERVICE': True, 'OBS_OUTPUT_VIDEO': True
                }, 'outputHeight': 720, 'outputKind': 'rtmp_output', 'outputName': 'adv_stream', 'outputWidth': 1280
            }]}

So there is no way to control multi-rtmp outpust via API. With proper naming it will be possible to manage every output separately. Unfortunately, I have no experience in C++ and can't contribute myself so I'm asking you for help.

jipinhetundu commented 9 months ago

I'm also trying to use WebSocket, but I'm not sure which request can give me the output you have. Could you please tell me how you obtained this result?