Apr 07, 2018 These are the steps I used to get PJSIP running on a Raspberry Pi 3 with audio and video. Flash an SD Card with Raspian Stretch. I used the latest at the time of this writing (2018-03-13-raspian-stretch): Download Raspian Stretch. Telechips 8803. Linux 2.6.35.7 在小系统下用arecord,aplay录放音测试,设置采样率在44100以上的单声道双声道录放都正常,但是在这个采样率一下的录音会提示overrun。. 2)对于alsa声卡来说,alsadev.c对操作系统提供的alsa API进行了封装, 定义了pjmediaaudstreamop接口函数族供声卡抽象层audiodev.c调用 3)对于alsa声卡来说,当声卡抽象层audiodev.c调用startsteam启动声卡时,会创建一个PCM的抓取线程和一个PCM回放线程, 线程中分别调用.
RetroPie, gpSP issue: ALSA lib pcm.c:7339:(sndpcmrecover) underrun occurred Hi guys and gals of r/RetroPie, I hope you can help me out with this issue - I imagine someone else must have had the same annoying bug as as me. I connect to a Windows Server 2008 R2 RDSH server, play mp3 file in Windows Media Player. Before apply the patch, underrun occurs much in the beginning, and less after a while.
These are the steps I used to get PJSIP running on a Raspberry Pi 3 with audio and video. Strap in.
Flash an SD Card with Raspian Stretch. I used the latest at the time of this writing (2018-03-13-raspian-stretch):Download Raspian Stretch
Add the following line to the
/etc/apt/sources.list file:
Now install the packages:
Create a new file called
pjlib/include/pj/config_site.h
with the following contents:
Create a file called 'user.mak' in the root of the pjsip source directory:
with the following contents (note: these are specific to the RPI3)
There is a bug in the build script that you must correct, as the system tries to compile sse2 support which is not available on the RPI. Edit the 'third-party/build/os-auto.mak.in':
Copy over the following block (note the comments, which force the build system to skip sse2):
Now make PJSIP:
Note: I had a compile error during make dep, probably due to the fact that I was missing dependencies and went back and added some additional packages. If you are following these instructions, you should be ok. However, if you have errors, try the following:
Now you can find the index of your audio and video devices by executing some sample apps.Find the index of your audio out and in devices
Test your video codecs:
Create a configuration file to specify params for the pjsua cli application
Alsa_dev C Pb_thread_func Underrun File
Contents of file:
Note: I have a USB soundcard device, which shows up as pjsip index 8 in the auddemo app mentioned above. This is the soundcard I am using to interface with a set of speakers and a microphone:
Alsa_dev C Pb_thread_func Underrun Mean
Thats it! You should be able to make audio calls as well as video calls. Enjoy!
Alsa_dev C Pb_thread_func Underrun Program
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |