Adding Subtitles removed audio
jainvasu631 opened this issue · 2 comments
jainvasu631 commented
mkv = MKVFile()
lmkv.add_track(episode_path)
mkv.add_track(subtitle_path)
mkv.mux(output_path)
this causes the output_path to have no audio.
sheldonkwoodward commented
Hi @jainvasu631, I believe what you are trying to do is take an existing MKV file and add subtitles to it, let me know if that is not correct. But if that is the case, you should construct an MKFile using the episode file and then add the subtitle track to it. Something like this:
mkv = MKVFile(file_path=episode_path)
mkv.add_track(subtitle_path)
mkv.mux(output_path)
add_track is designed to add the first track from an MKV file passed to it, not all tracks from a file.
jainvasu631 commented
Thanks @sheldonkwoodward. I was adding the audio seperately, however this fixed the problem.