PlayVideoFile method of RvCamera stoped work correctly since 7.3.3 version.
RvCamera plays file once and then if open file(any other file too) again it does not play. In version 7.3.2 all works well.
Demo for the test(has 2 exe file: working and not)
https://drive.google.com/file/d/1_KP0V- ... sp=sharing
PlayVideoFile Bug
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: PlayVideoFile Bug
Oops. This bug is still not fixed. Expect an update soon.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: PlayVideoFile Bug
Fixed in version 7.5.1
-
- Posts: 22
- Joined: Thu Dec 03, 2009 11:58 am
- Location: HUll, UK
- Contact:
Re: PlayVideoFile Bug
It is working.
It's important to use this kind of sequence when using video:
procedure TfrmMain.Button_choosevideoClick(Sender: TObject);
begin
//
if opendialog2.execute then
begin
rvcamera1.abort;
rvcamera1.SourceFileName := opendialog2.FileName;
rvcamera1.PlayVideoStream;
end;
end;
But - playing just the video picture is no good without the sound. How is it possible to get the sound to stream at the same time? Is it possible?
It's important to use this kind of sequence when using video:
procedure TfrmMain.Button_choosevideoClick(Sender: TObject);
begin
//
if opendialog2.execute then
begin
rvcamera1.abort;
rvcamera1.SourceFileName := opendialog2.FileName;
rvcamera1.PlayVideoStream;
end;
end;
But - playing just the video picture is no good without the sound. How is it possible to get the sound to stream at the same time? Is it possible?
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: PlayVideoFile Bug
MJPEG cannot contain sound, it is just a sequence of JPEG images.
For playing more advanced video formats, you can use DeviceType = rvdtFile, assign SourceFileName, call PlayVideoStream.
By default, RVCamera uses FFmpeg for playing videos in this settings, without sound.
You can switch to DirectX playing by assigning FFMpegProperty.UseFFmpeg = False. Sound will be played on the default device, but cannot be sent or processed.
In future, we plan to add sound support for FFmpeg, but I cannot tell when it will be implemented, sorry.
For playing more advanced video formats, you can use DeviceType = rvdtFile, assign SourceFileName, call PlayVideoStream.
By default, RVCamera uses FFmpeg for playing videos in this settings, without sound.
You can switch to DirectX playing by assigning FFMpegProperty.UseFFmpeg = False. Sound will be played on the default device, but cannot be sent or processed.
In future, we plan to add sound support for FFmpeg, but I cannot tell when it will be implemented, sorry.