typed-ffmpeg-compatible 3.4.1__py3-none-any.whl → 3.5.1__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.
typed_ffmpeg/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '3.4.1'
21
- __version_tuple__ = version_tuple = (3, 4, 1)
20
+ __version__ = version = '3.5.1'
21
+ __version_tuple__ = version_tuple = (3, 5, 1)
@@ -6512,15 +6512,25 @@ def mpl2() -> FFMpegDecoderOption:
6512
6512
  return FFMpegDecoderOption(kwargs=merge({}))
6513
6513
 
6514
6514
 
6515
- def pjs() -> FFMpegDecoderOption:
6515
+ def pjs(
6516
+ keep_ass_markup: bool | None = None,
6517
+ ) -> FFMpegDecoderOption:
6516
6518
  """
6517
6519
  PJS subtitle
6518
6520
 
6521
+ Args:
6522
+ keep_ass_markup: Set if ASS tags must be escaped (default false)
6519
6523
 
6520
6524
  Returns:
6521
6525
  the set codec options
6522
6526
  """
6523
- return FFMpegDecoderOption(kwargs=merge({}))
6527
+ return FFMpegDecoderOption(
6528
+ kwargs=merge(
6529
+ {
6530
+ "keep_ass_markup": keep_ass_markup,
6531
+ }
6532
+ )
6533
+ )
6524
6534
 
6525
6535
 
6526
6536
  def realtext() -> FFMpegDecoderOption:
@@ -6545,15 +6555,25 @@ def sami() -> FFMpegDecoderOption:
6545
6555
  return FFMpegDecoderOption(kwargs=merge({}))
6546
6556
 
6547
6557
 
6548
- def stl() -> FFMpegDecoderOption:
6558
+ def stl(
6559
+ keep_ass_markup: bool | None = None,
6560
+ ) -> FFMpegDecoderOption:
6549
6561
  """
6550
6562
  Spruce subtitle format
6551
6563
 
6564
+ Args:
6565
+ keep_ass_markup: Set if ASS tags must be escaped (default false)
6552
6566
 
6553
6567
  Returns:
6554
6568
  the set codec options
6555
6569
  """
6556
- return FFMpegDecoderOption(kwargs=merge({}))
6570
+ return FFMpegDecoderOption(
6571
+ kwargs=merge(
6572
+ {
6573
+ "keep_ass_markup": keep_ass_markup,
6574
+ }
6575
+ )
6576
+ )
6557
6577
 
6558
6578
 
6559
6579
  def srt() -> FFMpegDecoderOption:
@@ -6589,37 +6609,67 @@ def subviewer() -> FFMpegDecoderOption:
6589
6609
  return FFMpegDecoderOption(kwargs=merge({}))
6590
6610
 
6591
6611
 
6592
- def subviewer1() -> FFMpegDecoderOption:
6612
+ def subviewer1(
6613
+ keep_ass_markup: bool | None = None,
6614
+ ) -> FFMpegDecoderOption:
6593
6615
  """
6594
6616
  SubViewer1 subtitle
6595
6617
 
6618
+ Args:
6619
+ keep_ass_markup: Set if ASS tags must be escaped (default false)
6596
6620
 
6597
6621
  Returns:
6598
6622
  the set codec options
6599
6623
  """
6600
- return FFMpegDecoderOption(kwargs=merge({}))
6624
+ return FFMpegDecoderOption(
6625
+ kwargs=merge(
6626
+ {
6627
+ "keep_ass_markup": keep_ass_markup,
6628
+ }
6629
+ )
6630
+ )
6601
6631
 
6602
6632
 
6603
- def text() -> FFMpegDecoderOption:
6633
+ def text(
6634
+ keep_ass_markup: bool | None = None,
6635
+ ) -> FFMpegDecoderOption:
6604
6636
  """
6605
6637
  Raw text subtitle
6606
6638
 
6639
+ Args:
6640
+ keep_ass_markup: Set if ASS tags must be escaped (default false)
6607
6641
 
6608
6642
  Returns:
6609
6643
  the set codec options
6610
6644
  """
6611
- return FFMpegDecoderOption(kwargs=merge({}))
6645
+ return FFMpegDecoderOption(
6646
+ kwargs=merge(
6647
+ {
6648
+ "keep_ass_markup": keep_ass_markup,
6649
+ }
6650
+ )
6651
+ )
6612
6652
 
6613
6653
 
6614
- def vplayer() -> FFMpegDecoderOption:
6654
+ def vplayer(
6655
+ keep_ass_markup: bool | None = None,
6656
+ ) -> FFMpegDecoderOption:
6615
6657
  """
6616
6658
  VPlayer subtitle
6617
6659
 
6660
+ Args:
6661
+ keep_ass_markup: Set if ASS tags must be escaped (default false)
6618
6662
 
6619
6663
  Returns:
6620
6664
  the set codec options
6621
6665
  """
6622
- return FFMpegDecoderOption(kwargs=merge({}))
6666
+ return FFMpegDecoderOption(
6667
+ kwargs=merge(
6668
+ {
6669
+ "keep_ass_markup": keep_ass_markup,
6670
+ }
6671
+ )
6672
+ )
6623
6673
 
6624
6674
 
6625
6675
  def webvtt() -> FFMpegDecoderOption:
typed_ffmpeg/types.py CHANGED
@@ -9,14 +9,14 @@ from typing import Literal
9
9
  from .schema import Default
10
10
  from .utils.lazy_eval.schema import LazyValue
11
11
 
12
- Boolean = bool | Literal["true", "false", "1", "0"] | Default | LazyValue
12
+ Boolean = bool | Literal["true", "false", "1", "0"] | Default | LazyValue | None
13
13
  """
14
14
  This represents FFmpeg's boolean type. It can accept either a Python boolean value (`True` or `False`)
15
15
  or a string that represents a boolean value ("true", "false", "1", or "0").
16
16
 
17
17
  """
18
18
 
19
- Duration = str | int | float | Default | LazyValue
19
+ Duration = str | int | float | Default | LazyValue | None
20
20
  """
21
21
  This represents FFmpeg's duration type. It can accept either a Python integer or float value
22
22
  or a string that represents a duration value.
@@ -25,7 +25,7 @@ Note:
25
25
  [Document](https://ffmpeg.org/ffmpeg-utils.html#Time-duration)
26
26
  """
27
27
 
28
- Color = str | Default | LazyValue
28
+ Color = str | Default | LazyValue | None
29
29
  """
30
30
  It can be the name of a color as defined below (case insensitive match) or a [0x|#]RRGGBB[AA] sequence, possibly followed by @ and a string representing the alpha component.
31
31
  The alpha component may be a string composed by "0x" followed by an hexadecimal number or a decimal number between 0.0 and 1.0, which represents the opacity value (‘0x00’ or ‘0.0’ means completely transparent, ‘0xff’ or ‘1.0’ completely opaque). If the alpha component is not specified then ‘0xff’ is assumed.
@@ -35,50 +35,50 @@ Note:
35
35
  [Document](https://ffmpeg.org/ffmpeg-utils.html#Color)
36
36
  """
37
37
 
38
- Flags = str | Default | LazyValue
38
+ Flags = str | Default | LazyValue | None
39
39
  """
40
40
  This represents FFmpeg's flags type. It accepts a string in the format "A+B",
41
41
  where "A" and "B" are individual flags. For example, "fast+bilinear" would
42
42
  represent two flags, "fast" and "bilinear", to be used in FFmpeg's command line.
43
43
  """
44
44
 
45
- Dictionary = str | Default | LazyValue
45
+ Dictionary = str | Default | LazyValue | None
46
46
  # format A=B:C=D:E=F
47
- Pix_fmt = str | Default | LazyValue
47
+ Pix_fmt = str | Default | LazyValue | None
48
48
  """
49
49
  please see `ffmpeg -pix_fmts` for a list of supported pixel formats.
50
50
  """
51
51
 
52
- Int = int | Default | LazyValue
52
+ Int = str | int | Default | LazyValue | None
53
53
  """
54
54
  This represents FFmpeg's integer type. It can accept either a Python integer value
55
55
  or a string that represents a integer value.
56
56
  """
57
57
 
58
- Int64 = int | Default | LazyValue
58
+ Int64 = str | int | Default | LazyValue | None
59
59
  """
60
60
  This represents FFmpeg's integer type. It can accept either a Python integer value
61
61
  or a string that represents a integer value.
62
62
  """
63
63
 
64
- Double = int | float | Default | LazyValue
64
+ Double = str | int | float | Default | LazyValue | None
65
65
  """
66
66
  This represents FFmpeg's double type. It can accept either a Python integer or float value
67
67
  or a string that represents a double value.
68
68
  """
69
69
  # TODO: more info
70
- Float = int | float | Default | LazyValue
70
+ Float = str | int | float | Default | LazyValue | None
71
71
  """
72
72
  This represents FFmpeg's float type. It can accept either a Python integer or float value
73
73
  or a string that represents a float value.
74
74
  """
75
- String = str | int | float | Default | LazyValue
75
+ String = str | int | float | Default | LazyValue | None
76
76
  """
77
77
  This represents FFmpeg's string type. It can accept either a Python string value
78
78
  or a int/float that will be converted to a string.
79
79
  """
80
80
 
81
- Video_rate = str | int | float | Default | LazyValue
81
+ Video_rate = str | int | float | Default | LazyValue | None
82
82
  """
83
83
  Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation.
84
84
 
@@ -87,7 +87,7 @@ Note:
87
87
  """
88
88
 
89
89
  # TODO: enum
90
- Image_size = str | Default | LazyValue
90
+ Image_size = str | Default | LazyValue | None
91
91
  """
92
92
  Specify the size of the sourced video, it may be a string of the form widthxheight, or the name of a size abbreviation.
93
93
 
@@ -95,7 +95,7 @@ Note:
95
95
  [Document](https://ffmpeg.org/ffmpeg-utils.html#Video-size)
96
96
  """
97
97
 
98
- Rational = str | Default | LazyValue
98
+ Rational = str | Default | LazyValue | None
99
99
  """
100
100
  Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation.
101
101
 
@@ -104,16 +104,16 @@ Note:
104
104
  """
105
105
 
106
106
 
107
- Sample_fmt = str | Default | LazyValue
108
- Binary = str | Default | LazyValue
107
+ Sample_fmt = str | Default | LazyValue | None
108
+ Binary = str | Default | LazyValue | None
109
109
 
110
110
  # OPT Type
111
- Func = str | int | float | Default | LazyValue
111
+ Func = str | int | float | Default | LazyValue | None
112
112
  """
113
113
  ref: OPT_TYPE_FUNC
114
114
  """
115
115
 
116
- Time = str | int | float | Default | LazyValue
116
+ Time = str | int | float | Default | LazyValue | None
117
117
  """
118
118
  ref: OPT_TYPE_TIME
119
119
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: typed-ffmpeg-compatible
3
- Version: 3.4.1
3
+ Version: 3.5.1
4
4
  Summary: Modern Python FFmpeg wrappers offer comprehensive support for complex filters, complete with detailed typing and documentation.
5
5
  Author-email: lucemia <lucemia@gmail.com>
6
6
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
1
  typed_ffmpeg/__init__.py,sha256=6ULyAwFhDsIb03SeKRKArqYWlxfeOvRTGEI6vUUj774,1676
2
- typed_ffmpeg/_version.py,sha256=6e5ua4BSCjT1IQ0LkNwNve_mS-siyw1MEvPWQlVmem0,511
2
+ typed_ffmpeg/_version.py,sha256=Ds9Dz3aeXTarOqzWPCE0NEHSkHj_416LzolkDmAzO60,511
3
3
  typed_ffmpeg/base.py,sha256=JNNNnN-1A50i9zviR6uOjAs-bClCDx5qx9A5iSePBeI,6309
4
4
  typed_ffmpeg/exceptions.py,sha256=D4SID6WOwkjVV8O8mAjrEDHWn-8BRDnK_jteaDof1SY,2474
5
5
  typed_ffmpeg/filters.py,sha256=XY1LqXY6Ch1wOX-1XW3SzgwH3NQaAtSEQew6f3JoTeY,144001
@@ -7,9 +7,9 @@ typed_ffmpeg/info.py,sha256=0KCzf8hJaI6ObPRT0uftLa96RlYvaQmoEq1sqFJSc24,9521
7
7
  typed_ffmpeg/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  typed_ffmpeg/schema.py,sha256=KVtmyGeJutjFot70r6Nj8W8WBqwvfg2-rSgjdhPVh-o,1615
9
9
  typed_ffmpeg/sources.py,sha256=gR8qH-Qf36X2veab4kh9ZE5CYu5K0Yz6eXzd0lCFdPE,122297
10
- typed_ffmpeg/types.py,sha256=ly3zLtg7KxRa_jsDDrFPAxRZRjTQdWVpiQzOD9NdrFM,4137
10
+ typed_ffmpeg/types.py,sha256=jFx20tRgwpRimxXMO4kJvVW3uYIdwjPUz66db4bXfnM,4287
11
11
  typed_ffmpeg/codecs/__init__.py,sha256=qEqV-Oo2vG06WIAm3obcArK6ZBDWNP7_Kw6cszSGqb8,87
12
- typed_ffmpeg/codecs/decoders.py,sha256=5_s7TJoq98784GZ-6wE6QmF7Mzafmm7nwB98QgFWsUw,122104
12
+ typed_ffmpeg/codecs/decoders.py,sha256=4SS6r0j1Pa7s_Fut04OmLhFOZ1kVA7UPJNT-VPN6E-k,123234
13
13
  typed_ffmpeg/codecs/encoders.py,sha256=9n2FNEEBfpbtOKgDi6fOHEGVhbAzTEF_UoZDqqQzEmw,216605
14
14
  typed_ffmpeg/codecs/schema.py,sha256=d0OeLkJAHf6GwUjUFgr_1sR38mQOCUQns3aSmpX7EF8,451
15
15
  typed_ffmpeg/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -59,9 +59,9 @@ typed_ffmpeg/utils/view.py,sha256=jiCKJnx-KVJh-uvhkADBQNlWH1uHPqyYgmSZ_iSEj0c,34
59
59
  typed_ffmpeg/utils/lazy_eval/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  typed_ffmpeg/utils/lazy_eval/operator.py,sha256=QWybd-UH3VdDa8kgWkqAMi3WV0b0WF1d1JixQr6is2E,4136
61
61
  typed_ffmpeg/utils/lazy_eval/schema.py,sha256=WSg-E3MS3itN1AT6Dq4Z9btnRHEReuN3o6zruXou7h4,9623
62
- typed_ffmpeg_compatible-3.4.1.dist-info/licenses/LICENSE,sha256=8Aaya5i_09Cou2i3QMxTwz6uHGzi_fGA4uhkco07-A4,1066
63
- typed_ffmpeg_compatible-3.4.1.dist-info/METADATA,sha256=dV4L7CJaO-jilAnH9PjsLLXTh0VUyFdiYXydO9q1fUk,8385
64
- typed_ffmpeg_compatible-3.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- typed_ffmpeg_compatible-3.4.1.dist-info/entry_points.txt,sha256=kUQvZ27paV-07qtkIFV-emKsYtjFOTw9kknBRSXPs04,45
66
- typed_ffmpeg_compatible-3.4.1.dist-info/top_level.txt,sha256=vuASJGVRQiNmhWY1pt0RXESWSNkknWXqWLIRAU7H_L4,13
67
- typed_ffmpeg_compatible-3.4.1.dist-info/RECORD,,
62
+ typed_ffmpeg_compatible-3.5.1.dist-info/licenses/LICENSE,sha256=8Aaya5i_09Cou2i3QMxTwz6uHGzi_fGA4uhkco07-A4,1066
63
+ typed_ffmpeg_compatible-3.5.1.dist-info/METADATA,sha256=1xN_TPTfNYKO3649Cc6ViRv4K02gMWL9GGBTUbEakTY,8385
64
+ typed_ffmpeg_compatible-3.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ typed_ffmpeg_compatible-3.5.1.dist-info/entry_points.txt,sha256=kUQvZ27paV-07qtkIFV-emKsYtjFOTw9kknBRSXPs04,45
66
+ typed_ffmpeg_compatible-3.5.1.dist-info/top_level.txt,sha256=vuASJGVRQiNmhWY1pt0RXESWSNkknWXqWLIRAU7H_L4,13
67
+ typed_ffmpeg_compatible-3.5.1.dist-info/RECORD,,