LuisMayo / objection_engine

Library that turns comment chains into ace attorney scenes, used in several bots
MIT License
107 stars 20 forks source link

advice about combine tts result into final video #47

Closed wanghaisheng closed 3 years ago

wanghaisheng commented 3 years ago

for each scene,i can generate tts file for it. ,i can combine all tts file for scenes into a new audio then in ace_attorney_anim, something like this

  1. i can get timelength for tts file,how to pass them in scene2video
  2. how can i specify scene video tmp and result file directory instead of hardcode?
    sound_effects = do_video(config)
    do_audio(sound_effects)
    video = ffmpeg.input("test.mp4")
    audio = ffmpeg.input("final_se.mp3")
    ttsaudio=ffmpeg.input("allinone.mp3")
    if os.path.exists(output_filename):
        os.remove(output_filename)
    out = ffmpeg.output(
        video,
        audio,
        output_filename,
        vcodec="copy",
        acodec="aac",
        strict="experimental",
    )
    out.run()
LuisMayo commented 3 years ago

Hi! Sorry for being late. For an unknown reason i wasn't subscribed to my own repo. I'm gonna need a bit more info on this one,

  1. Are you using the latest update of objection engine? I think the code snippet is a bit updated
  2. TMP directory is made using the output_filename parameter

Thanks.

LuisMayo commented 3 years ago

This is being debated in #46