Closed orjan-neti closed 3 years ago
That's a bug. Thanks very much for the report, we haven't had many ST 2022-6 users. I'll get that fixed ASAP.
Thank you very much Gareth!
Hi, Örjan, I've pushed a quick fix in 283e4cc. If you're able to let me know if this works for you, that would be great. Let's add updating the example nmos-cpp-node/node_implementation.cpp to allow config to switch from ST 2110-x0 separate video/audio/data to ST 2022-6 mux, so this could be tested with the example Node.
Hello Gareth, I'm afraid that after the fix nmos::make_mux_session_description now throws an exception. format_specific_parameters is not an array, so push_back throws.
Initializing format_specific_parameters to an empty array seem to solve that.
auto format_specific_parameters = web::json::value::array();
if (!sdp_params.mux.tp.name.empty()) web::json::push_back(format_specific_parameters, sdp::named_value(sdp::fields::type_parameter, sdp_params.mux.tp.name));
I have to admit that I'm not very conversant in sdp, so I can't judge the resulting output, but at least nmos-testing seemed happy with my hastily hacked nmos-cpp-node mux sender test.
@orjan-neti, that's embarrassing, I do apologise. I have fixed that bug, and prevented the same mistake recurring by adding some code that turns it into a compile-time error. And as penance, I'm adding support for ST 2022-6 mux 'ports' in the nmos-cpp-node example app, and checking that this passes all the AMWA test suites.
Results of the test suites run in CI now look good.
Yes, I can confirm that it resolves my problem as well. Many thanks Gareth!
Thanks again for the report!
I get fail on test_41 of test suite IS05 Connection management api with the following error:
The generated sdp file looks like:
I have looked a bit at the sdp generating code at sdp_utils.cpp:623 and it looks like it acts on info in the "video.tp"-field of sdp_paramters struct, but as far as I can see make_mux_sdp_parameters() only assigns value to ".mux.tp".
Any input on this is appreciated.
edit: our code are using nmos-cpp ver c38f782c4d6ff7a622ae1248064fcb59984d1c03