Recent

Author Topic: Reading video from stream  (Read 2538 times)

Dzandaa

  • New Member
  • *
  • Posts: 32
Reading video from stream
« on: November 19, 2021, 10:48:44 am »
Hi everybody
Using Lazarus Pascal 2.0.12 on Windows 7 64 bits.

Migrating my programs from C# to Lazarus.

I have a link to a Webcam like
http://192.168.1.10:6521/stream
I can display it in Firefox without problem and
also with a C# program i wrote.

Is this a way to do the same with Pascal Lazarus?
Using LazVLC or another library?
Example welcome :)

Thank you.

Zvoni

  • Hero Member
  • *****
  • Posts: 849
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Dzandaa

  • New Member
  • *
  • Posts: 32
Re: Reading video from stream
« Reply #2 on: November 19, 2021, 02:15:26 pm »
Hi,

Thank you, but I'm not a big fan of OpenCV and it wrappers.
That is an old version (2.4.13) and the current is 4.5.4.

Looking for another solution...

But I'm not sure it is possible with Lazarus...

I use Accord in C# but I didn't find an equivalent in Lazarus.

Thank you anyway.


af0815

  • Hero Member
  • *****
  • Posts: 846
Re: Reading video from stream
« Reply #3 on: November 19, 2021, 02:52:38 pm »
DirectShow should work with windows and Lazarus. I am working with DirectShow with Logitech and professional USB Kameras, only the maximum resoloution is limited, so no 4k posssible.

regards
Andreas

Dzandaa

  • New Member
  • *
  • Posts: 32
Re: Reading video from stream
« Reply #4 on: November 19, 2021, 03:52:10 pm »
Hi again,

I already have a Windows solution written in C# with object detection, record, snapshot, time lapse, etc...

What I'm looking for is a Lazarus portable solution to be able to transfer it to Linux and Mac.

I have a handmade IP Camera with an ESP32, capable of streaming and I tried to adapt my programs
to Linux and Mac.

As C# with Winform doesn't work on Linux, I'm trying Lazarus to do the same, but it's not easy  :).

Thank you anyway :)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1089
Re: Reading video from stream
« Reply #5 on: November 19, 2021, 04:20:18 pm »
hello,
for multiplateform, you can try TMplayerControl or TpasLibVlcPlayer  or ffmpeg.
Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Dzandaa

  • New Member
  • *
  • Posts: 32
Re: Reading video from stream
« Reply #6 on: November 28, 2021, 01:04:11 pm »
Thank you everybody,

I solve the problem by getting pictures from the Camera in a thread.
Not as smart than a stream, but it's working and does not depend of external library.

 

TinyPortal © 2005-2018