sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 347 forks source link

webrtcrecorderd error #243

Open assiomatica opened 6 years ago

assiomatica commented 6 years ago

here is the error I get:

sudo ./webrtcrecorderd 05:25:20 [debug] [application.cpp(45)] Create Home directory not accessible: Permission denied [000:000] [2635] (audio_device_pulse_linux.cc:1606): failed to connect context, error=-1 [000:000] [2635] (audio_device_pulse_linux.cc:151): failed to initialize PulseAudio [000:000] [2635] (audio_device_impl.cc:292): Audio device initialization failed.

#

Fatal error in ../../../media/engine/adm_helpers.cc, line 38

last system error: 88

Check failed: 0 == adm->Init() (0 vs. -1)

Failed to initialize the ADM.

# Aborted (core dumped)

some idea? ubuntu 16.04 server

traw commented 6 years ago

Also, Have a look at why permission denied to access home directory? Home directory not accessible: Permission denied

Did you compiled webrtc from source?

assiomatica commented 6 years ago

Hi

Yes I have done with:

sudo chmod -R username:username /home/username

I think the problem is because I am running the app on AWS EC2 instance that don't have sound boards I have installed a dummy device: sudo modprobe snd-dummy

and started pulseaudio:

sudo pulseaudio --start and the dummy device seems working because appear on aplay -l list

some idea? may be I have to test on a ubuntu desktop?

thanks

Antonio

On Sat, 2 Jun 2018 at 08:38, traw notifications@github.com wrote:

Also, Have a look at why permission denied to access home directory? Home directory not accessible: Permission denied

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/243#issuecomment-394063239, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI2gXTQhU39xcmEGLTOwya2om6zPwg2ks5t4jLWgaJpZM4UXjjN .

traw commented 6 years ago

I think if you are compiling webrtc from source you can use rtc_use_dummy_audio_file_devices flag. that will use dummy audio file. I haven't tried though

assiomatica commented 6 years ago

I was not able to compile from source on linux and on my osx but a lot of trouble , so I have used the prebuild.

I will retry to compile webrtc.

thanks for now

A

-

On Sat, 2 Jun 2018 at 09:43, traw notifications@github.com wrote:

I think if you are compiling webrtc from source you can use rtc_use_dummy_audio_file_devices flag. that will use dummy audio file. I haven't tried though

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/243#issuecomment-394067005, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI2gRdXC5N4RpekO9dA1Md9Ok-IIhM8ks5t4kITgaJpZM4UXjjN .