PlayVideoFile Bug

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
Lol
Posts: 2
Joined: Thu Feb 20, 2020 2:09 pm

PlayVideoFile Bug

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

Re: PlayVideoFile Bug

Post by Sergey Tkachenko »

Oops. This bug is still not fixed. Expect an update soon.
Sergey Tkachenko
Site Admin
Posts: 17562
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: PlayVideoFile Bug

Post by Sergey Tkachenko »

Fixed in version 7.5.1
jimhawkins2
Posts: 22
Joined: Thu Dec 03, 2009 11:58 am
Location: HUll, UK
Contact:

Re: PlayVideoFile Bug

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

Re: PlayVideoFile Bug

Post 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.
Post Reply