replace <video> elements by <img> element?

replace <video> elements by <img> element?

This is the original source

  1. <video .....>
  2. ....
  3. </video>


How can I replace all such <video> elements by a picture from remote server

  1. <img href="https://www.foobar.com/pics/mypic.png" ........</img>

Peter