Stream Video Feed with a Raspberry Pi

From Double Jump Electric Wiki
Revision as of 00:10, 12 June 2020 by Poofjunior (talk | contribs) (Created page with "Run it! mjpg_streamer -i "input_raspicam.so" -o "output_http.so -p 8080" Navigate to the webpage where the overlay is being displayed. Example: http://192.168.1.2:8080/?a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Run it!

   mjpg_streamer -i "input_raspicam.so" -o "output_http.so -p 8080"

Navigate to the webpage where the overlay is being displayed. Example: http://192.168.1.2:8080/?action=stream


Add Overlay

Supposedly, you can just modify the html

<html>
  <head>
    <title>MJPG-Streamer - Stream Example</title>
<style>
.container { position:relative; }
.container video {
    position:relative;
    z-index:0;
}

.overlay {
    position:absolute;
    top:0;
    left:0;
    z-index:1;
}
</style>
  </head>
  <body>
    <div class="container">
        <img src="/?action=stream"/>
    <div class="overlay">
        <p>&nbsp;&nbsp;Type your text there</p>
    </div>
</div>
  </body>
</html>

References

1. Raspberry Pi Overlay Forum Post