Streaming video from raspi-cam embedded on a webpage - Raspberry Pi Forums


hello, i'm working on project able view video raspi-cam on webpage. i'm using raspicam , gstreamer take video , send tcp server:

code: select all

raspivid -n -t 999999 -h 480 -w 640 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 fdsrc ! h264parse !  rtph264pay config-interval=1 pt=96 ! gdppay ! mp4mux ! tcpserversink host=192.168.0.17 port=5000
if use tcpclientsrc-based pipeline on machine, can view camera stream. that's , good, i'd embed video in webpage

i'm using html file threw together. i'm extremely new html/css/web-programming in general.

code: select all

<!doctype html> <html>         <head>                 <title>camera</title>         </head>         <body>                 <video width=640 height=480 autoplay>                         <source src="http://192.168.0.17:5000" type="video/ogg">                         browser not support video tag                 </video>         </body> </html> 
i've tried several different server pipelines, using ogg , mp4 (and adjusting html5 page match) , greeted blank screen when opening html page in google chrome , epiphany. why this? can help?



raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'