Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linphone mediastreamer2 get audio card err. #875

Open
TimelifeCzy opened this issue Dec 28, 2024 · 0 comments
Open

linphone mediastreamer2 get audio card err. #875

TimelifeCzy opened this issue Dec 28, 2024 · 0 comments

Comments

@TimelifeCzy
Copy link

TimelifeCzy commented Dec 28, 2024

mediastreamer2 version or

	https://gitlab.linphone.org/BC/public/mediastreamer2/-/tree/0e813d7e64a8d4062c40169d1cd6bdc81fbc6cad
	https://gitlab.linphone.org/BC/public/mediastreamer2/-/tree/f8606a043c97a6c662ab6248024093f322cd92b2

env

Linux PC 6.6.28-amd64-desktop-hwe #20.00.00.30 SMP PREEMPT_DYNAMIC Thu Jun  6 15:17:05 CST 2024 x86_64 GNU/Linux

build env

cmake version 3.22.6

gcc (Uos 8.3.0.13-deepin1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.

g++ (Uos 8.3.0.13-deepin1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.

GNU Make 4.2.1

build & exec

git checkout 5.1.2
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make

cd /bin or /OUTPUT exec ./linphone --verbose or sudo ./linphone --verbose

issue
sudo ./linphone --verbose, root(permission) pulseaudio connect fails.
([Info]Core:linphone: Connection to the pulseaudio server failed)

[Info]Core:linphone: Linphone core [0x2c1fc70] notified [version_update_check_result_received]
[Info]Core:linphone: No SRV results while A/AAAA fallback resulted arrived a while ago. Giving up SRV.
[Info]Core:linphone: Changing [client] [REGISTER] transaction [0x35831c0], from state [COMPLETED] to [TERMINATED]
[Info]Core:linphone: Client internal REGISTER transaction [0x35831c0] terminated
[Info]Core:linphone: Changing [client] [REGISTER] transaction [0x3b808f0], from state [COMPLETED] to [TERMINATED]
[Info]Core:linphone: Client internal REGISTER transaction [0x3b808f0] terminated
[Info]Core:linphone: Changing [client] [PUBLISH] transaction [0x6371440], from state [COMPLETED] to [TERMINATED]
[Info]Core:linphone: Client internal PUBLISH transaction [0x6371440] terminated
[Info]Core:linphone: channel[0x3ca6a20]: entering state DISCONNECTED
[Info]Core:linphone: channel [0x3ca6a20] removed from http provider.
[Info]Core:linphone: Channel [0x3ca6a20] destroyed
[Error]Core:linphone: linphone_core_create_local_player(): no sound card.
[Info]Core:linphone: Connection to the pulseaudio server failed
[Error]Core:linphone: Could not find a suitable soundcard with capabilities : 2
[Error]Core:linphone: Could not find a suitable soundcard with capabilities : 2
[Error]Core:linphone: Could not find a suitable soundcard with capabilities : 1
[Error]Core:linphone: Could not find a suitable soundcard with capabilities : 2
[Info]Core:linphone: [ setOutputAudioDeviceBySndCard ] remove output device
[Error]Core:linphone: Could not find a suitable soundcard with capabilities : 1
[Info]Core:linphone: [ setInputAudioDeviceBySndCard ] remove input device
[Info]Core:linphone: Linphone core [0x2c1fc70] notified [audio_devices_list_updated]
[Error]Core:linphone: [mjoys] linphone_core_get_media_device get soud_car_name err.
[Error]Core:linphone: linphone_core_create_local_player(): no sound card.
[Warning]Core:linphone: no card with id 
[Warning]Core:linphone: QT: Cannot get playback card from MSFactory with : 
[Warning]Core:linphone: no card with id 
[Warning]Core:linphone: QT: Cannot get capture card from MSFactory with : 

chmod +777 ./linphone, ./linphone --verbose
pulseaudio connect success

[09:32:34:843][Info]Core:linphone: Card 'PulseAudio Unknown: Family 17h (Models 10h-1fh) HD Audio Controller 模拟立体声' added with capabilities [capture, playback]
[09:32:34:843][Warning]Core:linphone: Device [Family 17h (Models 10h-1fh) HD Audio Controller 模拟立体声] type is unknown
[09:32:34:844][Info]Core:linphone: [ setOutputAudioDeviceBySndCard ] on device: Family 17h (Models 10h-1fh) HD Audio Controller 模拟立体声
[09:32:34:844][Info]Core:linphone: [ setInputAudioDeviceBySndCard ] on device: Family 17h (Models 10h-1fh) HD Audio Controller 模拟立体声
[09:32:34:844][Info]Core:linphone: Linphone core [0x1cfde40] notified [audio_devices_list_updated]
[09:32:34:844][Info]Core:linphone: speex_lib_ctl init with neon ? 0
[09:32:34:844][Info]Core:linphone: ms_filter_link: MSPulseRead:0x49d5320,0-->MSVolume:0x7fc65400c300,0
[09:32:34:844][Info]Core:linphone: ms_filter_link: MSVolume:0x7fc65400c300,0-->MSResample:0x4a3f010,0
[09:32:34:844][Info]Core:linphone: ms_filter_link: MSResample:0x4a3f010,0-->MSVolume:0x4a3f0a0,0
[09:32:34:844][Info]Core:linphone: ms_filter_link: MSVolume:0x4a3f0a0,0-->MSPulseWrite:0x56090d0,0
[09:32:34:844][Info]Core:linphone: MSVolume[0x4a3f0a0]: set gain to [0.000000] linear
[09:32:34:844][Info]Core:linphone: MSTicker priority left to normal.
[09:32:34:907][Info]Core:linphone: pulseaudio record stream connected (8000Hz, 1ch)
[09:32:34:907][Info]Core:linphone: ms_ticker_set_time_func: ticker's time method updated.
[09:32:34:907][Info]Core:linphone: Initializing speex resampler in mode [voip] from 1 channels
[09:32:34:935][Info]Core:linphone: pulseaudio playback stream connected (8000Hz, 1ch)

but system real audio get fails, only pulseaudio audio .
download release v5.1.2 version, AppRun exec. get system real audio success. linphone sdk 5.2.92
copy download release v5.1.2 libmediastreamer.so.11 to my build v5.1.2 /lib/libmediastreamer.so.11, get system real audio success.

download release linphone desktop 5.1.2 and linphone sdk 5.2.92, libmediastreamer.so.11(ldd)

12M
        linux-vdso.so.1 (0x00007ffde09cd000)
        libortp.so.15 (0x00007f219454d000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2194527000)
        libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f2193ef3000)
        libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f21944d2000)
        libv4l1.so.0 => /lib/x86_64-linux-gnu/libv4l1.so.0 (0x00007f21944cb000)
        libv4l2.so.0 => /lib/x86_64-linux-gnu/libv4l2.so.0 (0x00007f21944bb000)
        libv4lconvert.so.0 => /lib/x86_64-linux-gnu/libv4lconvert.so.0 (0x00007f219443d000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2193db1000)
        libXv.so.1 => /lib/x86_64-linux-gnu/libXv.so.1 (0x00007f2193daa000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f2193d23000)
        libGLEW.so.2.0 (0x00007f2193a00000)
        libvpx.so.6 (0x00007f219390d000)
        libbcg729.so.0 (0x00007f2193600000)
        libgsm.so (0x00007f2193d19000)
        libsrtp2.so.2.4.2 (0x00007f2193d05000)
        libopus.so.0 (0x00007f21938b0000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f219347d000)
        libspeex.so.6 (0x00007f2193cea000)
        libspeexdsp.so.6 (0x00007f2193cd2000)
        libbv16.so (0x00007f2193cc3000)
        libbzrtp.so.0 (0x00007f2193893000)
        libbctoolbox.so.1 (0x00007f2193832000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f21932f9000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2193818000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2193143000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2194587000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2193122000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2193cb9000)
        libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x00007f219309a000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2193047000)
        libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f2192fdc000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2192fb2000)
        libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f2192f9d000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f2192ee5000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f2192eb2000)
        libmbedtls.so.13 (0x00007f2192e81000)
        libmbedx509.so.1 (0x00007f2192e61000)
        libmbedcrypto.so.7 (0x00007f2192ded000)
        libsqlite3.so (0x00007f2192d22000)
        libxml2.so.2 (0x00007f2192c16000)
        libdecaf.so.0 (0x00007f2192bec000)
        libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f2192b70000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f2193813000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f2192acf000)
        libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f2192ac7000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f219380e000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2192abf000)
        libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f2192a54000)
        libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f2192a4a000)
        libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f2192a1b000)
        libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f2192970000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2192948000)
        liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f2192923000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f21927fe000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f21927e5000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f21927c9000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f21927af000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f219278c000)

