Would anybody know if there is a component / code to enable reading an mjpeg stream from a http camera to a Lazarus form/panel (or anything really)
Dont mind installing libraries etc -
Looking to suit Linux specifically though
Thanks - SteveG

Mailing lists / lazarus / 2023-07
8 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Would anybody know if there is a component / code to enable reading an mjpeg stream from a http camera to a Lazarus form/panel (or anything really)
Dont mind installing libraries etc -
Looking to suit Linux specifically though
Thanks - SteveG
I would try the VLC player component:
https://wiki.freepascal.org/Video_Playback_Libraries http://lazplanet.blogspot.com/2018/01/how-to-make-simple-video-player-in.html
VLC can open a video stream from a RTSP camera.
Ondrej
Would anybody know if there is a component / code to enable reading an mjpeg stream from…
vlc can play media streams, so I think Libvlc can be used for this. The lazvlc.lpk contains a component that encapsulates vlc, it's just a matter of feeding it the correct url.
Michael.
Would anybody know if there is a component / code to enable reading an mjpeg stream from…
I have been using PasLibVlc from here:
https://prog.olsztyn.pl/paslibvlc/
in order to read/display/navigate mp4 video files in an editing application I wrote a number of years ago.
It works very well on both Windows and Linux (Ubuntu and RaspberryPiOS). The only requirement I am aware of is that VLC must be installed on the development (and host) machines.
It is a bit old now (last update from 2020-07-05), but works just fine for me.
Would anybody know if there is a component / code to enable reading an mjpeg stream from…
Thank you all -
exactly what I was hoping for - possibilities to follow :)
I will post if / once I get it figured as may be useful to others
I have written a (very) small unit to capture stream from esp32-cam (currently) and display in standard Lazarus TImage. First draft allows multiple cams / images.
What is the accepted way of supplying for use by others ? - do we have a central place for snippets / units for Pascal / Lazarus.
I know about CCR etc, but this is a bit small for that :) - so not sure what to do with it.
Have considered github, but seems overkill for such a small offering (and no guarantees it would always exist)
Regard - SteveG
I am interested in your solution.
If the unit uses the Lazarus-included lazvlc.lpk (or any other solution included in FPC/Lazarus), I would store it in the examples folder within Lazarus main:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/examples
Please either create an issue in Lazarus gitlab and send the code there or send me the example as zipped file and I will upload it to examples.
Thanks,
Ondrej
Just to make sure: do you show a real-time video stream in TImage or do you just extract a single frame from the camera one by one?
Ondrej