[Asterisk-video] Problem compiling Mediamixer

jeremij jerome jeremij at gmail.com
Wed Oct 3 08:24:53 CDT 2007


Hi All,

we made some steps forward (we had to fix the path of xmlrpc library). Now
the mcu runs, but when we run ./test we obtain this:

[4636]>Run [0xbff19b50]
[4636]-Handler on /status
[4636]-Handler on /mcu
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>CreateConference
[4636]<CreateConferencei [100]
[4636]>GetConferenceRef [100]
[4636]<GetConferenceRef
[4636]-Init multiconf
[4636]-SetCompositionType [1,0]
[4636]>SetCompositionType [1,0]
[4636]<SetCompositionType
[4636]>ReleaseConferenceRef [100]
[4636]<ReleaseConferenceRef
[4636]-MixAudioThread [4636]
[4636]-MixVideoThread [4636]
[4636]>MixVideo
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>CreateConference
[4636]<CreateConferencei [101]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-Init multiconf
[4636]-SetCompositionType [1,0]
[4636]>SetCompositionType [1,0]
[4636]<SetCompositionType
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]>CreateParticipant
[4636]>CreateMixer video [1]
[4636]<CreateMixer video
[4636]>CreateMixer audio [1]
[4636]<CreateMixer audio
[4636]-SetVideoCodec [103,300,5,4,8]
[4636]-SetAudioCodec [3]
[4636]>Init video stream
[4636]<Init video stream
[4636]>Init audio stream
[4636]<Init audio stream
[4636]>Init mixer [1]
[4636]PipeVideoInput init
[4636]PipeVideoOutput init
[4636]<Init mixer [1]
[4636]>Init mixer [1]
[4636]PipeAudioOutput init
[4636]<Init mixer [1]
[4636]<CreateParticipant [1]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-SetVideoCodec[1]
[4636]-SetVideoCodec [103,300,5,4,8]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-SetAudioCodec [1]
[4636]-SetAudioCodec [0]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-StartSendingAudio [1]
[4636]>StartSending audio [192.168.195.1,1234]
[4636]-SetRemotePort [192.168.195.1,1234,0]
[4636]<StartSending audio [1]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-StartSendingVideo [1]
[4636]>StartSending video [192.168.195.1,1236,103]
[4636]-SetRemotePort [192.168.195.1,1236,103]
[4636]<StartSending video [1]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-StartReceivingVideo [1]
[4636]-StartReceiving Video [32814]
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]<ProccessRequest
[4636]-Dispatching [/mcu]
[4636]>ProcessRequest [/mcu]
[4636]>GetConferenceRef [101]
[4636]<GetConferenceRef
[4636]-SetCompositionType [0,0]
[4636]>SetCompositionType [0,0]
[4636]<SetCompositionType
[4636]>ReleaseConferenceRef [101]
[4636]<ReleaseConferenceRef
[4636]-MixAudioThread [4636]
[4636]SendVideoThread [4636]
[4636]>SendVideo [352,288,5,300,4,8]
[4636]-CreateVideoEncoder [103,4,8]
[4636]-StartVideoCapture [352,288,300]
[4636]-SetSize [352,288]
[4636]-OpenCodec H263 [5120bps,300fps]
[h263 @ 0x8828f0]Warning keyframe interval too large! reducing it ...
[4636]-Sending video
[4636]RecVideoThread [4636]
[4636]>RecVideo
[4636]<ProccessRequest
[4636]-MixVideoThread [4636]
[4636]>MixVideo
[4636]SendAudioThread [4636]
[4636]>SendAudio
[4636]-CreateAudioCodec [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]
[4636]Error recv video [0]


Using Asterisk 1.4.11, app_mixer and X-Lite we obtain this:

