Page 1 of 1

how to record with libvlc?

Posted: 20 May 2009 04:15
by dl_sfl
hi, i'm a new, i want to know how to record a stream into file? i use ActiveX Plugin and write follow delphi code:

VLCPlugin1 := TVLCPlugin2.Create(Self);
VLCPlugin1.Parent := Self; // Means: Place the VLC-Player into Form1
VLCPlugin1.Width := 400;
VLCPlugin1.Height := 300;
VLCPlugin1.Top := 50;
VLCPlugin1.Left := 50;
VLCPlugin1.Show;
VLCPlugin1.playlist.add(uri, '', 'sout=#duplicate{dst=display,dst=std{access=file,dst=c:/u.ts}}');
VLCPlugin1.playlist.play;

but it's not work, how can i do?

Re: how to record with libvlc?

Posted: 20 May 2009 19:38
by Rémi Denis-Courmont
The ActiveX plugin has record disabled for obvious security reasons.

Re: how to record with libvlc?

Posted: 21 May 2009 10:00
by dl_sfl
oh thanks.

One more question: For libvic.dll that ver is 0.9.9, I can play the video with libvic_new now. But how to record that video while playing?

Re: how to record with libvlc?

Posted: 05 Jun 2009 23:05
by tamiro44
Did you get an answer?

Re: how to record with libvlc?

Posted: 08 Oct 2009 15:32
by mortechsystems
Do I presume recording is imposible with VLC when using activex type library?
Is there anyway to get recording to work? I would be happy to pay a reasonable price for the delphi 2007 VLC type library source.
Or have I misunderstood the remark that it is disabled for security reasons?

Cheers
David

Re: how to record with Delphi and activex

Posted: 12 Oct 2009 14:31
by mortechsystems
I thought I d try one more time
Has anybody got any example delphi code exampe or syntax on use of Delphi to record a dvb-t stream.
I have tried everything except the one that works.

Here is a snippet of what I am doing presumably wrong.

VLCPlugin1.addTarget('dvb-t://frequency=' + adoqrychannels.fieldbyname('freq').asstring + ' dvb-bandwidth=7,' + 'dst=display, sout=#duplicate{dst=std{access=file,mux=ps,dst=c:\videos\TV.ps}}', null, VLCPlayListInsert, 0);

Everything works up to dvb-bandwidth=7 for playback.

The record is the problem.

I can use the VLC GUI in windows No Problems.

The syntax is somewhat different when passing to the addtarget in Delphi.

I worked out we do not need the : symbol before the dvb entry as the compiler puts it in anyway.
Just cannot see the wood for the trees with this one.
Any ideas. PLEASSSSSSSSSSSSSSSSEEEEEEEEEE

Cheers David

Re: how to record with libvlc?

Posted: 12 Oct 2009 17:34
by Rémi Denis-Courmont
Record with ActiveX is purposedly not possible. You need to talk directly to LibVLC.

Re: how to record with libvlc?

Posted: 14 Oct 2009 06:16
by mortechsystems
Sorry to be an annoyance to the master programmers.

This is what I suspected. Is this due to certification issues from MIcrosoft? Not being able to record the stream? I understand why if that is the case.

Is there a Delphi component that I can buy to get a codec to write to file with libvlc?

Or is there a Delphi type library that will do the trick.

Cheers
David

Re: how to record with libvlc?

Posted: 14 Oct 2009 11:40
by mortechsystems
Are there any examples in delphi to access libvlc directly?

David

Re: how to record with libvlc?

Posted: 14 Oct 2009 17:54
by Rémi Denis-Courmont
This has nothing to do with certifications. It's an obvious and trivial security problem.

Re: how to record with libvlc?

Posted: 15 Oct 2009 02:51
by mortechsystems
I will try to make it work with 0.99 version
might do better
David

Re: how to record with libvlc?

Posted: 03 Jul 2010 08:31
by Veaking
"--sout=#duplicate{dst=std{access=file,mux=ps,dst=c:/videos/TV.ps}}"