Android / OPPO Motion Photo to Apple Live Photo - #16
Merged
Conversation
…o V1 is unavailable
21Z121Z1
marked this pull request as ready for review
August 11, 2026 18:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Implements Android Motion Photo / OPPO Live Photo → Apple Live Photo resource pairs (
.heicstill +.movpaired video) without changing the existing ProXDR / ISO HDR / OPPO-compatible / Portrait / Photographic Styles conversion core.The supplied real-fixture gate is now green on GitHub's
macos-26-arm64runner, and the ordinary XDRemux CI + policy checks are also green on the current head.Real sample coverage
The supplied archives contain 14 files:
Every file in the first archive contains Ultra HDR gain-map metadata. The two vivo samples are standard SDR Motion Photos.
The real samples exposed and now lock down several format details:
Container:Directoryranges select the real MotionPhoto payload.mpvd; the declared MotionPhoto length may also cover trailing Samsungsefd, so onlympvdpayload becomes the Apple MOV.GainMapresource before the trailing MotionPhoto video.Exact fixture SHA-256 values, byte ranges, presentation timestamps, stream counts and expected gain-map state are locked in
UploadedMotionPhotoFixtureGateTests.Architecture
XDRemuxCore/MotionPhotoMotionPhotoAsset/ item / checked byte-range modelCamera/GCamera,Container/GContainer)mpvdparser with Samsung trailing-sefdhandlingFileHandlepayload extractionXDRemuxAppleFeatures/LivePhotokCGImageDestinationPreserveGainMap = truestill-image-timetimed metadata sampleCLI / batch
xdremux convert --input <motion.jpg>auto-routes without a new command/flag.heic+.mov.live.heic+.live.mov.heic/.heif*.heicscanValidation
Current head:
571d0a886f67a88ba68aa0984cb29ba265c1a03eAll three pull-request checks are green:
XDRemux Policy— successXDRemux CI— successMotion Photo Real Fixture Gate— successThe strict real-fixture gate ran on macOS 26.5.2 / build 25F84 / arm64 and successfully:
XDREMUX_FIXTURE_ARCHIVE_URL;PHLivePhoto.requestto construct a real ApplePHLivePhotofor every generated pair.UploadedMotionPhotoFixtureGateTestscompleted in 173.748 seconds with 0 failures.The first strict run exposed a real QuickTime metadata timebase quantization case (~1.27 ms). The validator was corrected to compare the resolved source timestamp at the stored MOV metadata timescale rather than using an arbitrary 1 ms threshold; the real-fixture gate then passed in full. A synthetic regression test now covers this behavior.
The Motion Photo fixture archive is intentionally isolated from the pre-existing ProXDR/Apple-feature regression fixture bundle; ordinary CI now uses
XDREMUX_REGRESSION_FIXTURE_ARCHIVE_URLfor that older optional bundle, whileXDREMUX_FIXTURE_ARCHIVE_URLis reserved for the dedicated Motion Photo gate.Deliberately deferred