title: Convert or Download a Youtube/Vimeo iframe src url Video to a HTML5 video tag source for show on my Wordpress Website
body: <p>i'm looking for a possibility for my Wordpress page to convert or convert a Youtube/Vimeo iframe src link/url so that it can be output either as a temporary file or as a link in an html5 video source tag. I know there is a possibility, because there is a plugin called Smartvideo <a href="https://swarmify.com/features/auto-youtube-export/" rel="nofollow noreferrer">https://swarmify.com/features/auto-youtube-export/</a> and it works here too.</p>
  <p>So here is the code again as I would like it to be:</p>
  <pre><code>&lt;iframe src=&quot;https://www.youtube.com/embed/$video_id&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
  </code></pre>
  <p>convert/download temporary to</p>
  <pre><code>&lt;video muted autoplay loop&gt;
      &lt;source src=&quot;https://domain.de/transformed_video/$video_id.mp4&quot; type=&quot;video/mp4&quot;&gt;
  &lt;/video&gt;
  </code></pre>
  <p>I hope there is someone who can help me with this.</p>