ActionStreamer 0.6.0__tar.gz → 0.6.2__tar.gz
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.
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/PKG-INFO +1 -1
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/CommonFunctions.py +28 -1
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Model/Model.py +1 -1
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/pyproject.toml +1 -1
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/README.md +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Config/Config.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Config/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Device/Device.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Device/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/Model/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Event/Event.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/__init__.py +0 -0
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
@@ -2,6 +2,7 @@ import sys
|
|
|
2
2
|
import hashlib
|
|
3
3
|
import hmac
|
|
4
4
|
import uuid
|
|
5
|
+
import subprocess
|
|
5
6
|
import time
|
|
6
7
|
from datetime import datetime
|
|
7
8
|
import requests
|
|
@@ -274,7 +275,33 @@ def get_cpu_frequency() -> float:
|
|
|
274
275
|
|
|
275
276
|
|
|
276
277
|
def get_clock_cycles_per_millisecond() -> float:
|
|
278
|
+
|
|
277
279
|
frequency_mhz = get_cpu_frequency()
|
|
278
280
|
frequency_hz = frequency_mhz * 1_000_000
|
|
279
281
|
cycles_per_millisecond = frequency_hz / 1_000
|
|
280
|
-
|
|
282
|
+
|
|
283
|
+
return cycles_per_millisecond
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
def concatenate_videos(input_file_path1, input_file_path2, output_file_path):
|
|
287
|
+
|
|
288
|
+
# Generate a unique file name for the temporary file list
|
|
289
|
+
temp_file_name = str(uuid.uuid4()) + '.txt'
|
|
290
|
+
temp_file_path = os.path.join('/tmp', temp_file_name)
|
|
291
|
+
|
|
292
|
+
with open(temp_file_path, 'w') as filelist:
|
|
293
|
+
filelist.write(f"file '{input_file_path1}'\n")
|
|
294
|
+
filelist.write(f"file '{input_file_path2}'\n")
|
|
295
|
+
|
|
296
|
+
# Run the ffmpeg command to concatenate the videos
|
|
297
|
+
try:
|
|
298
|
+
subprocess.run(['ffmpeg', '-f', 'concat', '-safe', '0', '-i', temp_file_path, '-c', 'copy', output_file_path], check=True)
|
|
299
|
+
except subprocess.CalledProcessError as ex:
|
|
300
|
+
print(f"Error occurred: {ex}")
|
|
301
|
+
finally:
|
|
302
|
+
# Clean up the temporary file
|
|
303
|
+
try:
|
|
304
|
+
os.remove(temp_file_path)
|
|
305
|
+
except OSError as e:
|
|
306
|
+
print(f"Error removing temporary file: {e}")
|
|
307
|
+
|
|
@@ -129,7 +129,7 @@ class VideoClip:
|
|
|
129
129
|
self.endTime = endTime
|
|
130
130
|
self.endTimeMs = endTimeMs
|
|
131
131
|
self.clipLengthInSeconds = clipLengthInSeconds
|
|
132
|
-
self.tagListID
|
|
132
|
+
self.tagListID = tagListID
|
|
133
133
|
self.creationDate = creationDate
|
|
134
134
|
self.createdBy = createdBy
|
|
135
135
|
self.lastModifiedDate = lastModifiedDate
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/CommonFunctions/Wifi/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.6.0 → actionstreamer-0.6.2}/actionstreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|