简体   繁体   English

图像背景上方页面上具有透明背景的视频

[英]Video with transparent background on page above image background

I want to embed some video into my HTML page. 我想将一些视频嵌入到HTML页面中。 As background I want to use big picture. 作为背景,我想使用大图。 And above it I want to insert loop video with (ie) walking man. 在它上面,我想与(即)步行者插入循环视频。

  • So, can I embed video (without flash and any player controls) in page? 那么,我可以在页面中嵌入视频(没有Flash和任何播放器控件)吗?
  • Can I decode video with transparent background? 我可以解码具有透明背景的视频吗? Is there any codecs which support transparent background (alpha-channel)? 是否有任何支持透明背景(alpha通道)的编解码器?

Now I see this solutions: 现在,我看到以下解决方案:

  • Making flash (that I don't want to use) 制作闪光灯(我不想使用)
  • Create gif animation (and it will be big file size and quite bad quality) 创建gif动画(文件大小很大且质量很差)

I don't believe that's possible with anything beyond GIF (over sized and would have a horrible border between opaque and transparent), MNG (not widely supported), and scripted SVG. 我认为,除了GIF(尺寸过大,并且在不透明和透明之间会有可怕的边界),MNG(不受广泛支持)和脚本化SVG之外,这是不可能的。

Have you thought about figuring out where in the background this video would appear and putting THAT section of the background into the video as a static background behind the man walking? 您是否考虑过找出该视频在背景中出现的位置,并将该背景的那一部分作为视频显示在走着的人后面的静态背景?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM