tikskit
tikskit

Reputation: 339

How do I store video from VLC to a file?

I use Delphi and I need to capture video from IP camera and store it to a file. I use TVLCPlugin (ActiveX component from VLC).

p: TVLCPlugin;
***
procedure TForm1.Button1Click(Sender: TObject);
var
  Options: OleVariant;
begin
  Options := ':sout=#duplicate{dst=display,dst=std{access=file,mux=asf,dst=D:\job\Camera\zzz.mpg}}';
  p.addTarget(
    'http://...', //MRI
    Options,
    VLCPlayListInsert, 0);
  p.play;
end;

So I can see video on the form, but it doesn't store it to the file. Can anyone help me to set the options correctly?

Thanks in advance!

Upvotes: 2

Views: 1732

Answers (2)

Shaun07776
Shaun07776

Reputation: 1052

Have you looked at TVideoGrabber

http://www.datastead.com/products/tvideograbber/overview.html

Upvotes: 2

Stijn Sanders
Stijn Sanders

Reputation: 36840

Do you need to display the video feed? If you don't, you could just download the HTTP feed using one of the ways to do a HTTP request in Delphi, e.g. with Indy's TIdHTTP.

Upvotes: 0

Related Questions