dxing97 / subs2cia

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

Change sps from time_base to sample_rate #29

Closed ghost closed 1 month ago

ghost commented 1 year ago

I was running into some issues condensing mp3's. Basically no matter what the srt file was the condense output file was always the same.

Turned out sps was being set to the second number of time_base or codec_time_base and this number was absurdly high.

Screenshot 2023-02-17 at 1 29 41 pm

Saw we had access to sample_rate so I changed sps and it condenses perfectly now.

dxing97 commented 1 year ago

Once I have some time I’ll check to see if this breaks anything.