videopython 0.22.2__tar.gz → 0.22.3__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.
- {videopython-0.22.2 → videopython-0.22.3}/PKG-INFO +1 -1
- {videopython-0.22.2 → videopython-0.22.3}/pyproject.toml +1 -1
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/effects.py +2 -2
- {videopython-0.22.2 → videopython-0.22.3}/.gitignore +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/LICENSE +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/README.md +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/_device.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/dubbing/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/dubbing/dubber.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/dubbing/models.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/dubbing/pipeline.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/dubbing/timing.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/generation/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/generation/audio.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/generation/image.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/generation/translation.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/generation/video.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/registry.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/swapping/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/swapping/inpainter.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/swapping/models.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/swapping/segmenter.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/swapping/swapper.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/transforms.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/understanding/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/understanding/audio.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/understanding/image.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/understanding/separation.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/understanding/temporal.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/ai/video_analysis.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/audio/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/audio/analysis.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/audio/audio.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/combine.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/description.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/edit.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/exceptions.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/progress.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/registry.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/scene.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/text/__init__.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/text/overlay.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/text/transcription.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/transforms.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/transitions.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/utils.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/base/video.py +0 -0
- {videopython-0.22.2 → videopython-0.22.3}/src/videopython/py.typed +0 -0
|
@@ -582,7 +582,7 @@ class Fade(Effect):
|
|
|
582
582
|
if video.audio is not None and not video.audio.is_silent:
|
|
583
583
|
sample_rate = video.audio.metadata.sample_rate
|
|
584
584
|
audio_start = round(start_s * sample_rate)
|
|
585
|
-
audio_end = round(stop_s * sample_rate)
|
|
585
|
+
audio_end = min(round(stop_s * sample_rate), len(video.audio.data))
|
|
586
586
|
n_audio_samples = audio_end - audio_start
|
|
587
587
|
fade_samples = min(round(self.duration * sample_rate), n_audio_samples)
|
|
588
588
|
|
|
@@ -656,7 +656,7 @@ class VolumeAdjust(AudioEffect):
|
|
|
656
656
|
|
|
657
657
|
sample_rate = audio.metadata.sample_rate
|
|
658
658
|
start_sample = round(start * sample_rate)
|
|
659
|
-
end_sample = round(stop * sample_rate)
|
|
659
|
+
end_sample = min(round(stop * sample_rate), len(audio.data))
|
|
660
660
|
n_samples = end_sample - start_sample
|
|
661
661
|
|
|
662
662
|
# Build volume envelope
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|