|
@@ -417,6 +417,12 @@ class Mpegize:
|
|
def help(m):
|
|
def help(m):
|
|
print("mpegize command base-dir destination-movie fps dng|grw")
|
|
print("mpegize command base-dir destination-movie fps dng|grw")
|
|
|
|
|
|
|
|
+ def cleanup(m):
|
|
|
|
+ os.system("rmdir %s/sm/" % m.base)
|
|
|
|
+ os.system("rmdir %s/" % m.base)
|
|
|
|
+ print("Message: Rec")
|
|
|
|
+ sys.stdout.flush()
|
|
|
|
+
|
|
def run(m, argv):
|
|
def run(m, argv):
|
|
if len(argv) > 2:
|
|
if len(argv) > 2:
|
|
m.base = argv[2]
|
|
m.base = argv[2]
|
|
@@ -440,11 +446,10 @@ class Mpegize:
|
|
print("Message: proc")
|
|
print("Message: proc")
|
|
sys.stdout.flush()
|
|
sys.stdout.flush()
|
|
gst_convert(m.base, argv[3], argv[4]=="dng")
|
|
gst_convert(m.base, argv[3], argv[4]=="dng")
|
|
|
|
+ m.cleanup()
|
|
return
|
|
return
|
|
if mode == "convert" or mode == "stop":
|
|
if mode == "convert" or mode == "stop":
|
|
if ext=="grw":
|
|
if ext=="grw":
|
|
- # FIXME: need to wait for other mpegize!
|
|
|
|
- time.sleep(200)
|
|
|
|
return
|
|
return
|
|
print("Phase 1: jpegize", file=sys.stderr)
|
|
print("Phase 1: jpegize", file=sys.stderr)
|
|
print("Message: 0%%")
|
|
print("Message: 0%%")
|
|
@@ -455,6 +460,7 @@ class Mpegize:
|
|
print("Message: enc")
|
|
print("Message: enc")
|
|
sys.stdout.flush()
|
|
sys.stdout.flush()
|
|
gst_convert(m.base, argv[3], argv[4]=="dng")
|
|
gst_convert(m.base, argv[3], argv[4]=="dng")
|
|
|
|
+ m.cleanup()
|
|
return
|
|
return
|
|
if mode == "gaps":
|
|
if mode == "gaps":
|
|
print("Video gaps")
|
|
print("Video gaps")
|