You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to adopt this library for video recording in the project, but face strange issue. As far as I researched the issues section, this problem with mirroring mode for front camera is still actual:
Basically for front camera it doesn't matter where and when you set nextLevel.mirroringMode = .off - it's not mirrored on previewLayer, but the resulting video is mirrored.
Proposed solution was to apply nextLevel.videoConfiguration.transform = .init(scaleX: -1, y: 1) which works fine for apple devices. But what I faced is not all video players understand the resulting video and it gets rotated upside down.
If we look into metadata, the recorded video will have:
Rotation: 180
SIDE DATA LIST
If not applying transform, everything is zero and not rotated, but mirrored. Could there be any other solutions to get resulting video without any rotation metadata or mirroring for front camera?
The text was updated successfully, but these errors were encountered:
Hi there,
Trying to adopt this library for video recording in the project, but face strange issue. As far as I researched the issues section, this problem with mirroring mode for front camera is still actual:
#49
#113
Basically for front camera it doesn't matter where and when you set
nextLevel.mirroringMode = .off
- it's not mirrored on previewLayer, but the resulting video is mirrored.Proposed solution was to apply
nextLevel.videoConfiguration.transform = .init(scaleX: -1, y: 1)
which works fine for apple devices. But what I faced is not all video players understand the resulting video and it gets rotated upside down.If we look into metadata, the recorded video will have:
Rotation: 180
SIDE DATA LIST
If not applying transform, everything is zero and not rotated, but mirrored. Could there be any other solutions to get resulting video without any rotation metadata or mirroring for front camera?
The text was updated successfully, but these errors were encountered: