I have got an issue regarding video capture orientation. first of all its about voip app which uses pjsip which can transmit video. the video is being captured using AVCapture frame. so the issue arises while device orientation changes then i have to set the avcapture orientation as well. for example:
capConnection.videoOrientation = AVCaptureVideoOrientationLandscapeLeft;
it works fine but i have repeat image part.
so the question is how to get rid of this repeated image part. i have tried this solution but it keeps crashing on vImageRotate90_ARGB8888
any idea how resolve this issue?
in order to try this yourself out, you can get PJSIP version 2.3 video with sample project compile and run it against a test SIP server.
edit: the preview layer is rotated and scaled fine. the particular issue happens on receiving RTP (video) stream when that device rotates and sends images with repeated edges. for instance, if iPadA(horizontal) starts video call with iPadB(horizontal) the image is fine and not repeated edges. but if the iPadA rotates to vertical then iPadB gets this repeated edge images. notice on rotation the capture connection orientation is set to current device orientation.
note the the preview layer has AVLayerVideoGravityResize
but that does not affect the outgoing video stream.