Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2935 Discussions

[INDE Media for Mobile - android] Incorrect video orientation if using front camera with portrait activity

winsey_l_
Beginner
114 Views

Hello,

I am currently using the SDK of Intel INDE Media for Mobile (https://github.com/INDExOS/media-for-mobile) in my Android application project.

It works fine in landscape after embedded in my android project. But, since my application requires to stream live video in portrait, I update the activity orientation to portrait. It works fine with the back camera. But when it switches to use the front camera, the live video streamed to server would be upside down.

I tried to solved this issue by calling setOrientation(180) on preview object. But it would also affect the capture object and the preview would be upside down while the live video becoming correct.

Please advice. Thank you very much.

Best Regards,
WS Li

0 Kudos
2 Replies
Harshdeep_B_Intel
114 Views

Hi Winsey,

Thank you for bring this issue to our attention. This issue is due to Media for mobile android library and is one of the known issues causing live video streaming to server vertically flipped. This is known bug. I will get back once we have any updates soon. I have also emailed you on this issue. Please reply directly to the email, if any further questions.

Thanks, 

 

Jonathan_P_1
Beginner
114 Views

Hi,

I'm facing the same problem than Winsey: when recording with the front camera, the preview is in the good orientation but when I watch the recorded video, the image is vertically flipped. Have you found any solution since last time?

Thanks for your help,

Jonathan

Reply