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

run webrtcrecorder demo.I can not get a.record file #140

Closed ConchFeng closed 7 years ago

ConchFeng commented 7 years ago

First warning

[000:000] [3621] (audio_device_generic.cc:51): virtual bool webrtc::AudioDeviceGeneric::BuiltInAECIsAvailable() const: Not supported on this platform
[000:001] [3621] (audio_device_generic.cc:61): virtual bool webrtc::AudioDeviceGeneric::BuiltInAGCIsAvailable() const: Not supported on this platform
[000:001] [3621] (audio_device_generic.cc:71): virtual bool webrtc::AudioDeviceGeneric::BuiltInNSIsAvailable() const: Not supported on this platform
[000:001] [3621] (adm_helpers.cc:47): Unable to set recording channel to kChannelBoth.

Then warning

07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1
07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1
07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1
...

here is my config.h

#define SERVER_HOST "xxxxx.com"
#define USE_SSL 1 // 1
#if USE_SSL
#define SERVER_PORT 4500
#else
#define SERVER_PORT 4500
#endif

#define OUTPUT_FILENAME "webrtcrecorder.mp4"
#define OUTPUT_FORMAT av::Format("MP4", "mp4",                                             \
               av::VideoCodec("H.264", "libx264", 400, 300, 25, 48000, 128000, "yuv420p"), \
               av::AudioCodec("AAC", "aac", 2, 44100, 64000, "fltp"));

recorder nothing...never into mp4... i can not find *.mp4 file

i build ffmpeg in enable-shared. Could u give me a help?

auscaster commented 7 years ago

Which platform are you on?

Those warnings shouldn't be a problem, I guess the issue is elsewhere.

On 2 May 2017 at 02:04, colorlength notifications@github.com wrote:

First warning

[000:000] [3621] (audio_device_generic.cc:51): virtual bool webrtc::AudioDeviceGeneric::BuiltInAECIsAvailable() const: Not supported on this platform [000:001] [3621] (audio_device_generic.cc:61): virtual bool webrtc::AudioDeviceGeneric::BuiltInAGCIsAvailable() const: Not supported on this platform [000:001] [3621] (audio_device_generic.cc:71): virtual bool webrtc::AudioDeviceGeneric::BuiltInNSIsAvailable() const: Not supported on this platform [000:001] [3621] (adm_helpers.cc:47): Unable to set recording channel to kChannelBoth.

Then warning

07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1 07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1 07:50:01 [warn] [streamrecorder.cpp(117)] Dropping initial mono samples1 ...

here is my config.h

define SERVER_HOST "xxxxx.com"

define USE_SSL 1 // 1

if USE_SSL

define SERVER_PORT 4500

else

define SERVER_PORT 4500

endif

define OUTPUT_FILENAME "webrtcrecorder.mp4"

define OUTPUT_FORMAT av::Format("MP4", "mp4", \

           av::VideoCodec("H.264", "libx264", 400, 300, 25, 48000, 128000, "yuv420p"), \
           av::AudioCodec("AAC", "aac", 2, 44100, 64000, "s16"));

recorder nothing...never into mp4... i can not find *.mp4 file

i build ffmpeg in enable-shared. Could u give me a help?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/140, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGKDPGZBUIJl2_DyKcz9YyCIOs10Kk9ks5r1nMHgaJpZM4NNkkE .

ConchFeng commented 7 years ago

thanks!I find when i build webrtc need add sudo apt-get install -qq --no-install-recommends unzip pkg-config g++ libssl-dev libnss3-dev libx11-dev libexpat1-dev libasound2 according to circle.ci....

tolleybot commented 6 years ago

Just to clarify you built webrtc with the above parameters and it fixed your issue? You are now able to record a mp4.