Replies: 4 comments
-
Hello and thanks :) Interesting! Did you patch Roc? If so, do you have plans to share the patch? Yes, this looks like a CPU performance issue. What can be done here:
|
Beta Was this translation helpful? Give feedback.
-
Hello gavv, |
Beta Was this translation helpful? Give feedback.
-
Did you also try Would be also interesting to see the output of |
Beta Was this translation helpful? Give feedback.
-
Recent develop branch now has speex resampler support which works a few times faster than our resampler. It's now enabled by default. It may fix this problem. |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
This roc-project is very good and I have ported it to openwrt platform which base on MT7688 (580MHz MIPS® 24KEc™ CPU). The sender works well, but the receiver always remove session and then try to create session over again and again. It reports latency out of bounds error:
16:44:03.810 [dbg] roc_fec: fec reader: update source block size: cur_sblen=0 cur_rblen=0 new_sblen=20
16:44:03.810 [dbg] roc_fec: fec reader: repair queue: dropped=10
16:44:03.811 [dbg] roc_audio: depacketizer: got first packet: zero_samples=960
16:44:03.905 [inf] roc_sndio: sox: alsa.c: under-run
16:44:03.909 [dbg] roc_audio: latency monitor: latency=13894 target=8820 fe=1.00000 trim_fe=1.00000 adj_fe=0.91875
16:44:04.013 [inf] roc_sndio: sox: alsa.c: under-run
16:44:04.017 [dbg] roc_audio: latency monitor: latency out of bounds: latency=18209 max=17640
16:44:04.018 [inf] roc_pipeline: receiver: removing session
16:44:04.020 [inf] roc_sndio: sox: alsa.c: under-run
16:44:04.021 [inf] roc_pipeline: receiver: creating session: src_addr=192.168.20.188:58967 dst_addr=0.0.0.0:10003
16:44:04.021 [dbg] roc_packet: delayed reader: initializing: delay=8820
16:44:04.022 [dbg] roc_fec: of decoder: initializing: codec=rs _m=8
The roc-test-audio will take 44799 ms and roc-test-lib failed:
root@Widora:/mnt/mmcblk0/test/mipsel-openwrt-linux# ./roc-test-audio
..................................................
......................
OK (72 tests, 72 ran, 299948 checks, 0 ignored, 0 filtered out, 44799 ms)
root@Widora:/mnt/mmcblk0/test/mipsel-openwrt-linux# ./roc-test-lib
src/tests/roc_lib/test_address.cpp:78: error: Failure in TEST(address, bad_args)
CHECK(!roc_address_ip(&good_addr, buf, 7)) failed
terminate called after throwing an instance of 'CppUTestFailedException'
But the roc-test-audio testing only take 49 ms on x86 PC. So I guess the receiver "latency out of bounds" fail is caused by CPU performance, could you give some suggestion for this issue? I really appreciate for your any idea.
Beta Was this translation helpful? Give feedback.
All reactions