videoconverter-worker 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/METADATA +1 -1
- videoconverter_worker-1.0.6.dist-info/RECORD +10 -0
- worker.py +4 -3
- videoconverter_worker-1.0.4.dist-info/RECORD +0 -10
- {videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/WHEEL +0 -0
- {videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/entry_points.txt +0 -0
- {videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ffmpeg_runner.py,sha256=2sYugXkKp-NKj3ahxbwbhAo4G49FDu-0oze-cdJvcY0,12218
|
|
2
|
+
metadata.py,sha256=32zQn7jJ6XTHhunwTn5Xv0qmpjHnap_pkPxY0XI8MBs,3116
|
|
3
|
+
schema.py,sha256=3ILdGl5qSQOSvKfiKWcnaxdyHwV4rDvGnRZIparVp3o,4361
|
|
4
|
+
task_queue.py,sha256=sYQelPRuTbP9g_sPs69xOR3n5SIxGBFxY4EI5ueQrQs,11822
|
|
5
|
+
worker.py,sha256=JEuCMeqFzNIepJP6fDEWeokA2zZ3eJ6MnxkewmFGXGE,21143
|
|
6
|
+
videoconverter_worker-1.0.6.dist-info/METADATA,sha256=YsRlsAkXt7kn4M4hbHz87OQ6FcPfsnOPtU1np3fneh4,5139
|
|
7
|
+
videoconverter_worker-1.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
videoconverter_worker-1.0.6.dist-info/entry_points.txt,sha256=qedJjjix02n9Hz8adBioDIpGHghm8S3fQZdFwM5LV1A,83
|
|
9
|
+
videoconverter_worker-1.0.6.dist-info/top_level.txt,sha256=iamWyiqUZ4X0_2UZx6GEk9gsPmiI9qhse_15HqtzUj8,48
|
|
10
|
+
videoconverter_worker-1.0.6.dist-info/RECORD,,
|
worker.py
CHANGED
|
@@ -37,7 +37,8 @@ def _desub_spinner(stop_event: threading.Event) -> None:
|
|
|
37
37
|
while not stop_event.wait(0.25):
|
|
38
38
|
dots = "." * ((i % 3) + 1)
|
|
39
39
|
try:
|
|
40
|
-
|
|
40
|
+
ts = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
|
41
|
+
sys.stderr.write(f"\r{ts} [INFO] worker: 去字幕中 {dots} ")
|
|
41
42
|
sys.stderr.flush()
|
|
42
43
|
except (OSError, UnicodeEncodeError):
|
|
43
44
|
break
|
|
@@ -198,7 +199,7 @@ def _log_split_to_merge_duration(data: dict, task_id: str, store: QueueStore) ->
|
|
|
198
199
|
if processed and duration_sec > 0:
|
|
199
200
|
src_duration_sec = processed[-1]["endTime"] - processed[0]["startTime"]
|
|
200
201
|
capacity = (src_duration_sec / 3600.0) / (duration_sec / 3600.0)
|
|
201
|
-
msg += f",产能预估:
|
|
202
|
+
msg += f",产能预估: {capacity:.2f}(HV/h)"
|
|
202
203
|
logger.info("videoId=%s %s", data.get("videoId", ""), msg)
|
|
203
204
|
store.add_log(task_id, "INFO", msg)
|
|
204
205
|
except Exception:
|
|
@@ -398,7 +399,7 @@ def run_simple_compose(
|
|
|
398
399
|
src_duration_sec = end_sec - start_sec
|
|
399
400
|
capacity = (src_duration_sec / 3600.0) / (elapsed / 3600.0) if elapsed > 0 else 0
|
|
400
401
|
logger.info(
|
|
401
|
-
"简易模式完成: %s,从切分到合成结束总时长: %s,产能预估:
|
|
402
|
+
"简易模式完成: %s,从切分到合成结束总时长: %s,产能预估: %.2f(HV/h)",
|
|
402
403
|
out_file, _format_duration(elapsed), capacity,
|
|
403
404
|
)
|
|
404
405
|
return str(out_file)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
ffmpeg_runner.py,sha256=2sYugXkKp-NKj3ahxbwbhAo4G49FDu-0oze-cdJvcY0,12218
|
|
2
|
-
metadata.py,sha256=32zQn7jJ6XTHhunwTn5Xv0qmpjHnap_pkPxY0XI8MBs,3116
|
|
3
|
-
schema.py,sha256=3ILdGl5qSQOSvKfiKWcnaxdyHwV4rDvGnRZIparVp3o,4361
|
|
4
|
-
task_queue.py,sha256=sYQelPRuTbP9g_sPs69xOR3n5SIxGBFxY4EI5ueQrQs,11822
|
|
5
|
-
worker.py,sha256=7sp3Wn6qf2xFtsQpJZEhUXrvb6m8uSmCNbcE4ssapQI,21117
|
|
6
|
-
videoconverter_worker-1.0.4.dist-info/METADATA,sha256=0bWYbcY5_HuBpnwNILPdmRb5LBeNPAiP_rQRfrf4tDM,5139
|
|
7
|
-
videoconverter_worker-1.0.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
videoconverter_worker-1.0.4.dist-info/entry_points.txt,sha256=qedJjjix02n9Hz8adBioDIpGHghm8S3fQZdFwM5LV1A,83
|
|
9
|
-
videoconverter_worker-1.0.4.dist-info/top_level.txt,sha256=iamWyiqUZ4X0_2UZx6GEk9gsPmiI9qhse_15HqtzUj8,48
|
|
10
|
-
videoconverter_worker-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
{videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{videoconverter_worker-1.0.4.dist-info → videoconverter_worker-1.0.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|