txlyre 6 月之前
父節點
當前提交
8d80444b23
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      main.py

+ 8 - 1
main.py

@@ -242,7 +242,14 @@ def sample(source, source_type, multiplier=1):
 
 
 def video2_extractor(q, q2):
 def video2_extractor(q, q2):
     while True:
     while True:
-        data = extract_lsbs(q2.get())
+        data = q2.get()
+        data = chunks(data, 8)
+
+        newdata = b""
+        for chunk in data:
+            newdata += chunk[:4]
+
+        data = extract_lsbs(newdata)
         data = whiten(data)
         data = whiten(data)
 
 
         logger.info(f"Sample ready: {len(data)}b.")
         logger.info(f"Sample ready: {len(data)}b.")