04-27-2020 02:32 AM
Hello everyone, I am trying to transmit live video generated by a BASLER camera (acA640 - 90uc) connected to my NI MyRIO to a web page by means of some communication protocol, but I cannot find one that works for me, any idea how this could be achieved ? Thanks a lot
04-27-2020 02:53 AM
Hi, can you explain a little more about your problem, remember that labVIEW has HTTP protocol that maybe can solve your problem.
04-27-2020 03:01 AM
Of course, yes, I have tried to use the http protocol, however this protocol when working by data pack does not allow me to transmit live video, I thought about segmenting the video and changing the data flow to binaries to be able to send them via http, However, I don't know how an idea could work?
04-27-2020 08:16 AM
I'm assuming (because you failed to attach your VI/Project so that we could see what you were doing) that you have a simple myRIO project that uses IMAQdx to acquire video from a connected USB camera and display it via the connection to a Host PC on the PC's display.
Just for the moment, let us forget about Video and about myRIO and ask, "Can LabVIEW be used to send data to a Website?" A quick search of the Web seems to say that the answer is "Yes", and methods have been available for over a decade. However, at the present time, it appears to be quite difficult, particularly image data (such as something called "Remote Front Panel", where you can view the Front Panel of a running LabVIEW program over the Web).
My understanding is that LabVIEW NXG has, or is promising, this ability. I've tried to do this with "Classic" LabVIEW, and in very limited cases (e.g. my home network), I've had some partial success, but it is very challenging, and clearly "not ready for Prime Time".
Bob Schor
04-27-2020 10:42 AM
Not a simple thing to do. When you say your MyRIO is connected to a webpage what do you mean. Have you got a webserver running which has a webpage that you want your video feed to be visible on or are you trying to do something else.
I probably wouldn't try and do the encoding with LabView. I know you can use VLC as a streaming server, and you can do this from the command line within LabView using System Exec.
https://wiki.videolan.org/Documentation:Advanced_Use_of_VLC/#Stream_Output