[Asterisk-video] Playing with MCU

Emmanuel BUU emmanuel.buu at ives.fr
Sun Oct 21 17:28:30 CDT 2007


Sergio,

I have been playing with your MCU using video mixer + app_mixer.

First remark, I don't know wich version of xmlrpc-c to use :

I got the last one from source and I had to adapt media/src to some new 
structures.
Also: it seems that mcu depends on private header files from xmlrpc-c 
(session.h, conn.h, etc.). Why ?

I finally compiled mcu & app_mixer successfully. Then as payloadtype for 
H.263+ has been changed to 97 in my asterisk,  I changed this 
accordingly in video mixer. I got to a point where  the first 
participant call causes  mcu and asterisk to crash (seg fault).

Note : ffmpeg has been compiled from a fresh checkout.

Any idea ?

Here are the traces:

[26310]>Run [0xbffbba04]
[26310]-Handler on /status
[26310]-Handler on /mcu
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>CreateConference
[26310]<CreateConferencei [100]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-Init multiconf
[26310]-SetCompositionType [1,0]
[26310]>SetCompositionType [1,0]
[26310]<SetCompositionType
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-MixAudioThread [26310]
[26310]-MixVideoThread [26310]
[26310]>MixVideo
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]>CreateParticipant
[26310]>CreateMixer video [1]
[26310]<CreateMixer video
[26310]>CreateMixer audio [1]
[26310]<CreateMixer audio
[26310]-SetVideoCodec [103,300,5,4,8]
[26310]-SetAudioCodec [3]
[26310]>Init video stream
[26310]<Init video stream
[26310]>Init audio stream
[26310]<Init audio stream
[26310]>Init mixer [1]
[26310]PipeVideoInput init
[26310]PipeVideoOutput init
[26310]<Init mixer [1]
[26310]>Init mixer [1]
[26310]PipeAudioOutput init
[26310]<Init mixer [1]
[26310]<CreateParticipant [1]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-SetVideoCodec[1]
[26310]-SetVideoCodec [97,15,5,0,0]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-SetAudioCodec [1]
[26310]-SetAudioCodec [0]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-StartSendingAudio [1]
[26310]>StartSending audio [127.0.0.1,6150]
[26310]-SetRemotePort [127.0.0.1,6150,0]
[26310]<StartSending audio [1]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-StartSendingVideo [1]
[26310]>StartSending video [127.0.0.1,6120,97]
[26310]-SetRemotePort [127.0.0.1,6120,97]
[26310]<StartSending video [1]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-StartReceivingAudio [1]
[26310]<StartReceiving audio [55270]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]-Dispatching [/mcu]
[26310]>ProcessRequest [/mcu]
[26310]>GetConferenceRef [100]
[26310]<GetConferenceRef
[26310]-StartReceivingVideo [1]
[26310]-StartReceiving Video [55268]
[26310]>ReleaseConferenceRef [100]
[26310]<ReleaseConferenceRef
[26310]<ProccessRequest
[26310]SendAudioThread [26310]
[26310]>SendAudio
[26310]-CreateAudioCodec [0]
[26310]SendVideoThread [26310]
[26310]>SendVideo [352,288,5,15,1,6]
[26310]-CreateVideoEncoder [97,1,6]
[26310]RecVideoThread [26310]
[26310]>RecVideo
[26310]-StartVideoCapture [352,288,15]
[26310]-SetSize [352,288]
[26310]-OpenCodec H263 [5120bps,15fps]
[26310]-Sending video
[26310]RecvAudioThread [26310]
[26310]>RecAudio
[26310]Error recv video [0]
[26310]Silence
[26310]-CreateVideoDecoder[97]
[26310]Lost packet
[26310]-CreateVideoDecoder[97]
[26310]-CreateVideoDecoder[97]
[h263 @ 0xae9990]Bad picture start code
[h263 @ 0xae9990]header damaged
swScaler: 0x0 -> 176x144 is invalid scaling dimension

$ gdb mcu core.23610
#0  0x0013a363 in sws_scale () from /usr/local/lib/libswscale.so.0
(gdb) where
#0  0x0013a363 in sws_scale () from /usr/local/lib/libswscale.so.0
#1  0x00000000 in ?? ()






More information about the asterisk-video mailing list