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:
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.
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?
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
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>
raspberrypi
Comments
Post a Comment