dxing97 / subs2cia

Condensed Immersive Audiovisual media generator from subtitles for language learning
MIT License
89 stars 10 forks source link

Condensed audio only includes first part of episode #9

Closed kytrinyx closed 3 years ago

kytrinyx commented 3 years ago

I only just installed subs2cia today, and am trying to figure out how best to use it. I apologize if I'm doing it wrong, and that's what is causing my issue.

I downloaded an episode of a show from viki.com. The download included:

I renamed the files so that they don't have any spaces, then tried condensing off of video + vtt. The program complained about missing audio or subtitles, so I tried again using the audio file instead. The program seemed pretty happy with that, but complained that the audio language was unknown. I don't know if this matters, but I renamed the audio file to include .ko before the extension, then reran the command:

Here's the command I ran:

subs2cia condense -b -i *.m4a *.vtt -I 0m 1m30s -I e2m +1m30s -tl ko -t 1500 -p 100

The output was absolutely beautiful... but only lasted 8 minutes, which was unexpected, since the audio of the original episode is an hour long.

When looking at the *.condensed.vtt file, there are 717 subtitle segments, but when listening to the condensed audio the final segment that got included was segment 186.

I've uploaded the original m4a and vtt files along with the condensed output files here: https://www.dropbox.com/s/3u0mtcgbo814702/subs2cia-debugging.zip?dl=0 It didn't seem like the video was used for condensing, so I left it out to save bandwidth. Let me know if I should add it back.

Also if there's any more debugging information I can provide let me know!

kytrinyx commented 3 years ago

I realized that since Viki uses the same subtitle segments for all the languages, I can download the english subtitle file and use that to get the timings for condensing.

That worked just fine.

I'm going to close this, since I have a workaround.

Thanks for your work on this tool, it's going to be a huge lifesaver for my passive immersion!

kytrinyx commented 3 years ago

I am re-downloading from Viki, and it looks like my previous download was broken in some way.

The new download is combining video and audio into a single file.

So please don't spend time debugging this!

If I find good reproduction steps with a known-good set of inputs, I will open a new issue.

❤️ Sorry about the noise!