Page 1 of 1

PlayVideoFile Bug

Posted: Fri Jul 03, 2020 2:22 pm
by Lol
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

Re: PlayVideoFile Bug

Posted: Wed Aug 12, 2020 1:38 pm
by Sergey Tkachenko
Oops. This bug is still not fixed. Expect an update soon.

Re: PlayVideoFile Bug

Posted: Fri Aug 14, 2020 12:17 pm
by Sergey Tkachenko
Fixed in version 7.5.1

Re: PlayVideoFile Bug

Posted: Tue Aug 25, 2020 3:55 pm
by jimhawkins2
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?

Re: PlayVideoFile Bug

Posted: Wed Aug 26, 2020 10:32 am
by Sergey Tkachenko
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.