GstRav1Enc panicking on wrong bitrate type (expected gint, got guint)
Upon running the commands according to the example,
gst-launch-1.0 webrtcsink name=ws meta="meta,name=gst-stream" videotestsrc ! ws. audiotestsrc ! ws.
or
gst-launch-1.0 -v \ videotestsrc ! video/x-raw,width=640,height=480,framerate=30/1 ! \ webrtcsink stun-server=stun://stun.l.google.com:19302 signaller::uri=ws://<your-signaling-server>:8443
I got the following error with type mismatch panick:
thread 'tokio-runtime-worker' panicked at net/webrtc/src/webrtcsink/imp.rs:777:21:
property 'bitrate' of type 'GstRav1Enc' can't be set from the given type (expected: 'gint', got: 'guint')
stack backtrace:
0: 0x108c0cfb4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb478ebbfb46e27ce
1: 0x1087c0478 - core::fmt::write::he4d5fa2daff1f531
2: 0x108be6f20 - std::io::Write::write_fmt::hc5a47a68eba63d9f
3: 0x108c0e698 - std::sys_common::backtrace::print::h79bd952cc5812e7a
4: 0x108c0de68 - std::panicking::default_hook::{{closure}}::h82301f6222887737
5: 0x108c0eef4 - std::panicking::rust_panic_with_hook::h1e70c5d905e30e9d
6: 0x108c0e9a8 - std::panicking::begin_panic_handler::{{closure}}::h399e32952efd26a4
7: 0x108c0e90c - std::sys_common::backtrace::__rust_end_short_backtrace::h2ab87f841a2323e7
8: 0x108c0e900 - _rust_begin_unwind
9: 0x108c73aa8 - core::panicking::panic_fmt::h33e40d2a93cab78f
10: 0x1087eae10 - glib::object::validate_property_type::h940c2885b8142bf9
11: 0x108a09d4c - <T as glib::object::ObjectExt>::set_property::h5a2ebcfe61f8202e
12: 0x1089c41ec - <gstrswebrtc::webrtcsink::imp::BaseWebRTCSink as glib::subclass::object::ObjectImpl>::signals::SIGNALS::{{closure}}::{{closure}}::h09b9c3d250a39b18
13: 0x1087e90d0 - glib::closure::Closure::new_unsafe::marshal::h631afa6101ff3406
14: 0x102b4ed9c - _g_closure_invoke
15: 0x102b65600 - _signal_emit_unlocked_R
16: 0x102b64d98 - _g_signal_emitv
17: 0x108a080f4 - <T as glib::object::ObjectExt>::emit_by_name::h751cba2a1296dcfc
18: 0x1089e7c28 - gstrswebrtc::webrtcsink::imp::BaseWebRTCSink::run_discovery_pipeline::{{closure}}::h9827dae82ba0a030
19: 0x108a01dac - <futures_util::abortable::Abortable<Fut> as core::future::future::Future>::poll::hce9173206d093734
20: 0x10882eef0 - tokio::runtime::task::core::Core<T,S>::poll::h343b02fadc29aae2
21: 0x108535f28 - tokio::runtime::task::raw::poll::h3d391d81e1fb6bd3
22: 0x108c1f38c - tokio::runtime::scheduler::multi_thread::worker::Context::run_task::hb1ba134e6b7cfa57
23: 0x108c137f0 - tokio::runtime::task::raw::poll::h1f455a851fa092f1
24: 0x108c1d590 - std::sys_common::backtrace::__rust_begin_short_backtrace::h8c4c9fca90ee2d9b
25: 0x108c2ba6c - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb1c35ce3e48fd95d
26: 0x108c0f884 - std::sys::unix::thread::Thread::new::thread_start::h8dda2af345bab446
27: 0x18fdaaf94 - __pthread_joiner_wake
0:00:05.5 / 99:99:99.
While I was able to get the stream running (as seen in the end), the signaling server doesn't show anything to indicate that the webrtcsink is connected.
Edited by Kaung Si Thu