Posts

Es werden Posts vom Januar, 2023 angezeigt.

How to extract mp4 videos from your Google Pixel 6a photos

Bild
The Google Pixel 6a phone can take so-called motion pictures. These are jpeg images with a short mp4 video included in the metadata. This is how you see the image in an normal image viewer. This command allows you to extract the video from the jpeg file: exiftool -b -p "${trailer;s/.*(\0\0\0\x1cftypisom)/$1/s}" -ext jpg -w mp4 DIRECTORY or FILENAME -b Output metadata in binary format.  -p "${trailer;s/.*(\0\0\0\x1cftypisom)/$1/s}" Some magic to remove an offset in the binary file. https://exiftool.org/exiftool_pod.html#Advanced-formatting-feature -ext jpg Process files with the specified extension -w mp4 New filename extension DIR Directory or filename    This is the extracted video:  

Depth Map from Google Pixel 6a Photos

Bild
An other phone an other method to get the depth map. 😕 If you shoot with an Google Pixel in the "Portrait" mode it saves three images in one jpeg. The First one ist the Main image you See in every image viewer, second one is the image without any filter applied and the third one is the depth map. Main Image You can get the images with the command line tool " exiftool ". This time the depth map is not saved as embedded data but as a trailer. To extract it you need to fist run: "exiftool(-k).exe" MainImage.PORTRAIT.jpg -trailer -b > ImageWithoutFilter.jpg Image without filter This extracts an image with without any filter applied. Now you need to run the same command with the new created image, this will extract now the depth map: "exiftool(-k).exe" ImageWithoutFilter.jpg  -trailer -b > DepthMap.jpg Depth Map    

Things Libre Arts didn't blog about 2022

Bild
Alexandre Prokoudine does a great job with his Libre Arts blog and he made a big overview of the year 2022 with a preview of 2023 : As he looks at the big picture I collected some news from small more hidden open source graphics projects: Mobile As I'm only interested in the non mainstream mobile stacks I'm ignoring Android an OS here completely. Megapixels Megapixels got two new releases (1.5 and 1.6) with nice improvements.Meanwhile is Purism working on an fork called millipixels that is using libcamera. libcamera The first version of libcamera released and a lot of big companies like RedHat, Purism and the Raspberry Pi Foundation are working together to improve the camera stack. Image Viewer Image viewers are the kind of programmes that every one thinks are easy to write. But then you realise not only there are thousands of different file formats with metadata (with informations like "rotate this image", "this is an panorama", "geo locations"