Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Google's live photos unplayable #373

Closed
thermatk opened this issue Jan 24, 2023 · 0 comments
Closed

Google's live photos unplayable #373

thermatk opened this issue Jan 24, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@thermatk
Copy link

thermatk commented Jan 24, 2023

I have a mix of Samsung and Pixel photos in the library and while Samsung live photos get played, the exported and/or transcoded motion photo from the Pixel ones is not being played. Console shows that MP4 gets sent from the server, but it's unplayable.

Typical message in browser console:
Media resource https://XXX.YYY.com/apps/memories/api/video/livephoto/433833?etag=8763cdd03c06868753f43a1412ebee76&liveid=self__trailer&transcode=hhm65bcf9cs0 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) Details: static MP4Metadata::ResultAndByteBuffer mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata

Memories version 4.10.1

Example file attached

https://user-images.githubusercontent.com/2287483/214258202-a9512dcf-0d6f-4717-8e13-e73bba5fb95b.jpg

Locally I can successfully extract the Pixel Motion Video with:

for i in PXL*.jpg; do \
  ofs=$(grep -F --byte-offset --only-matching --text ftypisom "$i"); \
  ofs=${ofs%:*}; \
  [[ $ofs ]] && dd "if=$i" "of=${i%.jpg}.mp4" bs=$((ofs-4)) skip=1; \
done
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants