Screenly / Anthias

The world's most popular open source digital signage project.
https://anthias.screenly.io
Other
2.46k stars 616 forks source link

Feature Request - yt-dlp Embed Subtitles #1871

Open desmphil opened 6 months ago

desmphil commented 6 months ago

I would like to port my own homebrew digital signage to Anthias, but im lacking a single feature, Subtitles and Caption in the video

All it needs is to offer an option and download the subtitles with YT-DLP while downloading the video? So i did try to modify the /screenly/lib/utils.py to include the Subtitles:

call(['yt-dlp', '-f', 'mp4', '--sub-lang', 'fr-CA', '--embed-subs', '-o', self.location, self.uri])

What is the process of downloading from videos, is this read from /screenly/lib/utils.py or its a docker image?

nicomiguelino commented 6 months ago

@desmphil Thank you for creating an issue. Anthias is containerize; it uses Docker containers for the services. And yes, it's called inside a container, from /screenly/lib/utils.py.