Doesn't capture video stream

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
Egorko
Posts: 3
Joined: Tue Mar 12, 2024 7:44 am

Doesn't capture video stream

Post 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?
Attachments
WebCamera_2024-03-12_14-59-18.png
WebCamera_2024-03-12_14-59-18.png (11.74 KiB) Viewed 3462 times
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Doesn't capture video stream

Post 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?
Egorko
Posts: 3
Joined: Tue Mar 12, 2024 7:44 am

Re: Doesn't capture video stream

Post 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).
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Doesn't capture video stream

Post 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.
Egorko
Posts: 3
Joined: Tue Mar 12, 2024 7:44 am

Re: Doesn't capture video stream

Post by Egorko »

I checked. Everything is working. Thank you!
Post Reply