cutcutcodec 1.0__tar.gz → 1.0.post3__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.
Potentially problematic release.
This version of cutcutcodec might be problematic. Click here for more details.
- {cutcutcodec-1.0/cutcutcodec.egg-info → cutcutcodec-1.0.post3}/PKG-INFO +110 -74
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/README.rst +75 -57
- cutcutcodec-1.0.post3/cutcutcodec/__init__.py +6 -0
- cutcutcodec-1.0.post3/cutcutcodec/__main__.py +38 -0
- cutcutcodec-1.0.post3/cutcutcodec/c_build.py +33 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/_helper_properties.py +1 -4
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/audio/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/audio/properties/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/audio/properties/duration.py +20 -18
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/ffprobe.py +150 -116
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/graph/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/graph/find.py +7 -13
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/graph/time_backprop.py +3 -8
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/stream/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/stream/rate_audio.py +239 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/stream/rate_video.py +97 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/stream/shape.py +107 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/stream/time_backprop.py +183 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/video/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/analysis/video/properties/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/video/properties/duration.py +26 -26
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/video/properties/nb_frames.py +22 -25
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/video/properties/rate.py +12 -15
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/analysis/video/properties/timestamps.py +17 -21
- cutcutcodec-1.0.post3/cutcutcodec/core/classes/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/container.py +5 -14
- cutcutcodec-1.0.post3/cutcutcodec/core/classes/encoder.py +152 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/filter.py +5 -9
- cutcutcodec-1.0.post3/cutcutcodec/core/classes/frame.py +127 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/frame_audio.py +57 -68
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/frame_video.py +56 -80
- cutcutcodec-1.0/cutcutcodec/core/classes/profile.py → cutcutcodec-1.0.post3/cutcutcodec/core/classes/layout.py +44 -40
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/meta_filter.py +3 -10
- cutcutcodec-1.0.post3/cutcutcodec/core/classes/muxer.py +184 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/node.py +33 -45
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/stream.py +27 -53
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/stream_audio.py +23 -28
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/classes/stream_video.py +20 -30
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/__init__.py +7 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/ast_to_file.py +18 -20
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/export/__init__.py +6 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/export/compatibility.py +734 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/export/default.py +28 -32
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/export/encodec.py +10 -20
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/export/muxer.py +8 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/export/rate.py +133 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/graph_to_ast.py +32 -45
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/graph_to_json.py +15 -19
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/graph_to_tree.py +11 -19
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/json_to_graph.py +5 -11
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/parse.py +13 -11
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/sympy_to_torch/__init__.py +1 -2
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +544 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +612 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +698 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/compilation/sympy_to_torch/printer.py +926 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/compilation/tree_to_graph.py +8 -18
- cutcutcodec-1.0.post3/cutcutcodec/core/edit/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/edit/decision/__init__.py +8 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/edit/operation/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/edit/operation/add.py +5 -9
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/edit/operation/remove.py +22 -33
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/exceptions.py +25 -22
- cutcutcodec-1.0.post3/cutcutcodec/core/filters/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/filters/audio/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/add.py +21 -24
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/cat.py +4 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/cut.py +18 -16
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/delay.py +9 -16
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/equation.py +55 -72
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/fir.py +22 -33
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/identity.py +5 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/resample.py +34 -44
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/audio/subclip.py +12 -14
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/cut.py +10 -17
- cutcutcodec-1.0.post3/cutcutcodec/core/filters/mix/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/mix/audio_cast.py +77 -82
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/mix/video_cast.py +25 -30
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/subclip.py +7 -18
- cutcutcodec-1.0.post3/cutcutcodec/core/filters/video/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/add.py +68 -82
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/cat.py +4 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/cut.py +18 -16
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/delay.py +8 -15
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/equation.py +26 -44
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/identity.py +5 -8
- cutcutcodec-1.0.post3/cutcutcodec/core/filters/video/pad.py +99 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/filters/video/subclip.py +11 -13
- {cutcutcodec-1.0/cutcutcodec/core/analysis/audio/properties → cutcutcodec-1.0.post3/cutcutcodec/core/generation}/__init__.py +2 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/generation/audio/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/audio/empty.py +8 -13
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/audio/equation.py +11 -14
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/audio/noise.py +47 -52
- cutcutcodec-1.0.post3/cutcutcodec/core/generation/video/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/empty.py +4 -10
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/equation.py +12 -15
- cutcutcodec-1.0.post3/cutcutcodec/core/generation/video/fractal/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/fractal/fractal.c +21 -12
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/fractal/geometry.py +3 -9
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/fractal/mandelbrot.py +37 -51
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/generation/video/noise.py +11 -16
- cutcutcodec-1.0.post3/cutcutcodec/core/interfaces/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/interfaces/seedable.py +13 -23
- cutcutcodec-1.0.post3/cutcutcodec/core/io/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/io/read_ffmpeg.py +266 -183
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/io/read_svg.py +10 -21
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/io/scheduler.py +47 -51
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/io/write.py +78 -79
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/cache/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/cache/basic.py +2 -6
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/cache/clean/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/cache/clean/graph.py +3 -8
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/cache/hashes/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/cache/hashes/graph.py +5 -9
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/cache/singleton.py +4 -7
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/cuda/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/factor/__init__.py +5 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/factor/proba.py +11 -17
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/generalize/__init__.py +5 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/generalize/delay_to_fir.py +7 -14
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/graph.py +2 -7
- cutcutcodec-1.0.post3/cutcutcodec/core/opti/parallel/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/parallel/buffer.py +10 -21
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/core/opti/utils.py +2 -7
- cutcutcodec-1.0.post3/cutcutcodec/examples/audio_5.1_narration.oga +0 -0
- cutcutcodec-1.0.post3/cutcutcodec/examples/intro.webm +0 -0
- cutcutcodec-1.0.post3/cutcutcodec/examples/logo.svg +13 -0
- cutcutcodec-1.0.post3/cutcutcodec/examples/project.json +226 -0
- cutcutcodec-1.0.post3/cutcutcodec/examples/video.mp4 +0 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/__init__.py +8 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/__main__.py +25 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/actions.py +3 -7
- cutcutcodec-1.0.post3/cutcutcodec/gui/app/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/app/app.py +46 -94
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/base.py +6 -19
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/container_input_ffmpeg.py +8 -22
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +9 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_audio_equation.py +10 -20
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_audio_fir.py +9 -23
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +9 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_cut.py +12 -18
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_delay.py +2 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_subclip.py +2 -8
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +9 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/filter_video_equation.py +4 -14
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +9 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +14 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +19 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +13 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/generator_video_mandelbrot.py +13 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/all/generator_video_noise.py +2 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/base.py +10 -23
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/default.py +3 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/documentation.py +3 -11
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/general.py +5 -18
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/interface.py +47 -80
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/loader.py +2 -7
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edit_node_state/main.py +6 -17
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/edition_tabs.py +3 -11
- cutcutcodec-1.0.post3/cutcutcodec/gui/entry/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/entry/base.py +20 -22
- cutcutcodec-1.0.post3/cutcutcodec/gui/entry/filters.py +42 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/entry/generators.py +42 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/entry_tabs.py +46 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/export/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/export/_helper.py +8 -19
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/export/container.py +93 -90
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/export/doc.py +8 -18
- cutcutcodec-1.0.post3/cutcutcodec/gui/export/encodec.py +289 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/export/main.py +47 -28
- cutcutcodec-1.0.post3/cutcutcodec/gui/flowchart/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/flowchart/edge_properties.py +4 -10
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/flowchart/main.py +59 -55
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/flowchart/node.py +5 -16
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/main.py +37 -54
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/menu.py +2 -9
- cutcutcodec-1.0.post3/cutcutcodec/gui/preferences/__init__.py +3 -0
- cutcutcodec-1.0.post3/cutcutcodec/gui/preferences/audio_settings.py +183 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/preferences/main.py +12 -10
- cutcutcodec-1.0.post3/cutcutcodec/gui/preferences/video_settings.py +257 -0
- cutcutcodec-1.0/cutcutcodec/gui/__main__.py → cutcutcodec-1.0.post3/cutcutcodec/gui/run.py +7 -26
- cutcutcodec-1.0.post3/cutcutcodec/gui/timeline/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/timeline/main.py +3 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/timeline/slider.py +16 -40
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/timeline/track.py +8 -25
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/timeline/view.py +12 -28
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/toolbar.py +2 -8
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/tools.py +4 -8
- cutcutcodec-1.0.post3/cutcutcodec/gui/video_preview/__init__.py +3 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/video_preview/audio_player.py +26 -48
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/video_preview/control.py +5 -17
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/video_preview/frame_extractor.py +51 -80
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/gui/video_preview/main.py +16 -33
- cutcutcodec-1.0.post3/cutcutcodec/testing/__init__.py +8 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/__main__.py +27 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/coding_style.py +49 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec/testing/generation.py +6 -18
- cutcutcodec-1.0.post3/cutcutcodec/testing/install.py +72 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/run.py +58 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/abstract.py +215 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/audio_cast.py +35 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/audio_equation.py +71 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/c_memory.py +132 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/compatibility.py +27 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/compile.py +42 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/encoder.py +23 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/filter_cut.py +107 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/filter_delay.py +71 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/filter_empty.py +40 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/fir.py +143 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/hashes.py +23 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/initialisation.py +24 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/muxer.py +22 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/nan_snapshot.py +39 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/read.py +192 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/serialization_equality.py +50 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/snapshot_shape.py +21 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/sympy_to_torch.py +135 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/thread_safe.py +77 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/time_range.py +55 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/video_equation.py +77 -0
- cutcutcodec-1.0.post3/cutcutcodec/testing/tests/write.py +95 -0
- cutcutcodec-1.0.post3/cutcutcodec/utils.py +40 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3/cutcutcodec.egg-info}/PKG-INFO +110 -74
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec.egg-info/SOURCES.txt +43 -7
- cutcutcodec-1.0.post3/cutcutcodec.egg-info/entry_points.txt +6 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec.egg-info/requires.txt +12 -5
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec.egg-info/top_level.txt +2 -0
- cutcutcodec-1.0.post3/pyproject.toml +160 -0
- cutcutcodec-1.0/.pylintrc +0 -627
- cutcutcodec-1.0/cutcutcodec/__init__.py +0 -8
- cutcutcodec-1.0/cutcutcodec/__main__.py +0 -44
- cutcutcodec-1.0/cutcutcodec/core/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/analysis/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/analysis/audio/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/analysis/graph/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/analysis/video/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/analysis/video/properties/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/classes/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/classes/frame.py +0 -123
- cutcutcodec-1.0/cutcutcodec/core/compilation/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/compilation/export/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/compilation/export/compatibility.py +0 -846
- cutcutcodec-1.0/cutcutcodec/core/compilation/export/muxer.py +0 -13
- cutcutcodec-1.0/cutcutcodec/core/compilation/export/rate.py +0 -102
- cutcutcodec-1.0/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +0 -395
- cutcutcodec-1.0/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +0 -308
- cutcutcodec-1.0/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +0 -744
- cutcutcodec-1.0/cutcutcodec/core/compilation/sympy_to_torch/printer.py +0 -265
- cutcutcodec-1.0/cutcutcodec/core/edit/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/core/edit/operation/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/core/edit/resource_estimation/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/filters/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/filters/audio/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/filters/mix/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/core/filters/video/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/filters/video/resize.py +0 -115
- cutcutcodec-1.0/cutcutcodec/core/generation/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/generation/audio/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/generation/video/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/generation/video/fractal/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/interfaces/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/io/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/cache/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/cache/clean/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/cache/hashes/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/cuda/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/core/opti/factor/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/core/opti/generalize/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/core/opti/parallel/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/app/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/__init__.py +0 -6
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +0 -15
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +0 -15
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +0 -15
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +0 -15
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +0 -20
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +0 -25
- cutcutcodec-1.0/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +0 -19
- cutcutcodec-1.0/cutcutcodec/gui/entry/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/entry/filters.py +0 -24
- cutcutcodec-1.0/cutcutcodec/gui/entry/generators.py +0 -24
- cutcutcodec-1.0/cutcutcodec/gui/entry/project_files.py +0 -124
- cutcutcodec-1.0/cutcutcodec/gui/entry_tabs.py +0 -46
- cutcutcodec-1.0/cutcutcodec/gui/export/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/export/encodec.py +0 -222
- cutcutcodec-1.0/cutcutcodec/gui/flowchart/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/preferences/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/preferences/audio_settings.py +0 -198
- cutcutcodec-1.0/cutcutcodec/gui/preferences/video_settings.py +0 -202
- cutcutcodec-1.0/cutcutcodec/gui/timeline/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/gui/video_preview/__init__.py +0 -1
- cutcutcodec-1.0/cutcutcodec/testing/__init__.py +0 -10
- cutcutcodec-1.0/cutcutcodec/testing/__main__.py +0 -13
- cutcutcodec-1.0/cutcutcodec/testing/runtests.py +0 -54
- cutcutcodec-1.0/cutcutcodec/utils.py +0 -28
- cutcutcodec-1.0/cutcutcodec.egg-info/entry_points.txt +0 -6
- cutcutcodec-1.0/pyproject.toml +0 -2
- cutcutcodec-1.0/setup.py +0 -149
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/LICENSE +0 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/cutcutcodec.egg-info/dependency_links.txt +0 -0
- {cutcutcodec-1.0 → cutcutcodec-1.0.post3}/setup.cfg +0 -0
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cutcutcodec
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.0.post3
|
|
4
4
|
Summary: video editing software
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
Author-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
|
|
6
|
+
Maintainer-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
|
|
7
|
+
License: Copyright © 2023 Robin RICHARD
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), 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
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
+
|
|
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
|
+
|
|
15
|
+
Project-URL: Homepage, https://framagit.org/robinechuca/cutcutcodec/-/blob/main/README.rst
|
|
16
|
+
Project-URL: Documentation, https://cutcutcodec.readthedocs.io/latest/
|
|
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
|
|
10
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
20
|
Classifier: Environment :: GPU
|
|
12
21
|
Classifier: Environment :: X11 Applications :: Qt
|
|
@@ -20,6 +29,7 @@ Classifier: Operating System :: POSIX :: Linux
|
|
|
20
29
|
Classifier: Programming Language :: C
|
|
21
30
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
31
|
Classifier: Programming Language :: Python :: 3.11
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
33
|
Classifier: Programming Language :: Python :: 3.9
|
|
24
34
|
Classifier: Topic :: Multimedia :: Graphics :: Editors
|
|
25
35
|
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
|
|
@@ -39,7 +49,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
|
39
49
|
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
40
50
|
Classifier: Topic :: Software Development :: Code Generators
|
|
41
51
|
Classifier: Typing :: Typed
|
|
42
|
-
Requires-Python:
|
|
52
|
+
Requires-Python: <3.13,>=3.9
|
|
43
53
|
Description-Content-Type: text/x-rst
|
|
44
54
|
License-File: LICENSE
|
|
45
55
|
Requires-Dist: av
|
|
@@ -48,8 +58,9 @@ Requires-Dist: click
|
|
|
48
58
|
Requires-Dist: networkx>=3.0
|
|
49
59
|
Requires-Dist: numpy>=1.22
|
|
50
60
|
Requires-Dist: opencv-contrib-python-headless
|
|
61
|
+
Requires-Dist: pip>=23.0
|
|
51
62
|
Requires-Dist: sympy>=1.10
|
|
52
|
-
Requires-Dist: torch>=2.
|
|
63
|
+
Requires-Dist: torch>=2.1
|
|
53
64
|
Requires-Dist: tqdm
|
|
54
65
|
Requires-Dist: unidecode
|
|
55
66
|
Provides-Extra: gui
|
|
@@ -59,39 +70,66 @@ Requires-Dist: pyqt6; extra == "gui"
|
|
|
59
70
|
Requires-Dist: pyqtgraph>=0.3.1; extra == "gui"
|
|
60
71
|
Requires-Dist: qtpy; extra == "gui"
|
|
61
72
|
Requires-Dist: qtpynodeeditor>=0.3.1; extra == "gui"
|
|
62
|
-
Provides-Extra:
|
|
63
|
-
Requires-Dist: black; extra == "
|
|
64
|
-
Requires-Dist: pdoc3; extra == "
|
|
65
|
-
Requires-Dist:
|
|
66
|
-
Requires-Dist:
|
|
67
|
-
Requires-Dist:
|
|
68
|
-
Requires-Dist:
|
|
69
|
-
Requires-Dist:
|
|
70
|
-
Requires-Dist:
|
|
73
|
+
Provides-Extra: all
|
|
74
|
+
Requires-Dist: black; extra == "all"
|
|
75
|
+
Requires-Dist: pdoc3; extra == "all"
|
|
76
|
+
Requires-Dist: pydocstyle<=6.1.1; extra == "all"
|
|
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"
|
|
71
89
|
|
|
72
90
|
.. rst syntax: https://deusyss.developpez.com/tutoriels/Python/SphinxDoc/
|
|
73
91
|
.. version conv: https://peps.python.org/pep-0440/
|
|
74
92
|
.. icons: https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html or https://www.pythonguis.com/faq/built-in-qicons-pyqt/
|
|
75
93
|
.. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
|
|
94
|
+
.. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
|
|
76
95
|
|
|
77
96
|
***********
|
|
78
97
|
CutCutCodec
|
|
79
98
|
***********
|
|
80
99
|
|
|
81
100
|
.. image:: https://img.shields.io/badge/License-MIT-green.svg
|
|
101
|
+
:alt: [license MIT]
|
|
82
102
|
:target: https://opensource.org/licenses/MIT
|
|
83
103
|
|
|
84
|
-
.. image:: https://img.shields.io/badge/
|
|
104
|
+
.. image:: https://img.shields.io/badge/linting-pylint-green
|
|
105
|
+
:alt: [linting: pylint]
|
|
85
106
|
:target: https://github.com/pylint-dev/pylint
|
|
86
107
|
|
|
87
108
|
.. image:: https://img.shields.io/badge/tests-pass-green
|
|
109
|
+
:alt: [testing]
|
|
88
110
|
:target: https://docs.pytest.org/
|
|
89
111
|
|
|
112
|
+
.. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
|
|
113
|
+
:alt: [versions]
|
|
114
|
+
:target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
|
|
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
|
+
.. image:: https://static.pepy.tech/badge/cutcutcodec
|
|
121
|
+
:alt: [downloads]
|
|
122
|
+
:target: https://www.pepy.tech/projects/cutcutcodec
|
|
123
|
+
|
|
124
|
+
.. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
|
|
125
|
+
:alt: [documentation]
|
|
126
|
+
:target: https://cutcutcodec.readthedocs.io/latest/
|
|
127
|
+
|
|
90
128
|
|
|
91
129
|
Description
|
|
92
130
|
===========
|
|
93
131
|
|
|
94
|
-
This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-
|
|
132
|
+
This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-gui``).
|
|
95
133
|
It has been designed for speed and to implement some effects that are hard to find elsewhere.
|
|
96
134
|
The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
|
|
97
135
|
Although it allows you to fine-tune many parameters, it's smart enough to find the settings that are best suited to your project.
|
|
@@ -102,14 +140,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
|
|
|
102
140
|
#. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
|
|
103
141
|
#. This software doesn't export the final video directly from the graphic interface. Instead, it generates a python script. You can edit this script yourself, giving you infinite possibilities!
|
|
104
142
|
#. A complete test benchmark guarantees an excelent kernel reliability.
|
|
105
|
-
#. Powered by `torch <https://pytorch.org/>`_, this software efficiently exploits the CPU and GPU in order to make it very fast.
|
|
143
|
+
#. Powered by `torch <https://pytorch.org/>`_ and written in C, this software efficiently exploits the CPU and GPU in order to make it very fast.
|
|
106
144
|
#. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
|
|
107
145
|
#. This software is able to optimize the assembly graph in order to limit calculation waste.
|
|
146
|
+
#. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
|
|
108
147
|
|
|
109
|
-
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.
|
|
148
|
+
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
|
|
110
149
|
:alt: An example of the cutcutcodec GUI.
|
|
111
150
|
|
|
112
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
|
+
|
|
113
179
|
Features
|
|
114
180
|
========
|
|
115
181
|
|
|
@@ -127,6 +193,7 @@ Audio
|
|
|
127
193
|
#. Add multiple tracks.
|
|
128
194
|
#. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
|
|
129
195
|
#. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
|
|
196
|
+
#. Hight quality anti aliasing low pass filter (based on FIR).
|
|
130
197
|
|
|
131
198
|
Video
|
|
132
199
|
-----
|
|
@@ -147,56 +214,6 @@ Video
|
|
|
147
214
|
#. Apply an arbitrary equation one several video streams.
|
|
148
215
|
|
|
149
216
|
|
|
150
|
-
Installation
|
|
151
|
-
============
|
|
152
|
-
|
|
153
|
-
Dependencies
|
|
154
|
-
------------
|
|
155
|
-
|
|
156
|
-
cutcutcodec has hard dependency on the ffmpeg package (version >= 4.0). You should install it first, please refer to the `FFmpeg download page <https://ffmpeg.org/download.html>`_.
|
|
157
|
-
|
|
158
|
-
In many cases, these commands should work:
|
|
159
|
-
|
|
160
|
-
.. code:: bash
|
|
161
|
-
|
|
162
|
-
$ sudo apt install ffmpeg
|
|
163
|
-
|
|
164
|
-
Although it is installed automatically, it is better to install **av** manually to avoid redundancy with ffmpeg. Please refer to the `PyAv installation guide <https://pyav.org/docs/develop/overview/installation.html>`_.
|
|
165
|
-
|
|
166
|
-
If you have a GPU, please install CUDA or ROC then follow the `PyTorch installation guide <https://pytorch.org/>`_. Without CUDA or ROC, the software is not able to use the GPU (CPU only).
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Installation of the lastest development version
|
|
170
|
-
-----------------------------------------------
|
|
171
|
-
|
|
172
|
-
To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip``:
|
|
173
|
-
|
|
174
|
-
.. code:: bash
|
|
175
|
-
|
|
176
|
-
git clone https://framagit.org/robinechuca/cutcutcodec.git
|
|
177
|
-
cd cutcutcodec/
|
|
178
|
-
pip install -e ./[optional]
|
|
179
|
-
$SHELL
|
|
180
|
-
cutcutcodec-test
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
Installation of the stable version
|
|
184
|
-
----------------------------------
|
|
185
|
-
|
|
186
|
-
To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
|
|
187
|
-
|
|
188
|
-
.. code:: bash
|
|
189
|
-
|
|
190
|
-
$ pip install cutcutcodec[gui]
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Running
|
|
195
|
-
-------
|
|
196
|
-
|
|
197
|
-
In a terminal, just type ``cutcutcodec-qt`` to start the GUI and ``cutcutcodec-test`` for the test banchmark.
|
|
198
|
-
|
|
199
|
-
|
|
200
217
|
Example
|
|
201
218
|
=======
|
|
202
219
|
|
|
@@ -214,9 +231,9 @@ In this example we open a video file, add video noise, add audio A and C note, s
|
|
|
214
231
|
from cutcutcodec.core.io.write import ContainerOutputFFMPEG
|
|
215
232
|
|
|
216
233
|
with ContainerInputFFMPEG("cutcutcodec/examples/video.mp4") as container:
|
|
217
|
-
(
|
|
234
|
+
(trans,) = FilterVideoEquation(container.out_streams, "b0", "g0", "r0", "a0/2").out_streams
|
|
218
235
|
(noise,) = GeneratorVideoNoise().out_streams
|
|
219
|
-
(video,) = FilterVideoAdd([
|
|
236
|
+
(video,) = FilterVideoAdd([trans, noise]).out_streams
|
|
220
237
|
(video_trunc,) = FilterVideoSubclip([video], 0, 10).out_streams
|
|
221
238
|
(note_a,) = GeneratorAudioEquation("sin(2*pi*440*t)", "sin(2*pi*523.25*t)").out_streams
|
|
222
239
|
(note_a_trunc,) = FilterAudioSubclip([note_a], 0, 10).out_streams
|
|
@@ -224,7 +241,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
|
|
|
224
241
|
[video_trunc, note_a_trunc],
|
|
225
242
|
"final.mkv",
|
|
226
243
|
[
|
|
227
|
-
{"encodec": "libx264", "rate": 30, "shape":
|
|
244
|
+
{"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
|
|
228
245
|
{"encodec": "libvorbis", "rate": 44100},
|
|
229
246
|
],
|
|
230
247
|
).write()
|
|
@@ -234,3 +251,22 @@ What's new ?
|
|
|
234
251
|
============
|
|
235
252
|
|
|
236
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.
|
|
@@ -2,25 +2,45 @@
|
|
|
2
2
|
.. version conv: https://peps.python.org/pep-0440/
|
|
3
3
|
.. icons: https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html or https://www.pythonguis.com/faq/built-in-qicons-pyqt/
|
|
4
4
|
.. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
|
|
5
|
+
.. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
|
|
5
6
|
|
|
6
7
|
***********
|
|
7
8
|
CutCutCodec
|
|
8
9
|
***********
|
|
9
10
|
|
|
10
11
|
.. image:: https://img.shields.io/badge/License-MIT-green.svg
|
|
12
|
+
:alt: [license MIT]
|
|
11
13
|
:target: https://opensource.org/licenses/MIT
|
|
12
14
|
|
|
13
|
-
.. image:: https://img.shields.io/badge/
|
|
15
|
+
.. image:: https://img.shields.io/badge/linting-pylint-green
|
|
16
|
+
:alt: [linting: pylint]
|
|
14
17
|
:target: https://github.com/pylint-dev/pylint
|
|
15
18
|
|
|
16
19
|
.. image:: https://img.shields.io/badge/tests-pass-green
|
|
20
|
+
:alt: [testing]
|
|
17
21
|
:target: https://docs.pytest.org/
|
|
18
22
|
|
|
23
|
+
.. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
|
|
24
|
+
:alt: [versions]
|
|
25
|
+
:target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
|
|
26
|
+
|
|
27
|
+
.. image:: https://img.shields.io/pypi/v/cutcutcodec.svg
|
|
28
|
+
:alt: [pypi version]
|
|
29
|
+
:target: https://pypi.python.org/pypi/cutcutcodec
|
|
30
|
+
|
|
31
|
+
.. image:: https://static.pepy.tech/badge/cutcutcodec
|
|
32
|
+
:alt: [downloads]
|
|
33
|
+
:target: https://www.pepy.tech/projects/cutcutcodec
|
|
34
|
+
|
|
35
|
+
.. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
|
|
36
|
+
:alt: [documentation]
|
|
37
|
+
:target: https://cutcutcodec.readthedocs.io/latest/
|
|
38
|
+
|
|
19
39
|
|
|
20
40
|
Description
|
|
21
41
|
===========
|
|
22
42
|
|
|
23
|
-
This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-
|
|
43
|
+
This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-gui``).
|
|
24
44
|
It has been designed for speed and to implement some effects that are hard to find elsewhere.
|
|
25
45
|
The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
|
|
26
46
|
Although it allows you to fine-tune many parameters, it's smart enough to find the settings that are best suited to your project.
|
|
@@ -31,14 +51,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
|
|
|
31
51
|
#. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
|
|
32
52
|
#. This software doesn't export the final video directly from the graphic interface. Instead, it generates a python script. You can edit this script yourself, giving you infinite possibilities!
|
|
33
53
|
#. A complete test benchmark guarantees an excelent kernel reliability.
|
|
34
|
-
#. Powered by `torch <https://pytorch.org/>`_, this software efficiently exploits the CPU and GPU in order to make it very fast.
|
|
54
|
+
#. Powered by `torch <https://pytorch.org/>`_ and written in C, this software efficiently exploits the CPU and GPU in order to make it very fast.
|
|
35
55
|
#. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
|
|
36
56
|
#. This software is able to optimize the assembly graph in order to limit calculation waste.
|
|
57
|
+
#. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
|
|
37
58
|
|
|
38
|
-
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.
|
|
59
|
+
.. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
|
|
39
60
|
:alt: An example of the cutcutcodec GUI.
|
|
40
61
|
|
|
41
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
|
+
|
|
42
90
|
Features
|
|
43
91
|
========
|
|
44
92
|
|
|
@@ -56,6 +104,7 @@ Audio
|
|
|
56
104
|
#. Add multiple tracks.
|
|
57
105
|
#. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
|
|
58
106
|
#. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
|
|
107
|
+
#. Hight quality anti aliasing low pass filter (based on FIR).
|
|
59
108
|
|
|
60
109
|
Video
|
|
61
110
|
-----
|
|
@@ -76,56 +125,6 @@ Video
|
|
|
76
125
|
#. Apply an arbitrary equation one several video streams.
|
|
77
126
|
|
|
78
127
|
|
|
79
|
-
Installation
|
|
80
|
-
============
|
|
81
|
-
|
|
82
|
-
Dependencies
|
|
83
|
-
------------
|
|
84
|
-
|
|
85
|
-
cutcutcodec has hard dependency on the ffmpeg package (version >= 4.0). You should install it first, please refer to the `FFmpeg download page <https://ffmpeg.org/download.html>`_.
|
|
86
|
-
|
|
87
|
-
In many cases, these commands should work:
|
|
88
|
-
|
|
89
|
-
.. code:: bash
|
|
90
|
-
|
|
91
|
-
$ sudo apt install ffmpeg
|
|
92
|
-
|
|
93
|
-
Although it is installed automatically, it is better to install **av** manually to avoid redundancy with ffmpeg. Please refer to the `PyAv installation guide <https://pyav.org/docs/develop/overview/installation.html>`_.
|
|
94
|
-
|
|
95
|
-
If you have a GPU, please install CUDA or ROC then follow the `PyTorch installation guide <https://pytorch.org/>`_. Without CUDA or ROC, the software is not able to use the GPU (CPU only).
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Installation of the lastest development version
|
|
99
|
-
-----------------------------------------------
|
|
100
|
-
|
|
101
|
-
To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip``:
|
|
102
|
-
|
|
103
|
-
.. code:: bash
|
|
104
|
-
|
|
105
|
-
git clone https://framagit.org/robinechuca/cutcutcodec.git
|
|
106
|
-
cd cutcutcodec/
|
|
107
|
-
pip install -e ./[optional]
|
|
108
|
-
$SHELL
|
|
109
|
-
cutcutcodec-test
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Installation of the stable version
|
|
113
|
-
----------------------------------
|
|
114
|
-
|
|
115
|
-
To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
|
|
116
|
-
|
|
117
|
-
.. code:: bash
|
|
118
|
-
|
|
119
|
-
$ pip install cutcutcodec[gui]
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Running
|
|
124
|
-
-------
|
|
125
|
-
|
|
126
|
-
In a terminal, just type ``cutcutcodec-qt`` to start the GUI and ``cutcutcodec-test`` for the test banchmark.
|
|
127
|
-
|
|
128
|
-
|
|
129
128
|
Example
|
|
130
129
|
=======
|
|
131
130
|
|
|
@@ -143,9 +142,9 @@ In this example we open a video file, add video noise, add audio A and C note, s
|
|
|
143
142
|
from cutcutcodec.core.io.write import ContainerOutputFFMPEG
|
|
144
143
|
|
|
145
144
|
with ContainerInputFFMPEG("cutcutcodec/examples/video.mp4") as container:
|
|
146
|
-
(
|
|
145
|
+
(trans,) = FilterVideoEquation(container.out_streams, "b0", "g0", "r0", "a0/2").out_streams
|
|
147
146
|
(noise,) = GeneratorVideoNoise().out_streams
|
|
148
|
-
(video,) = FilterVideoAdd([
|
|
147
|
+
(video,) = FilterVideoAdd([trans, noise]).out_streams
|
|
149
148
|
(video_trunc,) = FilterVideoSubclip([video], 0, 10).out_streams
|
|
150
149
|
(note_a,) = GeneratorAudioEquation("sin(2*pi*440*t)", "sin(2*pi*523.25*t)").out_streams
|
|
151
150
|
(note_a_trunc,) = FilterAudioSubclip([note_a], 0, 10).out_streams
|
|
@@ -153,7 +152,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
|
|
|
153
152
|
[video_trunc, note_a_trunc],
|
|
154
153
|
"final.mkv",
|
|
155
154
|
[
|
|
156
|
-
{"encodec": "libx264", "rate": 30, "shape":
|
|
155
|
+
{"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
|
|
157
156
|
{"encodec": "libvorbis", "rate": 44100},
|
|
158
157
|
],
|
|
159
158
|
).write()
|
|
@@ -163,3 +162,22 @@ What's new ?
|
|
|
163
162
|
============
|
|
164
163
|
|
|
165
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.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""Entry point of the graphic interface."""
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
import click
|
|
8
|
+
|
|
9
|
+
from cutcutcodec import __version__
|
|
10
|
+
from cutcutcodec.gui.__main__ import main as main_gui
|
|
11
|
+
from cutcutcodec.testing.__main__ import main as main_test
|
|
12
|
+
from cutcutcodec.utils import get_project_root
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@click.group(invoke_without_command=True)
|
|
16
|
+
@click.pass_context
|
|
17
|
+
@click.option("--version", is_flag=True, help="Display the version of cutcutcodec.")
|
|
18
|
+
def main(ctx=None, version: bool = False):
|
|
19
|
+
"""Run the main ``cutcutcodec`` command line interface."""
|
|
20
|
+
if version:
|
|
21
|
+
click.echo(__version__)
|
|
22
|
+
elif not ctx.invoked_subcommand:
|
|
23
|
+
readme = get_project_root().parent / "README.rst"
|
|
24
|
+
title = f"* cutcutcodec {__version__} *"
|
|
25
|
+
click.echo(
|
|
26
|
+
f"{'*'*len(title)}\n{title}\n{'*'*len(title)}\n\n"
|
|
27
|
+
f"For a detailed description, please refer to {readme} "
|
|
28
|
+
"or https://framagit.org/robinechuca/cutcutcodec.\n"
|
|
29
|
+
f"Type `{sys.executable} -m cutcutcodec --help` to see all the cli options.\n"
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
main.add_command(main_test, "test")
|
|
34
|
+
main.add_command(main_gui, "gui")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
main()
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""The rules of compilation for setuptools."""
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
|
|
8
|
+
from setuptools import Extension
|
|
9
|
+
from setuptools.command.build_py import build_py as _build_py
|
|
10
|
+
|
|
11
|
+
sys.path.insert(0, os.getcwd()) # it is required to find cutcutcodec
|
|
12
|
+
from cutcutcodec.utils import get_compilation_rules
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Build(_build_py):
|
|
16
|
+
"""Builder to compile c files."""
|
|
17
|
+
|
|
18
|
+
def run(self):
|
|
19
|
+
self.run_command("build_ext")
|
|
20
|
+
return super().run()
|
|
21
|
+
|
|
22
|
+
def initialize_options(self):
|
|
23
|
+
super().initialize_options()
|
|
24
|
+
if self.distribution.ext_modules is None:
|
|
25
|
+
self.distribution.ext_modules = []
|
|
26
|
+
|
|
27
|
+
self.distribution.ext_modules.append(
|
|
28
|
+
Extension(
|
|
29
|
+
"cutcutcodec.core.generation.video.c_fractal",
|
|
30
|
+
sources=["cutcutcodec/core/generation/video/fractal/fractal.c"],
|
|
31
|
+
**get_compilation_rules(),
|
|
32
|
+
)
|
|
33
|
+
)
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
|
|
3
|
-
"""
|
|
4
|
-
** Allows the pooling of information from several estimation functions. **
|
|
5
|
-
--------------------------------------------------------------------------
|
|
3
|
+
"""Allow the pooling of information from several estimation functions.
|
|
6
4
|
|
|
7
5
|
The function removes the redundancy of the analyses performed by ffmpeg, ffprobe and cv2.
|
|
8
6
|
"""
|
|
@@ -15,7 +13,6 @@ import typing
|
|
|
15
13
|
from cutcutcodec.core.exceptions import MissingStreamError, MissingInformation
|
|
16
14
|
|
|
17
15
|
|
|
18
|
-
|
|
19
16
|
def _check_pathexists_index(filename: typing.Union[str, bytes, pathlib.Path], index: int) -> None:
|
|
20
17
|
assert pathlib.Path(filename).exists(), filename
|
|
21
18
|
assert isinstance(index, numbers.Integral), index.__class__.__name__
|