Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text overlay (subtitle) with HLS #158

Open
neon29 opened this issue Mar 5, 2021 · 2 comments
Open

Text overlay (subtitle) with HLS #158

neon29 opened this issue Mar 5, 2021 · 2 comments

Comments

@neon29
Copy link

neon29 commented Mar 5, 2021

To add subtitle I have proceeded as follows:

Modify my run_picam.sh:

sudo bash /home/pi/make_dirs.sh
sudo touch /home/pi/picam/hooks/subtitle
sudo cat  /home/pi/picam/sub  > /home/pi/picam/hooks/subtitle
sudo /home/pi/picam/picam -o /run/shm/hls --alsadev hw:1,0

where cat contains:


text=♨☀♻♥⚠
font_file=/home/pi/NotoSansCJKjp-Regular.otf
pt=120
layout_align=middle,center
letter_spacing=40

I can then watch and listen to my stream at http://ip_address/hls/index.m3u8 for example thanks to VLC. However, I do not see any subtitle.

Does subtitles are expected to work with HLS?

@iizukanao
Copy link
Owner

@neon29 Yes, subtitles work with HLS. Have you put a font file /home/pi/NotoSansCJKjp-Regular.otf? If not, you can download the file from https://github.com/googlefonts/noto-cjk/raw/main/NotoSansCJKjp-Regular.otf

@al3xt3ch
Copy link

al3xt3ch commented May 8, 2021

Got the same problem. Tried vlc and webstream via nginx.
`
text=TEST
font_file=/home/pi/Sentinel-Medium.otf
pt=18
layout_align=middle,center

`

@alemelis alemelis mentioned this issue Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants