Skip to content

yushiyangk/Google-Pixel-8-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Scripts to rename files and extract motion photos for Google Pixel 8

These are meant to work on the files generated by the stock camera app.

Overview

Each of these scripts works in batch on an entire directory tree that contains image files in various subdirectories.

  1. Rename pairs of RAW (DNG) and JPEG files to have the same base name

    Google Pixel 8 is unconventional in naming these pairs of files with distinct base names, which makes it difficult for photo processing software to associate them together.

    This script renames each of these pairs to have the suffix ".RAW.jpg" and ".RAW.dng" to allow interoperability.

    Note: Motion photos with an accompanying RAW file are NOT renamed, as the JPEG file contains additional data and thus should not be subsumed under the RAW file in photo management software.

  2. Extract motion photos to give the photo and video as standalone files

    This should only be run if you do want to have such standalone files.

Dependencies

For all scripts

exiftool must be installed.

For google-pixel8-2-extract-motion-photos.sh

  1. jq

  2. Python and the package motionminer.

    This package exists on PyPI, but the version required has been patched to allow extracting standalone (non-motion) photos in addition to the embedded videos. This is available from https://github.com/yushiyangk/MotionMiner/tree/photo until such time as it gets merged by the maintainer.

    To intall this dependency, the recommended way is to use pipx. Assuming that the patched version of motionminer has been cloned locally as is the current working directory, run

    pipx install .
    

Usage

Change the ALLCAPS variables at the top of each script as necessary.

About

Scripts to normalise file names and extract motion photos from the stock camera of Google Pixel 8

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages