typed-ffmpeg-compatible 2.7.2__py3-none-any.whl → 3.0.0__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.
Files changed (63) hide show
  1. typed_ffmpeg/__init__.py +2 -1
  2. typed_ffmpeg/common/cache/.gitignore +3 -0
  3. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/acrossover.json +6 -0
  4. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/afir.json +9 -0
  5. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/aiir.json +6 -0
  6. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/ainterleave.json +9 -0
  7. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/amerge.json +9 -0
  8. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/amix.json +9 -0
  9. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/amovie.json +6 -0
  10. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/anequalizer.json +6 -0
  11. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/aphasemeter.json +6 -0
  12. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/asegment.json +6 -0
  13. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/aselect.json +6 -0
  14. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/asplit.json +6 -0
  15. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/astreamselect.json +9 -0
  16. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/bm3d.json +6 -0
  17. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/channelsplit.json +6 -0
  18. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/concat.json +9 -0
  19. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/decimate.json +6 -0
  20. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/ebur128.json +6 -0
  21. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/extractplanes.json +6 -0
  22. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/fieldmatch.json +6 -0
  23. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/guided.json +6 -0
  24. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/headphone.json +6 -0
  25. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/hstack.json +9 -0
  26. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/interleave.json +9 -0
  27. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/join.json +9 -0
  28. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/libplacebo.json +9 -0
  29. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/limitdiff.json +6 -0
  30. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/mergeplanes.json +6 -0
  31. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/mix.json +9 -0
  32. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/movie.json +6 -0
  33. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/premultiply.json +6 -0
  34. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/segment.json +6 -0
  35. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/select.json +6 -0
  36. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/signature.json +9 -0
  37. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/split.json +6 -0
  38. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/streamselect.json +9 -0
  39. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/unpremultiply.json +6 -0
  40. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/vstack.json +9 -0
  41. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/xmedian.json +9 -0
  42. typed_ffmpeg/common/cache/FFMpegFilterManuallyDefined/xstack.json +9 -0
  43. typed_ffmpeg/common/cache/list/filters.json +90747 -0
  44. typed_ffmpeg/common/cache.py +66 -0
  45. typed_ffmpeg/common/schema.py +9 -5
  46. typed_ffmpeg/common/serialize.py +12 -8
  47. typed_ffmpeg/compile/__init__.py +0 -0
  48. typed_ffmpeg/compile/compile_cli.py +351 -0
  49. typed_ffmpeg/compile/compile_python.py +319 -0
  50. typed_ffmpeg/{dag → compile}/context.py +26 -45
  51. typed_ffmpeg/{dag → compile}/validate.py +2 -2
  52. typed_ffmpeg/dag/factory.py +25 -4
  53. typed_ffmpeg/dag/global_runnable/runnable.py +1 -1
  54. typed_ffmpeg/dag/nodes.py +1 -227
  55. typed_ffmpeg/dag/schema.py +2 -18
  56. typed_ffmpeg/utils/view.py +1 -1
  57. {typed_ffmpeg_compatible-2.7.2.dist-info → typed_ffmpeg_compatible-3.0.0.dist-info}/METADATA +1 -1
  58. typed_ffmpeg_compatible-3.0.0.dist-info/RECORD +93 -0
  59. typed_ffmpeg/dag/compile.py +0 -86
  60. typed_ffmpeg_compatible-2.7.2.dist-info/RECORD +0 -48
  61. {typed_ffmpeg_compatible-2.7.2.dist-info → typed_ffmpeg_compatible-3.0.0.dist-info}/LICENSE +0 -0
  62. {typed_ffmpeg_compatible-2.7.2.dist-info → typed_ffmpeg_compatible-3.0.0.dist-info}/WHEEL +0 -0
  63. {typed_ffmpeg_compatible-2.7.2.dist-info → typed_ffmpeg_compatible-3.0.0.dist-info}/entry_points.txt +0 -0
typed_ffmpeg/__init__.py CHANGED
@@ -22,7 +22,7 @@ Example:
22
22
  ```
23
23
  """
24
24
 
25
- from . import dag, filters, sources
25
+ from . import compile, dag, filters, sources
26
26
  from .base import afilter, filter_multi_output, input, merge_outputs, output, vfilter
27
27
  from .dag import Stream
28
28
  from .exceptions import FFMpegExecuteError, FFMpegTypeError, FFMpegValueError
@@ -41,6 +41,7 @@ __all__ = [
41
41
  "FFMpegValueError",
42
42
  "Stream",
43
43
  "probe",
44
+ "compile",
44
45
  "AudioStream",
45
46
  "VideoStream",
46
47
  "AVStream",
@@ -0,0 +1,3 @@
1
+ docs/
2
+ FFMpegFilter/
3
+ FilterDocument/
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] * len(re.split(r'[ |]+', str(split)))",
5
+ "name": "acrossover"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(nbirs)",
4
+ "formula_typings_output": null,
5
+ "name": "afir",
6
+ "pre": {
7
+ "nbirs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] + [StreamType.video] if response else []",
5
+ "name": "aiir"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(nb_inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "ainterleave",
6
+ "pre": {
7
+ "nb_inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "amerge",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "amix",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * len(streams.split('+'))",
4
+ "formula_typings_output": "[StreamType.audio] * len(streams.split('+'))",
5
+ "name": "amovie"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] + [StreamType.video] if curves else []",
5
+ "name": "anequalizer"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] + ([StreamType.video] if video else [])",
5
+ "name": "aphasemeter"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] * len(str(timestamps or samples).split('|'))",
5
+ "name": "asegment"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] * int(outputs)",
5
+ "name": "aselect"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] * int(outputs)",
5
+ "name": "asplit"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(inputs)",
4
+ "formula_typings_output": "[StreamType.audio] * len(re.findall(r'\\d+', str(map)))",
5
+ "name": "astreamselect",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + [StreamType.video] if ref else []",
4
+ "formula_typings_output": null,
5
+ "name": "bm3d"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.audio] * CHANNEL_LAYOUT[str(channel_layout)]",
5
+ "name": "channelsplit"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "([StreamType.video]*int(v) + [StreamType.audio]*int(a))*int(n)",
4
+ "formula_typings_output": "[StreamType.video]*int(v) + [StreamType.audio]*int(a)",
5
+ "name": "concat",
6
+ "pre": {
7
+ "n": "len(streams) // (int(v) + int(a))"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + ([StreamType.video] if ppsrc else [])",
4
+ "formula_typings_output": null,
5
+ "name": "decimate"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.video] if video else [] + [StreamType.audio]",
5
+ "name": "ebur128"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.video] * len(planes.split('+'))",
5
+ "name": "extractplanes"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + [StreamType.video] if ppsrc else []",
4
+ "formula_typings_output": null,
5
+ "name": "fieldmatch"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + [StreamType.video] if guidance else []",
4
+ "formula_typings_output": null,
5
+ "name": "guided"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] + [StreamType.audio] * (len(str(map).split('|')) - 1) if int(hrir) == 1 else []",
4
+ "formula_typings_output": null,
5
+ "name": "headphone"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "hstack",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(nb_inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "interleave",
6
+ "pre": {
7
+ "nb_inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.audio] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "join",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "libplacebo",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video, StreamType.video] + ([StreamType.video] if reference else [])",
4
+ "formula_typings_output": null,
5
+ "name": "limitdiff"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(max(hex(int(mapping))[2::2]))",
4
+ "formula_typings_output": null,
5
+ "name": "mergeplanes"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "mix",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * len(streams.split('+'))",
4
+ "formula_typings_output": "[StreamType.video] * len(streams.split('+'))",
5
+ "name": "movie"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + [StreamType.video] if inplace else []",
4
+ "formula_typings_output": null,
5
+ "name": "premultiply"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.video] * len((str(timestamps or frames)).split('|'))",
5
+ "name": "segment"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.video] * int(outputs)",
5
+ "name": "select"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(nb_inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "signature",
6
+ "pre": {
7
+ "nb_inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": null,
4
+ "formula_typings_output": "[StreamType.video] * int(outputs)",
5
+ "name": "split"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": "[StreamType.video] * len(re.findall(r'\\d+', str(map)))",
5
+ "name": "streamselect",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] + ([StreamType.video] if inplace else [])",
4
+ "formula_typings_output": null,
5
+ "name": "unpremultiply"
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "vstack",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "xmedian",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "__class__": "FFMpegFilterManuallyDefined",
3
+ "formula_typings_input": "[StreamType.video] * int(inputs)",
4
+ "formula_typings_output": null,
5
+ "name": "xstack",
6
+ "pre": {
7
+ "inputs": "len(streams)"
8
+ }
9
+ }