cutcutcodec 1.0.3.post0__tar.gz → 1.1.1__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.
- cutcutcodec-1.1.1/LICENSE +7 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/PKG-INFO +39 -124
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/README.rst +8 -97
- {cutcutcodec-1.0.3.post0/cutcutcodec → cutcutcodec-1.1.1}/c_build.py +1 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/__init__.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/__main__.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/ffprobe.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/graph/find.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/graph/time_backprop.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/rate_audio.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/rate_video.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/shape.py +58 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/time_backprop.py +12 -12
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/encoder.py +1 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/frame_audio.py +4 -4
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/frame_video.py +42 -18
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/layout.py +7 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/muxer.py +10 -7
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/stream.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/stream_audio.py +38 -4
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/stream_video.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/ast_to_file.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/compatibility.py +17 -17
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/default.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/graph_to_ast.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/graph_to_tree.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +44 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +4 -4
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +7 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/sympy_to_torch/printer.py +77 -5
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/tree_to_graph.py +2 -2
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/opti → cutcutcodec-1.1.1/cutcutcodec/core/edit}/factor/__init__.py +0 -2
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/opti → cutcutcodec-1.1.1/cutcutcodec/core/edit}/factor/proba.py +3 -3
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/opti → cutcutcodec-1.1.1/cutcutcodec/core/edit}/generalize/__init__.py +0 -2
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/opti → cutcutcodec-1.1.1/cutcutcodec/core/edit}/generalize/delay_to_fir.py +4 -5
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/add.py +9 -7
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/cat.py +4 -4
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/cut.py +4 -4
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/delay.py +4 -2
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/equation.py +6 -5
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/fir.py +21 -6
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/identity.py +1 -1
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/resample.py +29 -27
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/subclip.py +15 -8
- cutcutcodec-1.1.1/cutcutcodec/core/filter/audio/wiener.py +225 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/mix/audio_cast.py +4 -4
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/mix/video_cast.py +20 -14
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/add.py +17 -16
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/cat.py +4 -4
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/cut.py +5 -5
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/delay.py +4 -2
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/equation.py +4 -3
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/identity.py +1 -1
- cutcutcodec-1.1.1/cutcutcodec/core/filter/video/pad.py +159 -0
- cutcutcodec-1.1.1/cutcutcodec/core/filter/video/patch.py +142 -0
- cutcutcodec-1.1.1/cutcutcodec/core/filter/video/resize.py +344 -0
- cutcutcodec-1.1.1/cutcutcodec/core/filter/video/speed.py +88 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/subclip.py +7 -7
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/audio/equation.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/audio/noise.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/equation.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/fractal/fractal.c +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/fractal/mandelbrot.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/noise.py +1 -1
- cutcutcodec-1.1.1/cutcutcodec/core/io/__init__.py +85 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/io/read_ffmpeg.py +41 -33
- cutcutcodec-1.1.1/cutcutcodec/core/io/read_image.py +181 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/io/read_svg.py +60 -31
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/io/scheduler.py +5 -5
- cutcutcodec-1.0.3.post0/cutcutcodec/core/io/write.py → cutcutcodec-1.1.1/cutcutcodec/core/io/write_ffmpeg.py +14 -14
- cutcutcodec-1.1.1/cutcutcodec/core/nn/__init__.py +3 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/dataaug/__init__.py +3 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/dataaug/image.py +104 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/loader.py +264 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/model/__init__.py +3 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/model/compression/__init__.py +3 -0
- cutcutcodec-1.1.1/cutcutcodec/core/nn/model/compression/img_cgavaenn.py +367 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/basic.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/clean/graph.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/hashes/graph.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/parallel/buffer.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/utils.py +3 -2
- cutcutcodec-1.1.1/cutcutcodec/core/signal/__init__.py +3 -0
- cutcutcodec-1.1.1/cutcutcodec/core/signal/psd.py +158 -0
- cutcutcodec-1.1.1/cutcutcodec/core/signal/window.py +309 -0
- cutcutcodec-1.1.1/cutcutcodec/examples/logo.png +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/examples/project.json +7 -7
- cutcutcodec-1.1.1/cutcutcodec/gui/__init__.py +3 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/__main__.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/actions.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/container_input_ffmpeg.py +3 -31
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_audio_equation.py +4 -4
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_audio_fir.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_video_equation.py +1 -1
- cutcutcodec-1.1.1/cutcutcodec/gui/edit_node_state/all/filter_video_resize.py +19 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/base.py +4 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/interface.py +95 -11
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/entry/filters.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/container.py +3 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/doc.py +3 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/main.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/flowchart/edge_properties.py +12 -8
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/flowchart/main.py +11 -13
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/flowchart/node.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/preferences/audio_settings.py +3 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/preferences/video_settings.py +11 -10
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/timeline/view.py +7 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/video_preview/audio_player.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/video_preview/frame_extractor.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/video_preview/main.py +2 -1
- cutcutcodec-1.1.1/cutcutcodec/testing/__init__.py +3 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/__main__.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/coding_style.py +12 -12
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/install.py +20 -5
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/run.py +14 -10
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/abstract.py +16 -16
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/audio_cast.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/c_memory.py +1 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/compile.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/filter_cut.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/filter_delay.py +4 -4
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/fir.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/nan_snapshot.py +4 -0
- cutcutcodec-1.1.1/cutcutcodec/testing/tests/pad.py +50 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/serialization_equality.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/snapshot_shape.py +2 -1
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/sympy_to_torch.py +2 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/write.py +3 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/utils.py +6 -2
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec.egg-info/PKG-INFO +39 -124
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec.egg-info/SOURCES.txt +56 -32
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec.egg-info/requires.txt +19 -11
- cutcutcodec-1.1.1/cutcutcodec.egg-info/top_level.txt +6 -0
- cutcutcodec-1.1.1/docs/build/html/_static/check-solid.svg +4 -0
- cutcutcodec-1.1.1/docs/build/html/_static/copy-button.svg +5 -0
- cutcutcodec-1.1.1/docs/build/html/_static/css/fonts/fontawesome-webfont.svg +2671 -0
- cutcutcodec-1.1.1/docs/build/html/_static/nbsphinx-broken-thumbnail.svg +9 -0
- cutcutcodec-1.1.1/docs/build/html/_static/nbsphinx-no-thumbnail.svg +9 -0
- cutcutcodec-1.1.1/media/logo.svg +13 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/pyproject.toml +43 -29
- cutcutcodec-1.0.3.post0/LICENSE +0 -7
- cutcutcodec-1.0.3.post0/cutcutcodec/core/filters/video/pad.py +0 -99
- cutcutcodec-1.0.3.post0/cutcutcodec/core/io/__init__.py +0 -3
- cutcutcodec-1.0.3.post0/cutcutcodec/gui/__init__.py +0 -8
- cutcutcodec-1.0.3.post0/cutcutcodec/testing/__init__.py +0 -8
- cutcutcodec-1.0.3.post0/cutcutcodec.egg-info/top_level.txt +0 -3
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/_helper_properties.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/audio/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/audio/properties/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/audio/properties/duration.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/graph/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/properties/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/properties/duration.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/properties/nb_frames.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/properties/rate.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/video/properties/timestamps.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/container.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/filter.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/frame.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/meta_filter.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/classes/node.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/encodec.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/muxer.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/export/rate.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/graph_to_json.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/json_to_graph.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/parse.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/compilation/sympy_to_torch/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/edit/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/edit/decision/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/edit/operation/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/edit/operation/add.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/edit/operation/remove.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/exceptions.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/audio/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/cut.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/mix/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/subclip.py +0 -0
- {cutcutcodec-1.0.3.post0/cutcutcodec/core/filters → cutcutcodec-1.1.1/cutcutcodec/core/filter}/video/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/audio/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/audio/empty.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/empty.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/fractal/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/generation/video/fractal/geometry.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/interfaces/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/interfaces/seedable.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/clean/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/hashes/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cache/singleton.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/cuda/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/graph.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/opti/parallel/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/examples/audio_5.1_narration.oga +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/examples/intro.webm +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/examples/logo.svg +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/examples/video.mp4 +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/app/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/app/app.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/base.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_cut.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_delay.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_subclip.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/generator_video_mandelbrot.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/all/generator_video_noise.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/default.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/documentation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/general.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/loader.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edit_node_state/main.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/edition_tabs.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/entry/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/entry/base.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/entry/generators.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/entry_tabs.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/_helper.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/export/encodec.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/flowchart/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/main.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/menu.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/preferences/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/preferences/main.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/run.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/timeline/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/timeline/main.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/timeline/slider.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/timeline/track.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/toolbar.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/tools.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/video_preview/__init__.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/gui/video_preview/control.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/generation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/audio_equation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/compatibility.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/encoder.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/filter_empty.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/hashes.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/initialisation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/muxer.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/read.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/thread_safe.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/time_range.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/testing/tests/video_equation.py +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec.egg-info/dependency_links.txt +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec.egg-info/entry_points.txt +0 -0
- {cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/setup.cfg +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright © 2023 Robin RICHARD
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files of cutcutcodec, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: cutcutcodec
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: video editing software
|
|
5
5
|
Author-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
|
|
6
6
|
Maintainer-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
|
|
7
7
|
License: Copyright © 2023 Robin RICHARD
|
|
8
8
|
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files of cutcutcodec, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
10
|
|
|
11
11
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
12
|
|
|
13
|
-
THE SOFTWARE IS PROVIDED
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
14
|
|
|
15
15
|
Project-URL: Homepage, https://framagit.org/robinechuca/cutcutcodec/-/blob/main/README.rst
|
|
16
16
|
Project-URL: Documentation, https://cutcutcodec.readthedocs.io/latest/
|
|
17
17
|
Project-URL: Repository, https://framagit.org/robinechuca/cutcutcodec/
|
|
18
|
-
Keywords: audio,effect,equation,ffmpeg,filtering,fractal,graph,graphical interface,gui,open source,video editing
|
|
18
|
+
Keywords: audio,effect,equation,ffmpeg,filtering,fractal,graph,graphical interface,gui,movie,open source,video editing
|
|
19
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
20
20
|
Classifier: Environment :: GPU
|
|
21
21
|
Classifier: Environment :: X11 Applications :: Qt
|
|
@@ -27,10 +27,9 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
27
27
|
Classifier: Natural Language :: English
|
|
28
28
|
Classifier: Operating System :: POSIX :: Linux
|
|
29
29
|
Classifier: Programming Language :: C
|
|
30
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
31
30
|
Classifier: Programming Language :: Python :: 3.11
|
|
32
31
|
Classifier: Programming Language :: Python :: 3.12
|
|
33
|
-
Classifier: Programming Language :: Python :: 3.
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
34
33
|
Classifier: Topic :: Multimedia :: Graphics :: Editors
|
|
35
34
|
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
|
|
36
35
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
|
|
@@ -48,44 +47,49 @@ Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
|
48
47
|
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
49
48
|
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
50
49
|
Classifier: Topic :: Software Development :: Code Generators
|
|
51
|
-
|
|
52
|
-
Requires-Python: <3.13,>=3.9
|
|
50
|
+
Requires-Python: <3.14,>=3.11
|
|
53
51
|
Description-Content-Type: text/x-rst
|
|
54
52
|
License-File: LICENSE
|
|
55
53
|
Requires-Dist: av
|
|
54
|
+
Requires-Dist: black
|
|
56
55
|
Requires-Dist: cairosvg
|
|
57
56
|
Requires-Dist: click
|
|
57
|
+
Requires-Dist: lightning
|
|
58
58
|
Requires-Dist: networkx>=3.0
|
|
59
|
-
Requires-Dist: numpy>=
|
|
59
|
+
Requires-Dist: numpy>=2.0
|
|
60
60
|
Requires-Dist: opencv-contrib-python-headless
|
|
61
61
|
Requires-Dist: pip>=23.0
|
|
62
62
|
Requires-Dist: sympy>=1.10
|
|
63
63
|
Requires-Dist: torch>=2.1
|
|
64
64
|
Requires-Dist: tqdm
|
|
65
65
|
Requires-Dist: unidecode
|
|
66
|
+
Provides-Extra: doc
|
|
67
|
+
Requires-Dist: ipykernel; extra == "doc"
|
|
68
|
+
Requires-Dist: mathjax; extra == "doc"
|
|
69
|
+
Requires-Dist: nbsphinx; extra == "doc"
|
|
70
|
+
Requires-Dist: pandoc; extra == "doc"
|
|
71
|
+
Requires-Dist: qtpy; extra == "doc"
|
|
72
|
+
Requires-Dist: qtpynodeeditor>=0.3.1; extra == "doc"
|
|
73
|
+
Requires-Dist: recommonmark; extra == "doc"
|
|
74
|
+
Requires-Dist: sphinx; extra == "doc"
|
|
75
|
+
Requires-Dist: sphinx-copybutton; extra == "doc"
|
|
76
|
+
Requires-Dist: sphinx-inline-tabs; extra == "doc"
|
|
77
|
+
Requires-Dist: sphinx-rtd-dark-mode; extra == "doc"
|
|
78
|
+
Requires-Dist: sphinx-rtd-theme; extra == "doc"
|
|
79
|
+
Requires-Dist: sphinxcontrib-video; extra == "doc"
|
|
80
|
+
Requires-Dist: sphinxext-opengraph; extra == "doc"
|
|
66
81
|
Provides-Extra: gui
|
|
67
|
-
Requires-Dist:
|
|
82
|
+
Requires-Dist: matplotlib; extra == "gui"
|
|
83
|
+
Requires-Dist: notebook; extra == "gui"
|
|
68
84
|
Requires-Dist: pdoc3; extra == "gui"
|
|
69
85
|
Requires-Dist: pyqt6; extra == "gui"
|
|
70
86
|
Requires-Dist: pyqtgraph>=0.3.1; extra == "gui"
|
|
71
87
|
Requires-Dist: qtpy; extra == "gui"
|
|
72
88
|
Requires-Dist: qtpynodeeditor>=0.3.1; extra == "gui"
|
|
73
|
-
Provides-Extra:
|
|
74
|
-
Requires-Dist:
|
|
75
|
-
Requires-Dist:
|
|
76
|
-
Requires-Dist:
|
|
77
|
-
Requires-Dist: pylama[all]; extra == "all"
|
|
78
|
-
Requires-Dist: pylama[toml]; extra == "all"
|
|
79
|
-
Requires-Dist: pyqt6; extra == "all"
|
|
80
|
-
Requires-Dist: pyqtgraph>=0.3.1; extra == "all"
|
|
81
|
-
Requires-Dist: pytest; extra == "all"
|
|
82
|
-
Requires-Dist: qtpy; extra == "all"
|
|
83
|
-
Requires-Dist: qtpynodeeditor>=0.3.1; extra == "all"
|
|
84
|
-
Requires-Dist: recommonmark; extra == "all"
|
|
85
|
-
Requires-Dist: sphinx-copybutton; extra == "all"
|
|
86
|
-
Requires-Dist: sphinx-copybutton; extra == "all"
|
|
87
|
-
Requires-Dist: sphinx-inline-tabs; extra == "all"
|
|
88
|
-
Requires-Dist: sphinxext-opengraph; extra == "all"
|
|
89
|
+
Provides-Extra: test
|
|
90
|
+
Requires-Dist: pydocstyle<=6.1.1; extra == "test"
|
|
91
|
+
Requires-Dist: pylama[all,toml]; extra == "test"
|
|
92
|
+
Requires-Dist: pytest; extra == "test"
|
|
89
93
|
|
|
90
94
|
.. rst syntax: https://deusyss.developpez.com/tutoriels/Python/SphinxDoc/
|
|
91
95
|
.. version conv: https://peps.python.org/pep-0440/
|
|
@@ -93,10 +97,6 @@ Requires-Dist: sphinxext-opengraph; extra == "all"
|
|
|
93
97
|
.. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
|
|
94
98
|
.. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
|
|
95
99
|
|
|
96
|
-
***********
|
|
97
|
-
CutCutCodec
|
|
98
|
-
***********
|
|
99
|
-
|
|
100
100
|
.. image:: https://img.shields.io/badge/License-MIT-green.svg
|
|
101
101
|
:alt: [license MIT]
|
|
102
102
|
:target: https://opensource.org/licenses/MIT
|
|
@@ -109,14 +109,10 @@ CutCutCodec
|
|
|
109
109
|
:alt: [testing]
|
|
110
110
|
:target: https://docs.pytest.org/
|
|
111
111
|
|
|
112
|
-
.. image:: https://img.shields.io/badge/python-3.
|
|
112
|
+
.. image:: https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-blue
|
|
113
113
|
:alt: [versions]
|
|
114
114
|
:target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
|
|
115
115
|
|
|
116
|
-
.. image:: https://img.shields.io/pypi/v/cutcutcodec.svg
|
|
117
|
-
:alt: [pypi version]
|
|
118
|
-
:target: https://pypi.python.org/pypi/cutcutcodec
|
|
119
|
-
|
|
120
116
|
.. image:: https://static.pepy.tech/badge/cutcutcodec
|
|
121
117
|
:alt: [downloads]
|
|
122
118
|
:target: https://www.pepy.tech/projects/cutcutcodec
|
|
@@ -125,6 +121,11 @@ CutCutCodec
|
|
|
125
121
|
:alt: [documentation]
|
|
126
122
|
:target: https://cutcutcodec.readthedocs.io/latest/
|
|
127
123
|
|
|
124
|
+
Useful links:
|
|
125
|
+
`Binary Installers <https://pypi.org/project/cutcutcodec>`_ |
|
|
126
|
+
`Source Repository <https://framagit.org/robinechuca/cutcutcodec>`_ |
|
|
127
|
+
`Online Documentation <https://cutcutcodec.readthedocs.io>`_ |
|
|
128
|
+
|
|
128
129
|
|
|
129
130
|
Description
|
|
130
131
|
===========
|
|
@@ -145,36 +146,6 @@ This software is **light**, **fast** and **highly configurable** for the followi
|
|
|
145
146
|
#. This software is able to optimize the assembly graph in order to limit calculation waste.
|
|
146
147
|
#. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
|
|
147
148
|
|
|
148
|
-
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
|
|
149
|
-
:alt: An example of the cutcutcodec GUI.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Quick Start
|
|
153
|
-
===========
|
|
154
|
-
|
|
155
|
-
Installation
|
|
156
|
-
------------
|
|
157
|
-
|
|
158
|
-
CutCutCodec is based on `ffmpeg <https://pytorch.org/>`_ and `pytorch <https://pytorch.org/>`_, so please follow the `cutcutcodec installation guide <https://cutcutcodec.readthedocs.io/latest/installation.html>`_.
|
|
159
|
-
|
|
160
|
-
You can use the following command to install everything automatically (not recommended, it's better to follow the guide).
|
|
161
|
-
|
|
162
|
-
.. code::
|
|
163
|
-
|
|
164
|
-
pip install cutcutcodec[gui]
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
Running
|
|
168
|
-
-------
|
|
169
|
-
|
|
170
|
-
For a very complete description, please refer to `the documentation <https://cutcutcodec.readthedocs.io/latest/start.html>`_.
|
|
171
|
-
|
|
172
|
-
In a terminal, just type ``cutcutcodec-gui`` to start the GUI, it is possible to access the *cli* with:
|
|
173
|
-
|
|
174
|
-
.. code::
|
|
175
|
-
|
|
176
|
-
python -m cutcutcodec --help
|
|
177
|
-
|
|
178
149
|
|
|
179
150
|
Features
|
|
180
151
|
========
|
|
@@ -193,6 +164,7 @@ Audio
|
|
|
193
164
|
#. Add multiple tracks.
|
|
194
165
|
#. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
|
|
195
166
|
#. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
|
|
167
|
+
#. Denoising based on Winer filtering.
|
|
196
168
|
#. Hight quality anti aliasing low pass filter (based on FIR).
|
|
197
169
|
|
|
198
170
|
Video
|
|
@@ -210,63 +182,6 @@ Video
|
|
|
210
182
|
#. Mandelbrot fractal generation.
|
|
211
183
|
* Filters
|
|
212
184
|
#. Cutting, translate and concatenate.
|
|
185
|
+
#. Resize and crop (high quality, no aliasing).
|
|
213
186
|
#. Overlaying video tracks (with transparency control).
|
|
214
187
|
#. Apply an arbitrary equation one several video streams.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
Example
|
|
218
|
-
=======
|
|
219
|
-
|
|
220
|
-
In this example we open a video file, add video noise, add audio A and C note, select the subclip between t=0s and t=10s, and write the result to a new file:
|
|
221
|
-
|
|
222
|
-
.. code:: python
|
|
223
|
-
|
|
224
|
-
from cutcutcodec.core.filters.audio.subclip import FilterAudioSubclip
|
|
225
|
-
from cutcutcodec.core.filters.video.add import FilterVideoAdd
|
|
226
|
-
from cutcutcodec.core.filters.video.equation import FilterVideoEquation
|
|
227
|
-
from cutcutcodec.core.filters.video.subclip import FilterVideoSubclip
|
|
228
|
-
from cutcutcodec.core.generation.audio.equation import GeneratorAudioEquation
|
|
229
|
-
from cutcutcodec.core.generation.video.noise import GeneratorVideoNoise
|
|
230
|
-
from cutcutcodec.core.io.read_ffmpeg import ContainerInputFFMPEG
|
|
231
|
-
from cutcutcodec.core.io.write import ContainerOutputFFMPEG
|
|
232
|
-
|
|
233
|
-
with ContainerInputFFMPEG("cutcutcodec/examples/video.mp4") as container:
|
|
234
|
-
(trans,) = FilterVideoEquation(container.out_streams, "b0", "g0", "r0", "a0/2").out_streams
|
|
235
|
-
(noise,) = GeneratorVideoNoise().out_streams
|
|
236
|
-
(video,) = FilterVideoAdd([trans, noise]).out_streams
|
|
237
|
-
(video_trunc,) = FilterVideoSubclip([video], 0, 10).out_streams
|
|
238
|
-
(note_a,) = GeneratorAudioEquation("sin(2*pi*440*t)", "sin(2*pi*523.25*t)").out_streams
|
|
239
|
-
(note_a_trunc,) = FilterAudioSubclip([note_a], 0, 10).out_streams
|
|
240
|
-
ContainerOutputFFMPEG(
|
|
241
|
-
[video_trunc, note_a_trunc],
|
|
242
|
-
"final.mkv",
|
|
243
|
-
[
|
|
244
|
-
{"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
|
|
245
|
-
{"encodec": "libvorbis", "rate": 44100},
|
|
246
|
-
],
|
|
247
|
-
).write()
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
What's new ?
|
|
251
|
-
============
|
|
252
|
-
|
|
253
|
-
For the complete list of changes, refer to the `git commits <https://framagit.org/robinechuca/cutcutcodec/-/network/main?ref_type=heads>`_.
|
|
254
|
-
|
|
255
|
-
1.0.1
|
|
256
|
-
-----
|
|
257
|
-
|
|
258
|
-
* Add a command line interface.
|
|
259
|
-
* Compiling dynamic expressions in C.
|
|
260
|
-
|
|
261
|
-
1.0.2
|
|
262
|
-
-----
|
|
263
|
-
|
|
264
|
-
* Add support for ``ffmpeg 6``.
|
|
265
|
-
* Able to compile ``atan`` function.
|
|
266
|
-
* Handling of non-square pixel readings.
|
|
267
|
-
|
|
268
|
-
1.0.3
|
|
269
|
-
-----
|
|
270
|
-
|
|
271
|
-
* Improved ergonomics of the "Entry Tabs" and "Export" window.
|
|
272
|
-
* Speed-up codec/encoder/muxer tests of compatibility by a factor 10.
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
.. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
|
|
5
5
|
.. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
|
|
6
6
|
|
|
7
|
-
***********
|
|
8
|
-
CutCutCodec
|
|
9
|
-
***********
|
|
10
|
-
|
|
11
7
|
.. image:: https://img.shields.io/badge/License-MIT-green.svg
|
|
12
8
|
:alt: [license MIT]
|
|
13
9
|
:target: https://opensource.org/licenses/MIT
|
|
@@ -20,14 +16,10 @@ CutCutCodec
|
|
|
20
16
|
:alt: [testing]
|
|
21
17
|
:target: https://docs.pytest.org/
|
|
22
18
|
|
|
23
|
-
.. image:: https://img.shields.io/badge/python-3.
|
|
19
|
+
.. image:: https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-blue
|
|
24
20
|
:alt: [versions]
|
|
25
21
|
:target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
|
|
26
22
|
|
|
27
|
-
.. image:: https://img.shields.io/pypi/v/cutcutcodec.svg
|
|
28
|
-
:alt: [pypi version]
|
|
29
|
-
:target: https://pypi.python.org/pypi/cutcutcodec
|
|
30
|
-
|
|
31
23
|
.. image:: https://static.pepy.tech/badge/cutcutcodec
|
|
32
24
|
:alt: [downloads]
|
|
33
25
|
:target: https://www.pepy.tech/projects/cutcutcodec
|
|
@@ -36,6 +28,11 @@ CutCutCodec
|
|
|
36
28
|
:alt: [documentation]
|
|
37
29
|
:target: https://cutcutcodec.readthedocs.io/latest/
|
|
38
30
|
|
|
31
|
+
Useful links:
|
|
32
|
+
`Binary Installers <https://pypi.org/project/cutcutcodec>`_ |
|
|
33
|
+
`Source Repository <https://framagit.org/robinechuca/cutcutcodec>`_ |
|
|
34
|
+
`Online Documentation <https://cutcutcodec.readthedocs.io>`_ |
|
|
35
|
+
|
|
39
36
|
|
|
40
37
|
Description
|
|
41
38
|
===========
|
|
@@ -56,36 +53,6 @@ This software is **light**, **fast** and **highly configurable** for the followi
|
|
|
56
53
|
#. This software is able to optimize the assembly graph in order to limit calculation waste.
|
|
57
54
|
#. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
|
|
58
55
|
|
|
59
|
-
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
|
|
60
|
-
:alt: An example of the cutcutcodec GUI.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Quick Start
|
|
64
|
-
===========
|
|
65
|
-
|
|
66
|
-
Installation
|
|
67
|
-
------------
|
|
68
|
-
|
|
69
|
-
CutCutCodec is based on `ffmpeg <https://pytorch.org/>`_ and `pytorch <https://pytorch.org/>`_, so please follow the `cutcutcodec installation guide <https://cutcutcodec.readthedocs.io/latest/installation.html>`_.
|
|
70
|
-
|
|
71
|
-
You can use the following command to install everything automatically (not recommended, it's better to follow the guide).
|
|
72
|
-
|
|
73
|
-
.. code::
|
|
74
|
-
|
|
75
|
-
pip install cutcutcodec[gui]
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Running
|
|
79
|
-
-------
|
|
80
|
-
|
|
81
|
-
For a very complete description, please refer to `the documentation <https://cutcutcodec.readthedocs.io/latest/start.html>`_.
|
|
82
|
-
|
|
83
|
-
In a terminal, just type ``cutcutcodec-gui`` to start the GUI, it is possible to access the *cli* with:
|
|
84
|
-
|
|
85
|
-
.. code::
|
|
86
|
-
|
|
87
|
-
python -m cutcutcodec --help
|
|
88
|
-
|
|
89
56
|
|
|
90
57
|
Features
|
|
91
58
|
========
|
|
@@ -104,6 +71,7 @@ Audio
|
|
|
104
71
|
#. Add multiple tracks.
|
|
105
72
|
#. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
|
|
106
73
|
#. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
|
|
74
|
+
#. Denoising based on Winer filtering.
|
|
107
75
|
#. Hight quality anti aliasing low pass filter (based on FIR).
|
|
108
76
|
|
|
109
77
|
Video
|
|
@@ -121,63 +89,6 @@ Video
|
|
|
121
89
|
#. Mandelbrot fractal generation.
|
|
122
90
|
* Filters
|
|
123
91
|
#. Cutting, translate and concatenate.
|
|
92
|
+
#. Resize and crop (high quality, no aliasing).
|
|
124
93
|
#. Overlaying video tracks (with transparency control).
|
|
125
94
|
#. Apply an arbitrary equation one several video streams.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Example
|
|
129
|
-
=======
|
|
130
|
-
|
|
131
|
-
In this example we open a video file, add video noise, add audio A and C note, select the subclip between t=0s and t=10s, and write the result to a new file:
|
|
132
|
-
|
|
133
|
-
.. code:: python
|
|
134
|
-
|
|
135
|
-
from cutcutcodec.core.filters.audio.subclip import FilterAudioSubclip
|
|
136
|
-
from cutcutcodec.core.filters.video.add import FilterVideoAdd
|
|
137
|
-
from cutcutcodec.core.filters.video.equation import FilterVideoEquation
|
|
138
|
-
from cutcutcodec.core.filters.video.subclip import FilterVideoSubclip
|
|
139
|
-
from cutcutcodec.core.generation.audio.equation import GeneratorAudioEquation
|
|
140
|
-
from cutcutcodec.core.generation.video.noise import GeneratorVideoNoise
|
|
141
|
-
from cutcutcodec.core.io.read_ffmpeg import ContainerInputFFMPEG
|
|
142
|
-
from cutcutcodec.core.io.write import ContainerOutputFFMPEG
|
|
143
|
-
|
|
144
|
-
with ContainerInputFFMPEG("cutcutcodec/examples/video.mp4") as container:
|
|
145
|
-
(trans,) = FilterVideoEquation(container.out_streams, "b0", "g0", "r0", "a0/2").out_streams
|
|
146
|
-
(noise,) = GeneratorVideoNoise().out_streams
|
|
147
|
-
(video,) = FilterVideoAdd([trans, noise]).out_streams
|
|
148
|
-
(video_trunc,) = FilterVideoSubclip([video], 0, 10).out_streams
|
|
149
|
-
(note_a,) = GeneratorAudioEquation("sin(2*pi*440*t)", "sin(2*pi*523.25*t)").out_streams
|
|
150
|
-
(note_a_trunc,) = FilterAudioSubclip([note_a], 0, 10).out_streams
|
|
151
|
-
ContainerOutputFFMPEG(
|
|
152
|
-
[video_trunc, note_a_trunc],
|
|
153
|
-
"final.mkv",
|
|
154
|
-
[
|
|
155
|
-
{"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
|
|
156
|
-
{"encodec": "libvorbis", "rate": 44100},
|
|
157
|
-
],
|
|
158
|
-
).write()
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
What's new ?
|
|
162
|
-
============
|
|
163
|
-
|
|
164
|
-
For the complete list of changes, refer to the `git commits <https://framagit.org/robinechuca/cutcutcodec/-/network/main?ref_type=heads>`_.
|
|
165
|
-
|
|
166
|
-
1.0.1
|
|
167
|
-
-----
|
|
168
|
-
|
|
169
|
-
* Add a command line interface.
|
|
170
|
-
* Compiling dynamic expressions in C.
|
|
171
|
-
|
|
172
|
-
1.0.2
|
|
173
|
-
-----
|
|
174
|
-
|
|
175
|
-
* Add support for ``ffmpeg 6``.
|
|
176
|
-
* Able to compile ``atan`` function.
|
|
177
|
-
* Handling of non-square pixel readings.
|
|
178
|
-
|
|
179
|
-
1.0.3
|
|
180
|
-
-----
|
|
181
|
-
|
|
182
|
-
* Improved ergonomics of the "Entry Tabs" and "Export" window.
|
|
183
|
-
* Speed-up codec/encoder/muxer tests of compatibility by a factor 10.
|
|
@@ -23,10 +23,9 @@ class Build(_build_py):
|
|
|
23
23
|
super().initialize_options()
|
|
24
24
|
if self.distribution.ext_modules is None:
|
|
25
25
|
self.distribution.ext_modules = []
|
|
26
|
-
|
|
27
26
|
self.distribution.ext_modules.append(
|
|
28
27
|
Extension(
|
|
29
|
-
"cutcutcodec.core.generation.video.
|
|
28
|
+
"cutcutcodec.core.generation.video.fractal.fractal",
|
|
30
29
|
sources=["cutcutcodec/core/generation/video/fractal/fractal.c"],
|
|
31
30
|
**get_compilation_rules(),
|
|
32
31
|
)
|
|
@@ -19,7 +19,7 @@ from cutcutcodec.core.exceptions import MissingInformation, MissingStreamError
|
|
|
19
19
|
def _decode_duration_ffmpeg(filename: str, index: int, accurate: bool) -> Fraction:
|
|
20
20
|
"""Extract the duration by the complete decoding of the stream.
|
|
21
21
|
|
|
22
|
-
Slow but 100% accurate method. The duration of the last frame is
|
|
22
|
+
Slow but 100% accurate method. The duration of the last frame is taken in consideration.
|
|
23
23
|
Equivalent to:
|
|
24
24
|
``ffmpeg -thread 0 -loglevel quiet -stats -i file -map 0:v:0 -c:v rawvideo -f null /dev/null``
|
|
25
25
|
|
|
@@ -360,7 +360,7 @@ def get_metadata(
|
|
|
360
360
|
'filename': 'cutcutcodec/examples/audio_5.1_narration.oga',
|
|
361
361
|
'format_long_name': 'Ogg',
|
|
362
362
|
'format_name': 'ogg',
|
|
363
|
-
|
|
363
|
+
...
|
|
364
364
|
'nb_streams': 1,
|
|
365
365
|
'probe_score': 100,
|
|
366
366
|
'size': '34982',
|
|
@@ -471,7 +471,7 @@ def get_slices_metadata(
|
|
|
471
471
|
['video', '202240', '15.800000', ..., '15.960000', '354', '0'],
|
|
472
472
|
['video', '202752', '15.840000', ..., '15.920000', '247', '0'],
|
|
473
473
|
['video', '203264', '15.880000', ..., '15.880000', '192', '0']],
|
|
474
|
-
dtype='<U9')]
|
|
474
|
+
shape=(400, 11), dtype='<U9')]
|
|
475
475
|
>>>
|
|
476
476
|
"""
|
|
477
477
|
filename = pathlib.Path(filename)
|
|
@@ -22,7 +22,7 @@ def find_edge_from_edge_tree(
|
|
|
22
22
|
----------
|
|
23
23
|
graph : networkx.MultiDiGraph
|
|
24
24
|
The assembly graph.
|
|
25
|
-
stream : cutcutcodec.core.classes.stream.Stream
|
|
25
|
+
stream : :py:class:`cutcutcodec.core.classes.stream.Stream`
|
|
26
26
|
One of the output stream of the node. It can be a stream of any type.
|
|
27
27
|
nbunch : typing.Iterable[tuple[str, str, str]], optional
|
|
28
28
|
The edges to be analyzed. By default all edges are analyzed.
|
|
@@ -45,7 +45,7 @@ def find_edge_from_edge_tree(
|
|
|
45
45
|
>>> from cutcutcodec.core.analysis.graph.find import find_edge_from_edge_tree
|
|
46
46
|
>>> from cutcutcodec.core.classes.container import ContainerOutput
|
|
47
47
|
>>> from cutcutcodec.core.compilation.tree_to_graph import tree_to_graph
|
|
48
|
-
>>> from cutcutcodec.core.
|
|
48
|
+
>>> from cutcutcodec.core.filter.audio.subclip import FilterAudioSubclip
|
|
49
49
|
>>> from cutcutcodec.core.generation.audio.noise import GeneratorAudioNoise
|
|
50
50
|
>>> container_out = ContainerOutput(
|
|
51
51
|
... FilterAudioSubclip(GeneratorAudioNoise(0).out_streams, 1, 2).out_streams
|
{cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/graph/time_backprop.py
RENAMED
|
@@ -17,7 +17,7 @@ def time_backprop(
|
|
|
17
17
|
graph: networkx.MultiDiGraph,
|
|
18
18
|
edge: tuple[str, str, str],
|
|
19
19
|
t_min: Fraction,
|
|
20
|
-
t_max: typing.Union[Fraction, float]
|
|
20
|
+
t_max: typing.Union[Fraction, float],
|
|
21
21
|
) -> tuple[tuple[str, str, str], tuple[Fraction, typing.Union[Fraction, float]]]:
|
|
22
22
|
"""Graph version of ``cutcutcodec.core.analysis.stream.time_backprop.time_backprop``.
|
|
23
23
|
|
{cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/rate_audio.py
RENAMED
|
@@ -27,8 +27,8 @@ from cutcutcodec.core.io.read_ffmpeg import ContainerInputFFMPEG
|
|
|
27
27
|
RATE_ESTIMATORS = {} # to each node stream class, associate the func to find the optimal rate
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
def _add_estimator(node_cls: type) ->
|
|
31
|
-
def _add_func(func) ->
|
|
30
|
+
def _add_estimator(node_cls: type) -> typing.Callable:
|
|
31
|
+
def _add_func(func) -> typing.Callable:
|
|
32
32
|
RATE_ESTIMATORS[node_cls] = func
|
|
33
33
|
return func
|
|
34
34
|
return _add_func
|
{cutcutcodec-1.0.3.post0 → cutcutcodec-1.1.1}/cutcutcodec/core/analysis/stream/rate_video.py
RENAMED
|
@@ -14,8 +14,8 @@ from cutcutcodec.core.io.read_ffmpeg import ContainerInputFFMPEG
|
|
|
14
14
|
FPS_ESTIMATORS = {} # to each node stream class, associate the func to find the optimal rate
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
def _add_estimator(node_cls: type) ->
|
|
18
|
-
def _add_func(func) ->
|
|
17
|
+
def _add_estimator(node_cls: type) -> typing.Callable:
|
|
18
|
+
def _add_func(func) -> typing.Callable:
|
|
19
19
|
FPS_ESTIMATORS[node_cls] = func
|
|
20
20
|
return func
|
|
21
21
|
return _add_func
|
|
@@ -8,21 +8,42 @@ import typing
|
|
|
8
8
|
|
|
9
9
|
from cutcutcodec.core.analysis.stream.time_backprop import time_backprop
|
|
10
10
|
from cutcutcodec.core.classes.stream_video import StreamVideo
|
|
11
|
+
from cutcutcodec.core.filter.video.resize import FilterVideoResize
|
|
11
12
|
from cutcutcodec.core.io.read_ffmpeg import ContainerInputFFMPEG
|
|
13
|
+
from cutcutcodec.core.io.read_image import ContainerInputImage
|
|
14
|
+
from cutcutcodec.core.io.read_svg import ContainerInputSVG
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
SHAPE_ESTIMATORS = {} # to each node stream class, associate the func to find the optimal rate
|
|
15
18
|
|
|
16
19
|
|
|
17
|
-
def _add_estimator(node_cls: type) ->
|
|
18
|
-
def _add_func(func) ->
|
|
20
|
+
def _add_estimator(node_cls: type) -> typing.Callable:
|
|
21
|
+
def _add_func(func) -> typing.Callable:
|
|
19
22
|
SHAPE_ESTIMATORS[node_cls] = func
|
|
20
23
|
return func
|
|
21
24
|
return _add_func
|
|
22
25
|
|
|
23
26
|
|
|
27
|
+
@_add_estimator(FilterVideoResize)
|
|
28
|
+
def _optimal_shape_filter_video_resize(stream: StreamVideo, *_) -> tuple[int, int]:
|
|
29
|
+
"""Detect the best shape of a FilterVideoReshape.
|
|
30
|
+
|
|
31
|
+
Examples
|
|
32
|
+
--------
|
|
33
|
+
>>> from cutcutcodec.core.analysis.stream.shape import optimal_shape_video
|
|
34
|
+
>>> from cutcutcodec.core.filter.video.resize import FilterVideoResize
|
|
35
|
+
>>> from cutcutcodec.core.generation.video.noise import GeneratorVideoNoise
|
|
36
|
+
>>> (stream,) = FilterVideoResize(GeneratorVideoNoise(0).out_streams, (360, 640)).out_streams
|
|
37
|
+
>>> optimal_shape_video(stream)
|
|
38
|
+
(360, 640)
|
|
39
|
+
>>>
|
|
40
|
+
"""
|
|
41
|
+
assert isinstance(stream.node, FilterVideoResize), stream.node.__class__.__name__
|
|
42
|
+
return stream.node.shape
|
|
43
|
+
|
|
44
|
+
|
|
24
45
|
@_add_estimator(ContainerInputFFMPEG)
|
|
25
|
-
def _optimal_shape_container_input_ffmpeg(stream: StreamVideo, *_) ->
|
|
46
|
+
def _optimal_shape_container_input_ffmpeg(stream: StreamVideo, *_) -> tuple[int, int]:
|
|
26
47
|
"""Detect the shape of a ContainerInputFFMPEG.
|
|
27
48
|
|
|
28
49
|
Examples
|
|
@@ -38,6 +59,40 @@ def _optimal_shape_container_input_ffmpeg(stream: StreamVideo, *_) -> Fraction:
|
|
|
38
59
|
return (stream.height, stream.width)
|
|
39
60
|
|
|
40
61
|
|
|
62
|
+
@_add_estimator(ContainerInputImage)
|
|
63
|
+
def _optimal_shape_container_input_image(stream: StreamVideo, *_) -> tuple[int, int]:
|
|
64
|
+
"""Detect the shape of a ContainerInputFFMPEG.
|
|
65
|
+
|
|
66
|
+
Examples
|
|
67
|
+
--------
|
|
68
|
+
>>> from cutcutcodec.core.analysis.stream.shape import optimal_shape_video
|
|
69
|
+
>>> from cutcutcodec.core.io.read_image import ContainerInputImage
|
|
70
|
+
>>> (stream,) = ContainerInputImage("cutcutcodec/examples/logo.png").out_streams
|
|
71
|
+
>>> optimal_shape_video(stream)
|
|
72
|
+
(64, 64)
|
|
73
|
+
>>>
|
|
74
|
+
"""
|
|
75
|
+
assert isinstance(stream.node, ContainerInputImage), stream.node.__class__.__name__
|
|
76
|
+
return (stream.height, stream.width)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@_add_estimator(ContainerInputSVG)
|
|
80
|
+
def _optimal_shape_container_input_svg(stream: StreamVideo, *_) -> tuple[int, int]:
|
|
81
|
+
"""Detect the shape of a ContainerInputFFMPEG.
|
|
82
|
+
|
|
83
|
+
Examples
|
|
84
|
+
--------
|
|
85
|
+
>>> from cutcutcodec.core.analysis.stream.shape import optimal_shape_video
|
|
86
|
+
>>> from cutcutcodec.core.io.read_svg import ContainerInputSVG
|
|
87
|
+
>>> (stream,) = ContainerInputSVG("cutcutcodec/examples/logo.svg").out_streams
|
|
88
|
+
>>> optimal_shape_video(stream)
|
|
89
|
+
(64, 64)
|
|
90
|
+
>>>
|
|
91
|
+
"""
|
|
92
|
+
assert isinstance(stream.node, ContainerInputSVG), stream.node.__class__.__name__
|
|
93
|
+
return (stream.height, stream.width)
|
|
94
|
+
|
|
95
|
+
|
|
41
96
|
def optimal_shape_video(
|
|
42
97
|
stream: StreamVideo,
|
|
43
98
|
t_min: typing.Optional[Fraction] = None,
|