This video example is an overview how to build OpenCV 4.4 applications in C++ that stream output to the web using HLS live streaming.
Full tutorial https://funvision.blogspot.com/2020/1...
https://funvision.blogspot.com
It is a motivation example and I will prepare several tutorials about this topic. There is everything you need, but I will discuss each part in more detailed videos.
The future tutorials will show you how to install GStreamer on windows. How to compile opencv 4.4 with contribution modules and mainly with GStreamer. Additionally is important to set up the environmental Path system variable for GStreamer. Finally, Write the program in opencv using the right GStreamer pipeline and configure instal NGINX server to expose the web and the HLS video segment to your web browser. The problem is the environment, not the application itself.
VideoWriter writer(
"appsrc ! videoconvert ! videoscale ! video/x-raw,width=640,height=480 ! x264enc ! mpegtsmux ! hlssink playlist-root=http://172.22.222.39:8080/live/ location=C:/streamServer/hls/segment%05d.ts playlist-location=C:/streamServer/hls/playlist.m3u8 ",
0,
20,
Size(800, 600),
true);