- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm joining together videos from the front and back camera on Android using Intel INDE Media for Mobile libraries. Each video is recorded from a different camera and may require different rotation angles. When I join the video and watch it, the result is that playback appears to jump before each joined video starts and then rotation occurs about 20-100ms after the next video segment begins. This causes a jarring shift where the video flips cameras and is upside down briefly.
Is this the intended behavior of the RotateEffect and is there any way to make its behavior more immediate and seamless?
Here is the relevant rotation code:
for (File file : files) { try { com.intel.inde.mp.Uri uri = new com.intel.inde.mp.Uri(file.getAbsolutePath()); mediaComposer.addSourceFile(uri); MediaFileInfo mediaFileInfo = new MediaFileInfo(new AndroidMediaObjectFactory(getActivity().getApplicationContext())); mediaFileInfo.setUri(uri); Long duration = mediaFileInfo.getDurationInMicroSec(); VideoEffect rotateEffect = new RotateEffect(mRotationAngles.get(i), factory.getEglUtil()); rotateEffect.setSegment(new Pair<>((long) currentTime, currentTime + duration)); Log.d(TAG, "Rotation angle: " + mRotationAngles.get(i) + " time: " + currentTime + " " + (currentTime + duration)); mediaComposer.addVideoEffect(rotateEffect); currentTime += duration; i++; } catch (Exception e) { e.printStackTrace(); } file.deleteOnExit(); }
Also, this is unrelated, but I'd love to have some way to flip my video horizontally while transcoding to properly handle the selfie camera. Is there some hidden functionality I'm unaware of in the SDK that can handle this?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are not able to reproduce the issue you are seeing with above code snippet. Can you please provide us a reproducer of the issue with snapshot of the same. You can directly send me the package using private message including reproducer, input bit streams and snapshot for above issue.
Thanks,
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page