Skip to content

Instantly share code, notes, and snippets.

@HikerBoricua
HikerBoricua / fix_eoi.py
Last active July 25, 2021 21:25 — forked from bcyrill/fix_eoi.py
Adds peripheral code to make it easier to work with a folder/directory containing mixed content. Tested with S8+ (trailer versions 103, 105 & 106). Coded for Python 3.6.5 64 bit.
#!/usr/bin/python
# The Samsung trailer format is based on the implementation from ExifTool
# http://www.sno.phy.queensu.ca/~phil/exiftool/
# Forked off https://gist.github.com/bcyrill to fit a specific use case,
# bad pano files mixed with other files in a folder/dir
# The "dump" argument was not tested in this fork
# Meant to be run from a batch like the Windows CMD one in the block comment below
"""