ChallyCai/doubango

Can not use iPad2 to make video call, crash

Closed this issue · 2 comments

What steps will reproduce the problem?
1.install idoubs into itouch4/iphone4/iPad2 
2.make video call 
3.itouch4<->iphone4 OK
4.itouch4<->iPad2, NOK . iPad accept the call then crash.
5.the call is using H.264 codec.
6.audio calls OK

What version of the product are you using? On what operating system?
itouch4 iOS4.3 /iPad2 IOS 4.3.

Please provide any additional information below.

debug info:
2011-08-12 00:40:50.403 testVideoCall[90:6b03] NgnProxyPluginMgr///: 
OnPluginCreated(3,3)
2011-08-12 00:40:50.406 testVideoCall[90:6b03] NgnProxyPluginMgr///: 
OnPluginCreated(4,1)
2011-08-12 00:40:52.893 testVideoCall[90:6b03] NgnProxyVideoConsumer///: 
prepareWithWidth(352,288,15)
2011-08-12 00:40:52.896 testVideoCall[90:6b03] NgnProxyVideoConsumer///: start()
2011-08-12 00:40:52.899 testVideoCall[90:6b03] NgnProxyVideoProducer///: 
prepareWithWidth(352,144,15)
2011-08-12 00:40:52.901 testVideoCall[90:6b03] NgnProxyVideoProducer///: start()
2011-08-12 00:40:52.904 testVideoCall[90:6b03] NgnProxyVideoProducer///: 
Starting Video stream
warning: The VAD has been replaced by a hack pending a complete rewrite
2011-08-12 00:40:53.777 testVideoCall[90:707] Sending Blank packet number 0
2011-08-12 00:40:53.780 testVideoCall[90:9683] NgnProxyVideoProducer///: 
Capture pixel format=NV12
[libx264 @ 0x19ad800] subme=0 + direct=temporal is not supported
[libx264 @ 0x19ad800] lookaheadless mb-tree requires intra refresh or infinite 
keyint
[libx264 @ 0x19ad800] frame MB size (22x9) > level limit (99)
[libx264 @ 0x19ad800] MB rate (2970) > level limit (1485)
2011-08-12 00:40:53.779 testVideoCall[90:6b03] NgnProxyVideoProducer///: Video 
capture started
[libx264 @ 0x19ad800] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x19ad800] profile Baseline, level 1.0
[libx264 @ 0x19ad800] 264 - core 104 - H.264/MPEG-4 AVC codec - Copyleft 
2003-2010 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 
deblock=1:0:0 analyse=0x1:0x111 me=dia subme=0 psy=1 psy_rd=0.00:0.00 
mixed_ref=0 me_range=16 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=0 threads=2 sliced_threads=1 slices=2 nr=0 
decimate=1 interlaced=0 constrained_intra=0 bframes=0 weightp=0 keyint=30 
keyint_min=16 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=22.0 qcomp=0.60 
qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.25 aq=1:1.00
warning: Unable to read symbols for 
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3 
(8F191)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not 
found).



Thread error:
crash at <tdav_converter_video_c> 
    ret = sws_scale(self->context, (const uint8_t* const*)self->srcFrame->data, self->srcFrame->linesize, 0, self->srcHeight,
        self->dstFrame->data, self->dstFrame->linesize);

Queue  sws_scale/swScale_C/hyscale_C/hyscale_fast_C

I think maybe caused by the image or video size. 

Please check it.Thanks.

Original issue reported on code.google.com by zrsh...@gmail.com on 11 Aug 2011 at 7:38

Please check th idoubs Issue62, have the same problem.

Did breakpoint, I found error buffer value when send blank packet.

I Comment this line in NgnProxyVideoProducer.mm  
//_producer->enc_cb.callback(_producer->enc_cb.callback_data,butter_ptr,buffer_s
ize);
this OK.

We need check it and found the true reason.

Maybe alloc wrong buffer_size .


Original comment by zrsh...@gmail.com on 16 Aug 2011 at 2:09

Original comment by boss...@yahoo.fr on 31 Aug 2011 at 7:39

  • Changed state: Fixed