manatlan / guy

Graphics User Ynterface : a simple module for making GUI applications (with html/js) for py3 ... to target windows, linux, mac & android
Apache License 2.0
202 stars 23 forks source link

Videos in HTML #31

Open latot opened 3 years ago

latot commented 3 years ago

Hi hi, I have a question about videos, actually, is like the <video> tag from html is not like to support everything, mkv, subs, etc, etc.

I would like to know if there is a way to use python/video libs to play videos in the pages, instead using the video tag.

I would like to avoid something like, convert videos to mp4 or send image by image to "reproduce" a video.

The browsers today have dropped plugins, so we can't use the vlc plugin for example.

Thx.

mckay115 commented 2 years ago

This may be a late reply, but hopefully someone finds it useful. The browser will only support the video codecs that it ships with. The easiest solution is to have your files in "mp4" or "vp9" for the best compatibility in modern browsers. Not all deployments support "h.265", in my deployment experience we had about a 75% success rate with h.265 but after switching to all vp9 and mp4 we have had no issues.