describealign 1.1.0__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.
- {describealign-1.1.0 → describealign-1.1.1}/PKG-INFO +1 -1
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/PKG-INFO +1 -1
- {describealign-1.1.0 → describealign-1.1.1}/describealign.py +7 -3
- describealign-1.1.1/version +1 -0
- describealign-1.1.0/version +0 -1
- {describealign-1.1.0 → describealign-1.1.1}/LICENSE +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/README.md +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/SOURCES.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/dependency_links.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/entry_points.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/requires.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/describealign.egg-info/top_level.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/pyproject.toml +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/requirements.txt +0 -0
- {describealign-1.1.0 → describealign-1.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: describealign
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Combines videos with matching audio files (e.g. audio descriptions)
|
|
5
5
|
Author-email: Julian Brown <julbean@proton.me>
|
|
6
6
|
Project-URL: Homepage, https://github.com/julbean/describealign
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: describealign
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Combines videos with matching audio files (e.g. audio descriptions)
|
|
5
5
|
Author-email: Julian Brown <julbean@proton.me>
|
|
6
6
|
Project-URL: Homepage, https://github.com/julbean/describealign
|
|
@@ -721,10 +721,10 @@ def encode_fit_as_ffmpeg_expr(smooth_path, clips, video_offset, start_key_frame)
|
|
|
721
721
|
# but that means the video is behind the audio and needs to catch up by playing quicker
|
|
722
722
|
# catchup_spread is the ratio of time to spend catching up to the amount of catching up needed
|
|
723
723
|
catchup_spread = 1./CATCHUP_RATE
|
|
724
|
-
setts_cmd.append(f'+clip(TS-
|
|
724
|
+
setts_cmd.append(f'+clip(TS-{start_key_frame},0,{start_skip*(1+catchup_spread)}/TB)*{-1./(1+catchup_spread)}')
|
|
725
725
|
elif video_offset < 0:
|
|
726
726
|
# if the audio starts before the video, stretch the first frame of the video back to meet it
|
|
727
|
-
setts_cmd.append(f'+clip(TS-
|
|
727
|
+
setts_cmd.append(f'+clip(TS-{start_key_frame},0,{-video_offset/10000.}/TB)*10000')
|
|
728
728
|
# each segment of the linear fit can be encoded as a single clip function
|
|
729
729
|
setts_cmd.append('+(0')
|
|
730
730
|
for clip_start, clip_end in clips:
|
|
@@ -735,7 +735,7 @@ def encode_fit_as_ffmpeg_expr(smooth_path, clips, video_offset, start_key_frame)
|
|
|
735
735
|
audio_desc_length = audio_desc_end - audio_desc_start
|
|
736
736
|
video_length = video_end - video_start
|
|
737
737
|
slope = audio_desc_length / video_length
|
|
738
|
-
setts_cmd.append(f'+clip(TS-
|
|
738
|
+
setts_cmd.append(f'+clip(TS-{start_key_frame}-{video_start:.4f}/TB,0,{max(0,video_length):.4f}/TB)*{slope-1:.9f}')
|
|
739
739
|
setts_cmd.append(')')
|
|
740
740
|
setts_cmd = ''.join(setts_cmd)
|
|
741
741
|
return setts_cmd
|
|
@@ -1202,7 +1202,11 @@ def main_gui():
|
|
|
1202
1202
|
window.enable()
|
|
1203
1203
|
continue
|
|
1204
1204
|
video_files = values['-VIDEO_FILES-'].split(';')
|
|
1205
|
+
if len(video_files) == 1:
|
|
1206
|
+
video_files = video_files[0]
|
|
1205
1207
|
audio_files = values['-AUDIO_FILES-'].split(';')
|
|
1208
|
+
if len(audio_files) == 1:
|
|
1209
|
+
audio_files = audio_files[0]
|
|
1206
1210
|
combine_gui(video_files, audio_files, config_path)
|
|
1207
1211
|
if event == 'Settings':
|
|
1208
1212
|
window.disable()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.1.1
|
describealign-1.1.0/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.1.0
|
|
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
|