vidformer 0.6.2__py3-none-any.whl → 0.6.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
vidformer/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  """A Python library for creating and viewing videos with vidformer."""
2
2
 
3
- __version__ = "0.6.2"
3
+ __version__ = "0.6.4"
4
4
 
5
5
  from .vf import *
vidformer/cv2/vf_cv2.py CHANGED
@@ -91,6 +91,10 @@ class Frame:
91
91
  self._modified = False
92
92
 
93
93
  def _mut(self):
94
+ if self._modified:
95
+ assert self._fmt["pix_fmt"] == "rgb24"
96
+ return
97
+
94
98
  self._modified = True
95
99
  self._f = _filter_scale(self._f, pix_fmt="rgb24")
96
100
  self._fmt["pix_fmt"] = "rgb24"
vidformer/vf.py CHANGED
@@ -388,7 +388,7 @@ class YrdenServer:
388
388
  A yrden server is the main API for local use of vidformer.
389
389
  """
390
390
 
391
- def __init__(self, domain=None, port=None, bin=None):
391
+ def __init__(self, domain=None, port=None, bin=None, hls_prefix=None):
392
392
  """
393
393
  Connect to a Yrden server
394
394
 
@@ -413,6 +413,12 @@ class YrdenServer:
413
413
  # We need to print the URL in the notebook
414
414
  # This is a trick to get VS Code to forward the port
415
415
  cmd += ["--print-url"]
416
+
417
+ if hls_prefix is not None:
418
+ if not type(hls_prefix) == str:
419
+ raise Exception("hls_prefix must be a string")
420
+ cmd += ["--hls-prefix", hls_prefix]
421
+
416
422
  self._proc = subprocess.Popen(cmd)
417
423
 
418
424
  version = _check_hls_link_exists(f"http://{self._domain}:{self._port}/")
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: vidformer
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: A Python library for creating and viewing videos with vidformer.
5
5
  Author-email: Dominik Winecki <dominikwinecki@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -0,0 +1,7 @@
1
+ vidformer/__init__.py,sha256=VvRjB9_b4etPp-UxCtx58RZE48jRiBZhDmFqCBo6cqA,113
2
+ vidformer/vf.py,sha256=GT7t4hFgqK-66m9ejVtdeeHmWnShG-lxENPfMhV9vcg,31284
3
+ vidformer/cv2/__init__.py,sha256=wOjDsYyUKlP_Hye8-tyz-msu9xwaPMpN2sGMu3Lh3-w,22
4
+ vidformer/cv2/vf_cv2.py,sha256=sSoZGwi-NGNd263ZdiVbu2iXVF0fxbXKBVof5KR0-cw,15584
5
+ vidformer-0.6.4.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
6
+ vidformer-0.6.4.dist-info/METADATA,sha256=CiT1rkiEf0YI4ayRQxGkELDX0HxyCQGsil-Mr2FrYNs,1487
7
+ vidformer-0.6.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.9.0
2
+ Generator: flit 3.10.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,7 +0,0 @@
1
- vidformer/__init__.py,sha256=JnJ5T-Afn8dZXAkwmq38cFzrnK4aZZZSFhHdUqVLdno,113
2
- vidformer/vf.py,sha256=0idKHOkWXC5bki1thrgihKQwJ91gDCzf96tl3Gm5vaA,31059
3
- vidformer/cv2/__init__.py,sha256=wOjDsYyUKlP_Hye8-tyz-msu9xwaPMpN2sGMu3Lh3-w,22
4
- vidformer/cv2/vf_cv2.py,sha256=CO9LZ7FwOhrzNJ1eFjd9JddZm0PjY-XtOlKIYGB3iQQ,15486
5
- vidformer-0.6.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
6
- vidformer-0.6.2.dist-info/METADATA,sha256=_jQnVbcd_OHAy57G7HXIijyXUOoR9Q8AzURvjn3ljDA,1487
7
- vidformer-0.6.2.dist-info/RECORD,,