EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: areaDetector driver for webcams?
From: Hinko Kocevar <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 30 Aug 2018 12:03:45 +0000
Hi Mark,

I have the code on another computer, will send it later on.
What I tried to do is take the QThread::run() code and plug it into URLDriver. I have decoding of mjpeg into jpegs functioning, but have not pursued fully functional driver with all the bells and whistles as proper ADDriver should have..

Cheers,
Hinko
 
-- 
Hinko Kocevar
Beam Diagnostics Engineer
European Spallation Source ERIC
P.O Box 176, SE-221 00 Lund, Sweden
Visiting address: Odarslövsvägen 113, 224 84 Lund
Mobile: +46-721-79 22 58
Phone:  +46-46-888 32 58
Web:    www.esss.se
 

On 2018-08-30 14:00:01+02:00 Mark Rivers wrote:

?Hinko wrote:


I have some alpha code for taking mjepg from an IP webcam and producing jpegs inside the URLDriver, but I have not fully implement and test it yet due to the lack of time.


By strange coincidence I received the following query from Peter Heesterman yesterday:


Hi Mark,



Could we discuss this?



I now have a second (cheep'n'cheerful) security camera.

It's a Vstarcam C23S<http: www.vstarcam.com="" vstarcam-c23s-1080p-mini-ip-camera-194.html="">, alongside my earlier Panasonic BL-VP101<https: security.panasonic.com="" products="" bl-vp101=""></https:>.



These type of IP cameras usually work with video streaming data (i.e. motion jpeg).



I'm not able to get the newer camera to work with the ADURL module, as it has no 'snap shot' (i.e. single frame) mode.



The older camera works perfectly when using its 'snap shot' mode.

It also has 'streaming mode' (which, likewise, doesn't work with the ADURL module).



I could of course get a different camera, one that has 'snap shot' mode.



But it seems to me that streaming capability could be a valid usage for the module, and make it accessible for a wider range of cameras.



I don't think the existing code parses and paginates the data stream - which it would need to, for this to work.

I believe it just reads data, until the socket connection closes (which is never, in this case).



What do you think, is this a worthwhile objective to pursue?



Thanks,



Peter.




And my reply was:


Hi Peter,



That seems useful.  I don't know much about streaming, but my understanding is that there is both:

- mpeg which is compressed in space and time

- mjpeg which is compressed in space but not in time



Which type does the camera stream?



Mark


It seems like Peter should definitely start with whatever Hinko has already done, and that perhaps it could handle both the stream from an Ethernet Web camera and the stream from /dev/videoX as Bruno suggested.

Mark

________________________________
From: [email protected] <[email protected]> on behalf of Hinko Kocevar <[email protected]>
Sent: Thursday, August 30, 2018 3:15 AM
To: Bruno Martins
Cc: [email protected]; [email protected]; tech-talk
Subject: Re: areaDetector driver for webcams?

Hi Bruno,
You could maybe use ffmpeg, as ffmpegViewer does it, to convert video to series of jpegs.
It is can be found in the this QThread::run():

https://github.com/areaDetector/ffmpegViewer/blob/master/ffmpegWidget/ffmpegWidget.cpp#L110

I have some alpha code for taking mjepg from an IP webcam and producing jpegs inside the URLDriver, but I have not fully implement and test it yet due to the lack of time.

Hope this helps,
Hinko

On 29 Aug 2018, at 20:30, Bruno Martins <[email protected]<mailto:[email protected]>&gt; wrote:

I think Axis webcams export their images on a webpage. I am looking for something to read off of a USB Webcam (that ends up showing up as /dev/videoX on Linux).

Bruno

On Wed, Aug 29, 2018 at 2:27 PM Mark Engbretson <[email protected]<mailto:[email protected]>&gt; wrote:
ADURL reads from webcams such as those from Axis.


From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>&gt; On Behalf Of Bruno Martins
Sent: Wednesday, August 29, 2018 1:24 PM
To: tech-talk <[email protected]<mailto:[email protected]>&gt;
Cc: [email protected]<mailto:[email protected]>
Subject: areaDetector driver for webcams?

Hi everyone,
Has anyone developed an areaDetector driver that reads from /dev/videoX on Linux?
Thanks!

Bruno
</mailto:[email protected]></[email protected]<mailto:[email protected]></[email protected]<mailto:[email protected]></mailto:[email protected]></[email protected]<mailto:[email protected]></[email protected]<mailto:[email protected]></[email protected]></[email protected]></http:>

References:
areaDetector driver for webcams? Bruno Martins
RE: areaDetector driver for webcams? Mark Engbretson
Re: areaDetector driver for webcams? Bruno Martins
Re: areaDetector driver for webcams? Hinko Kocevar
Re: areaDetector driver for webcams? Mark Rivers

Navigate by Date:
Prev: Re: areaDetector driver for webcams? Mark Rivers
Next: areaDetector driver for webcams? Gofron, Kazimierz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: areaDetector driver for webcams? Mark Rivers
Next: areaDetector driver for webcams? Gofron, Kazimierz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 30 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·