Open odehalaa opened 3 weeks ago
Hi,
Thank you for your kind words about the tool! I’m glad you found it helpful.
Regarding your question about generating an M3U8 stream with soft-coded subtitles and ensuring they refresh automatically: This indeed falls into the realm of HLS (HTTP Live Streaming).
My tool operates in a modular way with three main independent components:
For your use case:
streamlink <URL> best -o video.m3u8
)With continuously growing files, you essentially have two components:
captions.srt
file.To combine these into a playable video with live subtitles, you would generally need a mechanism to mux or integrate the subtitles into the stream. Since both files are continuously growing, you might need to set up a script or tool to handle this dynamically.
Although I don't have extensive knowledge about HLS specifics, a common approach is to periodically check for updates to the subtitle file and refresh the video player. You could implement something similar to how my tool manages updates: a script that monitors changes and updates the player or reloads the subtitles as needed.
If you're familiar with HLS or have specific tools for handling live streams, they might offer built-in features for managing dynamic subtitles. Otherwise, a custom script to integrate and refresh the subtitles periodically could be a good solution.
Best regards,
Thank you for your reply. Could you please let me know if there are any package updates available to enhance stability and incorporate the latest modules?
Hi,
Thank you so much for your amazing solution! I have a quick question: Is it possible to generate an M3U8 stream that includes soft-coded subtitles from caption.srt, with the subtitles automatically refreshing? I would like to ensure that it’s compatible with any player.
Looking forward to your advice.
Best regards,