Sending Live Photo to Android using SDK as a Motion Image The Next CEO of Stack OverflowAndroid: combining text & image on a Button or ImageButtonSending Email in Android using JavaMail API without using the default/built-in appHow to send an object from one Android Activity to another using Intents?How can I send emails from my Android application?Android SDK installation doesn't find JDKAndroid Min SDK Version vs. Target SDK VersionAndroid SDK Manager Not Installing ComponentsEclipse hangs at the Android SDK Content LoaderAndroid ContentProvider to access photos on phoneReact Native android build failed. SDK location not found

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

How do I solve this limit?

Any way to transfer all permissions from one role to another?

If I blow insulation everywhere in my attic except the door trap, will heat escape through it?

How to make a variable always equal to the result of some calculations?

Trouble understanding the speech of overseas colleagues

How to safely derail a train during transit?

Removing read access from a file

How do I construct this japanese bowl?

Can a single photon have an energy density?

Grabbing quick drinks

What's the point of interval inversion?

What size rim is OK?

Is it a good idea to use COLUMN AS (left([Another_Column],(4)) instead of LEFT in the select?

Apart from "berlinern", do any other German dialects have a corresponding verb?

Whats the best way to handle refactoring a big file?

Should I tutor a student who I know has cheated on their homework?

WOW air has ceased operation, can I get my tickets refunded?

If the heap is initialized for security, then why is the stack uninitialized?

Visit to the USA with ESTA approved before trip to Iran

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Describing a person. What needs to be mentioned?

When did Lisp start using symbols for arithmetic?

Opposite of a diet



Sending Live Photo to Android using SDK as a Motion Image



The Next CEO of Stack OverflowAndroid: combining text & image on a Button or ImageButtonSending Email in Android using JavaMail API without using the default/built-in appHow to send an object from one Android Activity to another using Intents?How can I send emails from my Android application?Android SDK installation doesn't find JDKAndroid Min SDK Version vs. Target SDK VersionAndroid SDK Manager Not Installing ComponentsEclipse hangs at the Android SDK Content LoaderAndroid ContentProvider to access photos on phoneReact Native android build failed. SDK location not found










0















I have extracted both the image and video files to a temporary directory in iOS in preparation to send a Motion Image to Android.



So I need to convert the files into a motion image which requires that I join both files together in a single .jpg. This is easy as the video is just tagged onto the image:



[jpg data][mp4 data]


I've been looking at https://android.jlelse.eu/working-with-motion-photos-da0aa49b50c and it appears I need to add some XMP metadata to the photo to tell it where the offset is.



However, I have a motion photo and I extracted the metadata but it doesn't match the instructions above.



Anybody have any success in doing this and is there an official guide that I have not located?



This is the metadata as extracted by exiftool (https://sno.phy.queensu.ca/~phil/exiftool/)



$ exiftool 20190306_145122.jpg 
ExifTool Version Number : 11.32
File Name : 20190306_145122.jpg
Directory : .
File Size : 6.0 MB
File Modification Date/Time : 2019:03:06 14:51:22+00:00
File Access Date/Time : 2019:03:20 18:18:17+00:00
File Inode Change Date/Time : 2019:03:15 20:06:40+00:00
File Permissions : rwxr-----
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Make : samsung
Camera Model Name : SM-G930F
Orientation : Rotate 90 CW
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Software : G930FXXS2DRC3
Modify Date : 2019:03:06 14:51:22
Y Cb Cr Positioning : Centered
Exposure Time : 1/100
F Number : 1.7
Exposure Program : Program AE
ISO : 50
Exif Version : 0220
Date/Time Original : 2019:03:06 14:51:22
Create Date : 2019:03:06 14:51:22
Shutter Speed Value : 1/100
Aperture Value : 1.7
Brightness Value : 4.3
Exposure Compensation : 0
Max Aperture Value : 1.7
Metering Mode : Center-weighted average
Flash : No Flash
Focal Length : 4.2 mm
Maker Note Version : 0100
Device Type : Cell Phone
Raw Data Byte Order : Little-endian (Intel, II)
Raw Data CFA Pattern : Swap
Face Detect : Off
User Comment :
Sub Sec Time : 0040
Sub Sec Time Original : 0040
Sub Sec Time Digitized : 0040
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 4032
Exif Image Height : 3024
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 26 mm
Scene Capture Type : Standard
Image Unique ID : C12LLJB18VM C12LLKH01GM.
GPS Version ID : 2.2.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 14:51:18
GPS Date Stamp : 2019:03:06
Compression : JPEG (old-style)
Thumbnail Offset : 1218
Thumbnail Length : 25490
Image Width : 4032
Image Height : 3024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Time Stamp : 2019:03:06 14:51:22+00:00
Embedded Video Type : MotionPhoto_Data
Embedded Video File : (Binary data 2803773 bytes, use -b option to extract)
Aperture : 1.7
GPS Altitude : 61 m Above Sea Level
GPS Date/Time : 2019:03:06 14:51:18Z
GPS Latitude : 51 deg 53' 47.00" N
GPS Longitude : 8 deg 26' 33.00" W
GPS Position : 51 deg 53' 47.00" N, 8 deg 26' 33.00" W
Image Size : 4032x3024
Megapixels : 12.2
Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed : 1/100
Create Date : 2019:03:06 14:51:22.0040
Date/Time Original : 2019:03:06 14:51:22.0040
Modify Date : 2019:03:06 14:51:22.0040
Thumbnail Image : (Binary data 25490 bytes, use -b option to extract)
Circle Of Confusion : 0.005 mm
Field Of View : 69.4 deg
Focal Length : 4.2 mm (35 mm equivalent: 26.0 mm)
Hyperfocal Distance : 2.14 m
Light Value : 9.2









share|improve this question






















  • Anybody familiar with this?

    – d0n13
    Mar 25 at 15:33















0















I have extracted both the image and video files to a temporary directory in iOS in preparation to send a Motion Image to Android.



So I need to convert the files into a motion image which requires that I join both files together in a single .jpg. This is easy as the video is just tagged onto the image:



[jpg data][mp4 data]


I've been looking at https://android.jlelse.eu/working-with-motion-photos-da0aa49b50c and it appears I need to add some XMP metadata to the photo to tell it where the offset is.



However, I have a motion photo and I extracted the metadata but it doesn't match the instructions above.



Anybody have any success in doing this and is there an official guide that I have not located?



This is the metadata as extracted by exiftool (https://sno.phy.queensu.ca/~phil/exiftool/)



$ exiftool 20190306_145122.jpg 
ExifTool Version Number : 11.32
File Name : 20190306_145122.jpg
Directory : .
File Size : 6.0 MB
File Modification Date/Time : 2019:03:06 14:51:22+00:00
File Access Date/Time : 2019:03:20 18:18:17+00:00
File Inode Change Date/Time : 2019:03:15 20:06:40+00:00
File Permissions : rwxr-----
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Make : samsung
Camera Model Name : SM-G930F
Orientation : Rotate 90 CW
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Software : G930FXXS2DRC3
Modify Date : 2019:03:06 14:51:22
Y Cb Cr Positioning : Centered
Exposure Time : 1/100
F Number : 1.7
Exposure Program : Program AE
ISO : 50
Exif Version : 0220
Date/Time Original : 2019:03:06 14:51:22
Create Date : 2019:03:06 14:51:22
Shutter Speed Value : 1/100
Aperture Value : 1.7
Brightness Value : 4.3
Exposure Compensation : 0
Max Aperture Value : 1.7
Metering Mode : Center-weighted average
Flash : No Flash
Focal Length : 4.2 mm
Maker Note Version : 0100
Device Type : Cell Phone
Raw Data Byte Order : Little-endian (Intel, II)
Raw Data CFA Pattern : Swap
Face Detect : Off
User Comment :
Sub Sec Time : 0040
Sub Sec Time Original : 0040
Sub Sec Time Digitized : 0040
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 4032
Exif Image Height : 3024
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 26 mm
Scene Capture Type : Standard
Image Unique ID : C12LLJB18VM C12LLKH01GM.
GPS Version ID : 2.2.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 14:51:18
GPS Date Stamp : 2019:03:06
Compression : JPEG (old-style)
Thumbnail Offset : 1218
Thumbnail Length : 25490
Image Width : 4032
Image Height : 3024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Time Stamp : 2019:03:06 14:51:22+00:00
Embedded Video Type : MotionPhoto_Data
Embedded Video File : (Binary data 2803773 bytes, use -b option to extract)
Aperture : 1.7
GPS Altitude : 61 m Above Sea Level
GPS Date/Time : 2019:03:06 14:51:18Z
GPS Latitude : 51 deg 53' 47.00" N
GPS Longitude : 8 deg 26' 33.00" W
GPS Position : 51 deg 53' 47.00" N, 8 deg 26' 33.00" W
Image Size : 4032x3024
Megapixels : 12.2
Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed : 1/100
Create Date : 2019:03:06 14:51:22.0040
Date/Time Original : 2019:03:06 14:51:22.0040
Modify Date : 2019:03:06 14:51:22.0040
Thumbnail Image : (Binary data 25490 bytes, use -b option to extract)
Circle Of Confusion : 0.005 mm
Field Of View : 69.4 deg
Focal Length : 4.2 mm (35 mm equivalent: 26.0 mm)
Hyperfocal Distance : 2.14 m
Light Value : 9.2









share|improve this question






















  • Anybody familiar with this?

    – d0n13
    Mar 25 at 15:33













0












0








0








I have extracted both the image and video files to a temporary directory in iOS in preparation to send a Motion Image to Android.



So I need to convert the files into a motion image which requires that I join both files together in a single .jpg. This is easy as the video is just tagged onto the image:



[jpg data][mp4 data]


I've been looking at https://android.jlelse.eu/working-with-motion-photos-da0aa49b50c and it appears I need to add some XMP metadata to the photo to tell it where the offset is.



However, I have a motion photo and I extracted the metadata but it doesn't match the instructions above.



Anybody have any success in doing this and is there an official guide that I have not located?



This is the metadata as extracted by exiftool (https://sno.phy.queensu.ca/~phil/exiftool/)



$ exiftool 20190306_145122.jpg 
ExifTool Version Number : 11.32
File Name : 20190306_145122.jpg
Directory : .
File Size : 6.0 MB
File Modification Date/Time : 2019:03:06 14:51:22+00:00
File Access Date/Time : 2019:03:20 18:18:17+00:00
File Inode Change Date/Time : 2019:03:15 20:06:40+00:00
File Permissions : rwxr-----
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Make : samsung
Camera Model Name : SM-G930F
Orientation : Rotate 90 CW
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Software : G930FXXS2DRC3
Modify Date : 2019:03:06 14:51:22
Y Cb Cr Positioning : Centered
Exposure Time : 1/100
F Number : 1.7
Exposure Program : Program AE
ISO : 50
Exif Version : 0220
Date/Time Original : 2019:03:06 14:51:22
Create Date : 2019:03:06 14:51:22
Shutter Speed Value : 1/100
Aperture Value : 1.7
Brightness Value : 4.3
Exposure Compensation : 0
Max Aperture Value : 1.7
Metering Mode : Center-weighted average
Flash : No Flash
Focal Length : 4.2 mm
Maker Note Version : 0100
Device Type : Cell Phone
Raw Data Byte Order : Little-endian (Intel, II)
Raw Data CFA Pattern : Swap
Face Detect : Off
User Comment :
Sub Sec Time : 0040
Sub Sec Time Original : 0040
Sub Sec Time Digitized : 0040
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 4032
Exif Image Height : 3024
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 26 mm
Scene Capture Type : Standard
Image Unique ID : C12LLJB18VM C12LLKH01GM.
GPS Version ID : 2.2.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 14:51:18
GPS Date Stamp : 2019:03:06
Compression : JPEG (old-style)
Thumbnail Offset : 1218
Thumbnail Length : 25490
Image Width : 4032
Image Height : 3024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Time Stamp : 2019:03:06 14:51:22+00:00
Embedded Video Type : MotionPhoto_Data
Embedded Video File : (Binary data 2803773 bytes, use -b option to extract)
Aperture : 1.7
GPS Altitude : 61 m Above Sea Level
GPS Date/Time : 2019:03:06 14:51:18Z
GPS Latitude : 51 deg 53' 47.00" N
GPS Longitude : 8 deg 26' 33.00" W
GPS Position : 51 deg 53' 47.00" N, 8 deg 26' 33.00" W
Image Size : 4032x3024
Megapixels : 12.2
Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed : 1/100
Create Date : 2019:03:06 14:51:22.0040
Date/Time Original : 2019:03:06 14:51:22.0040
Modify Date : 2019:03:06 14:51:22.0040
Thumbnail Image : (Binary data 25490 bytes, use -b option to extract)
Circle Of Confusion : 0.005 mm
Field Of View : 69.4 deg
Focal Length : 4.2 mm (35 mm equivalent: 26.0 mm)
Hyperfocal Distance : 2.14 m
Light Value : 9.2









share|improve this question














I have extracted both the image and video files to a temporary directory in iOS in preparation to send a Motion Image to Android.



So I need to convert the files into a motion image which requires that I join both files together in a single .jpg. This is easy as the video is just tagged onto the image:



[jpg data][mp4 data]


I've been looking at https://android.jlelse.eu/working-with-motion-photos-da0aa49b50c and it appears I need to add some XMP metadata to the photo to tell it where the offset is.



However, I have a motion photo and I extracted the metadata but it doesn't match the instructions above.



Anybody have any success in doing this and is there an official guide that I have not located?



This is the metadata as extracted by exiftool (https://sno.phy.queensu.ca/~phil/exiftool/)



$ exiftool 20190306_145122.jpg 
ExifTool Version Number : 11.32
File Name : 20190306_145122.jpg
Directory : .
File Size : 6.0 MB
File Modification Date/Time : 2019:03:06 14:51:22+00:00
File Access Date/Time : 2019:03:20 18:18:17+00:00
File Inode Change Date/Time : 2019:03:15 20:06:40+00:00
File Permissions : rwxr-----
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Make : samsung
Camera Model Name : SM-G930F
Orientation : Rotate 90 CW
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Software : G930FXXS2DRC3
Modify Date : 2019:03:06 14:51:22
Y Cb Cr Positioning : Centered
Exposure Time : 1/100
F Number : 1.7
Exposure Program : Program AE
ISO : 50
Exif Version : 0220
Date/Time Original : 2019:03:06 14:51:22
Create Date : 2019:03:06 14:51:22
Shutter Speed Value : 1/100
Aperture Value : 1.7
Brightness Value : 4.3
Exposure Compensation : 0
Max Aperture Value : 1.7
Metering Mode : Center-weighted average
Flash : No Flash
Focal Length : 4.2 mm
Maker Note Version : 0100
Device Type : Cell Phone
Raw Data Byte Order : Little-endian (Intel, II)
Raw Data CFA Pattern : Swap
Face Detect : Off
User Comment :
Sub Sec Time : 0040
Sub Sec Time Original : 0040
Sub Sec Time Digitized : 0040
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 4032
Exif Image Height : 3024
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 26 mm
Scene Capture Type : Standard
Image Unique ID : C12LLJB18VM C12LLKH01GM.
GPS Version ID : 2.2.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 14:51:18
GPS Date Stamp : 2019:03:06
Compression : JPEG (old-style)
Thumbnail Offset : 1218
Thumbnail Length : 25490
Image Width : 4032
Image Height : 3024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Time Stamp : 2019:03:06 14:51:22+00:00
Embedded Video Type : MotionPhoto_Data
Embedded Video File : (Binary data 2803773 bytes, use -b option to extract)
Aperture : 1.7
GPS Altitude : 61 m Above Sea Level
GPS Date/Time : 2019:03:06 14:51:18Z
GPS Latitude : 51 deg 53' 47.00" N
GPS Longitude : 8 deg 26' 33.00" W
GPS Position : 51 deg 53' 47.00" N, 8 deg 26' 33.00" W
Image Size : 4032x3024
Megapixels : 12.2
Scale Factor To 35 mm Equivalent: 6.2
Shutter Speed : 1/100
Create Date : 2019:03:06 14:51:22.0040
Date/Time Original : 2019:03:06 14:51:22.0040
Modify Date : 2019:03:06 14:51:22.0040
Thumbnail Image : (Binary data 25490 bytes, use -b option to extract)
Circle Of Confusion : 0.005 mm
Field Of View : 69.4 deg
Focal Length : 4.2 mm (35 mm equivalent: 26.0 mm)
Hyperfocal Distance : 2.14 m
Light Value : 9.2






android ios phphotolibrary






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 16:29









d0n13d0n13

852617




852617












  • Anybody familiar with this?

    – d0n13
    Mar 25 at 15:33

















  • Anybody familiar with this?

    – d0n13
    Mar 25 at 15:33
















Anybody familiar with this?

– d0n13
Mar 25 at 15:33





Anybody familiar with this?

– d0n13
Mar 25 at 15:33












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285108%2fsending-live-photo-to-android-using-sdk-as-a-motion-image%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285108%2fsending-live-photo-to-android-using-sdk-as-a-motion-image%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript