VINUOJHA / idoubs

Automatically exported from code.google.com/p/idoubs
0 stars 0 forks source link

video received from ipad/iphone does not show properly #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 2-way video call between iphone/ipad
2. send video from iphone or ipad
3. video on the receiving side does not show properly, a portion of the video 
stream should be on the right but showed on the left. 

What is the expected output? What do you see instead?
Actual result (please see the image attached):
video on the receiving side does not show properly, a portion of the video 
stream should be on the right but showed on the left. 

What version of the product are you using? On what operating system?
Tested video sent from iphone4/3GS/iPad2, all has the same issue

Please provide any additional information below.
Video send from android doesn't have this issue.

Original issue reported on code.google.com by android...@gmail.com on 17 Mar 2011 at 3:09

Attachments:

GoogleCodeExporter commented 9 years ago
this problem can be fixed by add this code
        bufferPtr += 16 * sizeof(UInt8);
 to the callback function 
- (void)captureOutput in InCallViewController.m, as below

=================
- (void)captureOutput:(AVCaptureOutput *)captureOutput 
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer 
fromConnection:(AVCaptureConnection *)connection {

    CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
    if(CVPixelBufferLockBaseAddress(pixelBuffer, 0) == kCVReturnSuccess){
        UInt8 *bufferPtr = (UInt8 *)CVPixelBufferGetBaseAddress(pixelBuffer);
    bufferPtr += 16 * sizeof(UInt8);
        size_t buffeSize = CVPixelBufferGetDataSize(pixelBuffer);

        if(self->producerFirstFrame){ // Hope will never change
........
====================

Original comment by android...@gmail.com on 21 Mar 2011 at 2:59

GoogleCodeExporter commented 9 years ago
Thanks for the patch. Sorry for not being able to give you support because I am 
abroad and don't have a MAC to fix issues.

Original comment by boss...@yahoo.fr on 23 Mar 2011 at 8:45

GoogleCodeExporter commented 9 years ago
I changed the code follow by android...@gmail.com comments. The video display 
properly.
But the video quality downgrade(fade-to-black, mosaic.

Original comment by libin...@gmail.com on 28 Mar 2011 at 7:10

GoogleCodeExporter commented 9 years ago
That is also because the iPhone doesn't have the power to send high quality 
video to the server and the front camera is of lesser quality then the back 
camera.

Original comment by nightfox...@gmail.com on 30 Mar 2011 at 3:59

GoogleCodeExporter commented 9 years ago
Fixed in iDoubs v2.x.
For more information on how to build iDoubs v2.x: 
http://code.google.com/p/idoubs/wiki/Building_iDoubs_v2_x

Original comment by boss...@yahoo.fr on 4 Jun 2011 at 6:19

GoogleCodeExporter commented 9 years ago
I have fixed the application on iphone ,but when I make a video call with my 
friend,the pictures are very poor,I think this is the problem of the resolution 
ratio,encoding and decoding,right?So,what should I do if I want the picture 
to be clear ? Can you help me ?

Original comment by berylyan...@sina.cn on 2 Dec 2011 at 7:53