duration
This commit is contained in:
parent
a0650e6475
commit
045d6b8758
1 changed files with 2 additions and 1 deletions
|
@ -185,6 +185,8 @@ for name, plist in (
|
||||||
else:
|
else:
|
||||||
add_audio_clip(plist, clip['path'], frames)
|
add_audio_clip(plist, clip['path'], frames)
|
||||||
|
|
||||||
|
duration = sum(clip['duration'] for clip in data['clips'])
|
||||||
|
|
||||||
save_xml(vocals, target_vocals)
|
save_xml(vocals, target_vocals)
|
||||||
video.set("hide", 1)
|
video.set("hide", 1)
|
||||||
save_xml(video, target_source)
|
save_xml(video, target_source)
|
||||||
|
@ -234,7 +236,6 @@ subprocess.call([
|
||||||
'qmelt', target_audio, '-consumer', 'avformat:' + target_audio_wav,
|
'qmelt', target_audio, '-consumer', 'avformat:' + target_audio_wav,
|
||||||
])
|
])
|
||||||
audiomix = mlt.Playlist()
|
audiomix = mlt.Playlist()
|
||||||
duration = sum(clip['duration'] for clip in data['clips'])
|
|
||||||
add_audio_clip(audiomix, target_audio_wav, int(duration * fps))
|
add_audio_clip(audiomix, target_audio_wav, int(duration * fps))
|
||||||
|
|
||||||
# mix video + audio
|
# mix video + audio
|
||||||
|
|
Loading…
Reference in a new issue