nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.77k stars 499 forks source link

Base64 TTML subtitles not converting properly #386

Open potterface opened 7 months ago

potterface commented 7 months ago

I am trying to download some shows from a service called Vivo Play. It has TTML subtitles in base64 format. N_m3u8DL-RE will download those subtitles and convert them to PNG files then create a timed srt file with timecodes like this:

1 08:35:31,368 --> 08:35:33,875 0.png

2 08:35:38,968 --> 08:35:39,812 1.png

Then it procceeds to remove all the PNG files and I end up with one useless srt file. It would be better if it converted the TTML base64 subtitles to XML+PNG so we could import in an editing software and convert them into BD SUP or DVD SUB/IDX. The way it is handling these subtitles, even if I pass --del-after-done False I can't do anything with the SRT + PNG files that are left on the temp folder.

Here is a sample TTML subtitle downloaded with N_m3u8DL-RE_v0.2.0-beta taken from the temp folder: WBLA.zip