Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantom1003 committed Oct 13, 2022
0 parents commit c384216
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ev1 Format decoder
38 changes: 38 additions & 0 deletions ev1-dec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import os, sys
import tkinter
from tkinter.messagebox import showinfo
import windnd

def dnd_file(files):
for file in files:
file = file.decode()
print("Convert " + file)
with open(file, 'rb+') as f:
raw = f.read(100)
data = bytearray(raw)

for idx, b in enumerate(data):
data[idx] = b ^ 0xff

raw = bytes(data)
f.seek(0)
f.write(raw)
f.close()

os.rename(file, file + '.flv')


root = tkinter.Tk()
root.geometry('400x300')
root.title('EV1 decode')
windnd.hook_dropfiles(root, func=dnd_file)
label = tkinter.Label(root, text ='Drop *.ev1 on me :)')
label.place(relx = 0.5, rely = 0.5, anchor = 'center')
root.mainloop()


# if (len(sys.argv) != 2):
# print("ev1 format decoder: missing input file!")
# print("Usage: python3 dec.py [enc file]")
# exit(1)

0 comments on commit c384216

Please sign in to comment.