...
[5022]-OpenCodec H263 [5120bps,300fps]
[h263 @ 0xe478f0]Warning keyframe interval too large! reducing it ...
[5022]-Sending video
[5022]Silence
[5022]Error recv video [0]
[5022]-CreateVideoDecoder[34]
[5022]Lost packet
[h263 @ 0xe478f0]rc buffer underflow
[h263 @ 0xe478f0]rc buffer underflow
[h263 @ 0xe478f0]rc buffer underflow
[h263 @ 0xe478f0]rc buffer underflow
[5022]Silence
[h263 @ 0xe478f0]rc buffer underflow
...

Could someone help us to understand the reason of these errors ?  Thanks,

Jeremi




On 10/2/07, jeremij jerome <jeremij at gmail.com> wrote:

> We fixed the issue compiling ffmpeg with --enable-libgsm.
>
> Now we have another one. We compiled app_mixer and we have launche ./mcu.
> But when we start Asterisk, we got:
>
> ...
> [5084]>CreateConference [Default Room]
> [5084]>MakeCall  [CreateConference]
> Segmentation fault
> ...
>
> Launching ./test we got:
>
> [5340]>CreateConference [Sergio]
> [5340]>MakeCall  [CreateConference]
> Segmentation fault
>
>
> Any clue?
>
> Thanks.
>
>
>
>
>
> On 10/2/07, Sergio Garcia <sergio.garcia at fontventa.com> wrote:
> >
> >
> >
> > Can you check that libgsm.so is present in your system? I found that in
> > some cases only
> > libgsm.a is distributed in the devel package..
> >
> > ---------- Original Message ----------------------------------
> > From: "jeremij jerome" <jeremij at gmail.com>
> > Reply-To: Development discussion of video media support in Asterisk<
> > asterisk-video at lists.digium.com>
> > Date:  Tue, 2 Oct 2007 16:46:09 +0200
> >
> > >Hi all,
> > >
> > >I'm trying to compile Mediamixer (downloaded from
> > http://sip.fontventa.com/)
> > >but I'm stuck with gsm libraries. This is what I get when I launch
> > 'make':
> > >
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x51): In
> > >function `GSMCodec::GSMCodec()':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:13: undefined
> > reference
> > >to `gsm_create'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x6b):/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:16:
> >
> > >undefined reference to `gsm_option'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0xed): In
> > >function `GSMCodec::GSMCodec()':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:13: undefined
> > reference
> > >to `gsm_create'
> >
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x107):/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:16:
> > >undefined reference to `gsm_option'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x152): In
> > >function `GSMCodec::~GSMCodec()':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:21: undefined
> > reference
> > >to `gsm_destroy'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x1c4): In
> > >function `GSMCodec::~GSMCodec()':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:21: undefined
> > reference
> > >to `gsm_destroy'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x236): In
> > >function `GSMCodec::~GSMCodec()':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:21: undefined
> > reference
> > >to `gsm_destroy'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x2c5): In
> > >function `GSMCodec::Encode(unsigned short*, int, unsigned char*, int)':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:31: undefined
> > reference
> > >to `gsm_encode'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x30b): In
> > >function `GSMCodec::Decode(unsigned char*, int, unsigned short*, int)':
> > >/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:46: undefined
> > reference
> > >to `gsm_decode'
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x34f):/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:54:
> >
> > >undefined reference to `gsm_option'
> >
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x378):/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:60:
> > >undefined reference to `gsm_decode'
> >
> > >/usr/src/mediamixer/mcu/media/build/debug/gsmcodec.o(.text+0x3a6):/usr/src/mediamixer/mcu/media/src/gsm/gsmcodec.cpp:64:
> > >undefined reference to `gsm_decode'
> > >collect2: ld returned 1 exit status
> > >make: *** [mcu] Error 1
> > >
> > >I guess that is something related to gsm libraries. I'm using CentOS
> > 4.4 and
> > >the only library I found working is gsm-devel-1.0.10-3.i386.rpm.
> > >
> > >Could someone help me ?
> > >
> > >Thanks,
> > >Jeremi
> > >
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-video mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-video
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-video/attachments/20071003/109c550f/attachment.htm 


More information about the asterisk-video mailing list