MP4をサイトに組み込む

参考サイト
https://dubdesign.net/download/html-css/movie-background/
基本は以下

<video src="[myphp file='soutai']/img/jump.mp4" webkit-playsinline playsinline muted autoplay loop></video>

テキストを上にのせたり 応用編

<div class="container-video_2">
  <div class="table-center">
    <div>
      <p>mp4の動画を背景にして<br>文字を乗せる</p>
    </div>
  </div>
  <video id="video" preload="auto" autoplay="true" loop="loop" muted="muted" volume="0">
    <source src="http://localhost/wp-blog/wp-content/uploads/2022/05/jump.mp4" type="video/mp4">
</div>
以下はCSS
/*背景動画にフィルタをかける*/
.container-video_2 {
  position: relative;
  height: 600px;
  overflow: hidden;
  opacity: 0.01;
  animation: load 1.5s 0.8s ease-out forwards;
}
.container-video_2 #video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1000;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(1.05);
  filter: grayscale(100%) contrast(60%);/*背景動画にかけるフィルタ*/
  transition: 0.3s;
}

@keyframes load {
  100% {
    opacity: 1;
  }
}
.table-center {
  display: table;
  width: 100%;
  position: relative;
  height: 100%;
}
.table-center > div {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  text-align: center;
}
.table-center > div p {
  color: #fff;
  text-shadow: 0 0px 5px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px;
  font-size: 2em;
  font-weight: 600;
}