Page 1 of 1

Doesn't capture video stream

Posted: Tue Mar 12, 2024 8:07 am
by Egorko
Hi.
I encountered a problem: when I select the MJPEG format, the video from the camera does not start. YUY2 is fine. Logi C270 HD camera, OS windows 10. RVMedia version 10. What could be wrong and how to fix it?

Re: Doesn't capture video stream

Posted: Tue Mar 12, 2024 3:56 pm
by Sergey Tkachenko
Do you use the full version or the trial version?
If the full version, can you check if the function TRVWebCam.SampleCB (MRVWinWebCamera.pas) is called?

Re: Doesn't capture video stream

Posted: Wed Mar 13, 2024 1:39 am
by Egorko
Yes, full. The function is called, returns 0. Inside the DoSampleCB subfunction processes with an error, except is called on the line "bmp.GetBitmap.Assign(jpeg);", error text: JPEG error #50 (added e.Message to see).

Re: Doesn't capture video stream

Posted: Wed Mar 20, 2024 2:05 pm
by Sergey Tkachenko
Summary:
I received a sample jpeg frame from the topic starter.
This is an unusual Jpeg, it cannot be read by Delphi classes (by TJpegImage in Vcl, and by TBitmap in FireMonkey).
But I found how to modify it to make it compatible, and it seems to work now.
I sent modified units to the topic starter for testing.

Re: Doesn't capture video stream

Posted: Thu Mar 21, 2024 9:40 am
by Egorko
I checked. Everything is working. Thank you!