my build libmediastreamer.so.11 ldd(get audio err)
(https://gitlab.linphone.org/BC/public/mediastreamer2/-/tree/0e813d7e64a8d4062c40169d1cd6bdc81fbc6cad)

14M
        linux-vdso.so.1 (0x00007ffe29d7b000)
        libortp.so.15 (0x00007f32079b1000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f320798b000)
        libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f3207936000)
        libv4l1.so.0 => /lib/x86_64-linux-gnu/libv4l1.so.0 (0x00007f320792f000)
        libv4l2.so.0 => /lib/x86_64-linux-gnu/libv4l2.so.0 (0x00007f320791f000)
        libv4lconvert.so.0 => /lib/x86_64-linux-gnu/libv4lconvert.so.0 (0x00007f32078a1000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f32074be000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f3207437000)
        libGLEW.so.2.1 => /lib/x86_64-linux-gnu/libGLEW.so.2.1 (0x00007f320738b000)
        libvpx.so.6 (0x00007f3207298000)
        libgsm.so (0x00007f3207897000)
        libsrtp2.so.2.4.2 (0x00007f3207881000)
        libopus.so.0 (0x00007f320723b000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f32070b8000)
        libspeex.so.6 (0x00007f3207866000)
        libspeexdsp.so.6 (0x00007f320784e000)
        libbv16.so (0x00007f320783f000)
        libbzrtp.so.0 (0x00007f320709b000)
        libbctoolbox.so.1 (0x00007f320703a000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3206eb6000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3206e9c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3206ce6000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f32079eb000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3206cc5000)
        libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x00007f3206c3d000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f3206bea000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3207831000)
        libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f3206b7f000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f3206b55000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f3206a9d000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f3206a6a000)
        libmbedtls.so.13 (0x00007f3206a39000)
        libmbedx509.so.1 (0x00007f3206a19000)
        libmbedcrypto.so.7 (0x00007f32069a5000)
        libsqlite3.so (0x00007f32068da000)
        libxml2.so.2 (0x00007f32067ce000)
        libdecaf.so.0 (0x00007f32067a4000)
        libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f3206728000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f3206723000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f3206682000)
        libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f320667a000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f3206675000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f320666d000)
        libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f3206602000)
        libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f32065f8000)
        libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f32065cb000)
        libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f3206520000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f32064f8000)
        liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f32064d3000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f32063ac000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f3206393000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f3206379000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f320635f000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f320633c000)

diff

libbcg729.so.0 (0x00007f128c400000)
libGLEW.so.2.1 => /lib/x86_64-linux-gnu/libGLEW.so.2.1 (0x00007f6656612000)

How to get the audio device correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant