Initial Commit
This commit is contained in:
commit
131172eeec
19
MVIMG_Carver.py
Normal file
19
MVIMG_Carver.py
Normal 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
8
README.md
Normal 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
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pyexiftool==0.1.1
|
Loading…
Reference in New Issue
Block a user