Snapshot from an axis ip camera stream doesn't work
Snapshot from an axis ip camera stream doesn't work
I have a registered version of RVMedia. I can connect to both USB webcams and axis image server streams as expected. Both streams are visible in the viewer component. However, I can only take snapshots from USB webcams. GetBitmap will also only work with USB webcams. I do not want to record at the full frame rate. Is there some othe way to extract frames periodically from an axis ip camera stream?
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Snapshot from an axis ip camera stream doesn't work
Do you have a viewer connected to this camera? If video from camera is not displayed or is not sent further, the component does not decode frames.
A workaround is assigning empty event handler for TRVCamera.OnGetImage event
A workaround is assigning empty event handler for TRVCamera.OnGetImage event
Re: Snapshot from an axis ip camera stream doesn't work
Thanks for your quick response. I do have a viewer connected and it works correctly for both the USB webcams and the axis image server. Getsnapshot provides excactly the functionality I need but I'll look at implementing something based on the new image event.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Snapshot from an axis ip camera stream doesn't work
Snapshots will be ok in the next version that we will upload soon. Until then, please use this event.
-
- Posts: 1
- Joined: Mon Sep 10, 2018 5:35 pm
Re: Snapshot from an axis ip camera stream doesn't work
Snapshot no work with XE7 y RVmedia, i test the follow metod, please your help.
procedure TVerPano.RVCamera2GetImage(Sender: TObject; img: TRVMBitmap);
begin
end;
procedure TVerPano.RVCamera2SearchComplete(Sender: TObject; Status: Integer);
begin
RVCamera2.PlayVideoStream;
end;
procedure TVerPano.SpeedButton1Click(Sender: TObject);
var
Img: TRVImageWrapper;
begin
Img := RVCamera2.GetSnapShot;
try
pbSnapShot.Canvas.Draw(0, 0, Img.Bitmap.GetBitmap);
finally
Img.Free;
end;
{ /// test with JVDimage no work
Img := RVCamera2.GetSnapShot;
JvDbImage1.Picture.Graphic := Img.Bitmap.GetBitmap;
Img.Free;
}
end;
procedure TVerPano.RVCamera2GetImage(Sender: TObject; img: TRVMBitmap);
begin
end;
procedure TVerPano.RVCamera2SearchComplete(Sender: TObject; Status: Integer);
begin
RVCamera2.PlayVideoStream;
end;
procedure TVerPano.SpeedButton1Click(Sender: TObject);
var
Img: TRVImageWrapper;
begin
Img := RVCamera2.GetSnapShot;
try
pbSnapShot.Canvas.Draw(0, 0, Img.Bitmap.GetBitmap);
finally
Img.Free;
end;
{ /// test with JVDimage no work
Img := RVCamera2.GetSnapShot;
JvDbImage1.Picture.Graphic := Img.Bitmap.GetBitmap;
Img.Free;
}
end;
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Snapshot from an axis ip camera stream doesn't work
Please re-test with RVMedia 6.0. It was uploaded today (and it's not yet announced).
You can re-run RVMedia installer, it can check for updates and download the new version.
You can re-run RVMedia installer, it can check for updates and download the new version.