• 🇨🇦 tunetardis@piefed.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    A little follow-up on this. Tonight I had a look at what it generated. It produced 2 files: a .wav and a .ass. The latter apparently contains subtitles that sync to the audio. But how do you play them together?

    After searching around online, the general consensus seemed that you need to make a video file that throws it all together. For the background image I used a still of the book cover art. Then I ran an ffmpeg command that looked something like this:

    ffmpeg -loop 1 -i cover.jpg -i abogen_file.wav -vf subtitles=abogen_file.ass -shortest audio_book.mov
    

    It sounds pretty awesome and looks like this while it’s playing!

    bUtdFKluimxbNPg.jpg

    • CagedDingo@aussie.zone
      link
      fedilink
      arrow-up
      1
      ·
      25 minutes ago

      If you use VLC or some other capable player it’ll automatically pick up the subtitles if they have the same name (sans extension).