Initial Commit

This commit is contained in:
Kevin Rode 2020-10-19 20:17:59 -04:00
commit 131172eeec
3 changed files with 28 additions and 0 deletions

19
MVIMG_Carver.py Normal file
View File

@ -0,0 +1,19 @@
import os, exiftool
for file in os.listdir(os.getcwd()):
try:
with exiftool.ExifTool() as et:
offset = et.get_tag('MicroVideoOffset', file)
if offset != None and offset != '' :
print(offset)
size = os.path.getsize(file)
print(offset)
offset = int(size)-int(offset)
with open(file, "rb") as infile:
infile.seek(int(offset))
data = infile.read()
with open(file+".mp4", "wb") as outfile:
outfile.write(data)
else:
pass
except ValueError:
pass

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Motion Photo Carver
This tool is designed to carve out the video segment of Motion Videos from an android device. It is written in python 2.7 to ease porting it to the Magnet Axiom Artifact Exchange.
## Requirements
* Python 2.7
* PyExifTool \(Found [here](https://github.com/smarnach/pyexiftool)\)
## Usage
Begin by running `pip install -r requirements.txt` \
The script can then be used by placing it in the same directory as extracted MVIMG files and running `python MVIMG_Carver.py`

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
pyexiftool==0.1.1