-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
32 lines (29 loc) · 1.03 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import videoConversion as vc
import fileConversion as fc
import os
if __name__ == "__main__":
os.system("clear")
while True:
print("TubeStore - Convert your data to youtube uploadable video format\n\n")
print("1. Create video from data\n")
print("2. Retrieve data from video\n")
print("3. Exit Program\n")
option = int(input())
os.system("clear")
if option == 1:
path = input("\nEnter file path:")
print("\nProcessing . .")
[difference,ext] = vc.binaryToVideo(fc.fileToBinary(path),path)
os.system("clear")
print("Data to Video conversion successfull!\n\n")
elif option==2:
path = input("\nEnter video path:")
print("\nProcessing . .")
fc.binaryToFile(vc.videoToBinary(path))
os.system("clear")
print("Video to Data conversion successfull!\n\n")
elif option==3:
os.system("clear")
exit()
else:
pass