how to record with libvlc?

This forum is about all development around libVLC.
dl_sfl
New Cone
New Cone
Posts: 2
Joined: 20 May 2009 03:44

how to record with libvlc?

Postby dl_sfl » 20 May 2009 04:15

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to record with libvlc?

Postby Rémi Denis-Courmont » 20 May 2009 19:38

The ActiveX plugin has record disabled for obvious security reasons.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dl_sfl
New Cone
New Cone
Posts: 2
Joined: 20 May 2009 03:44

Re: how to record with libvlc?

Postby dl_sfl » 21 May 2009 10:00

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?

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

Re: how to record with libvlc?

Postby tamiro44 » 05 Jun 2009 23:05

Did you get an answer?

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: how to record with libvlc?

Postby mortechsystems » 08 Oct 2009 15:32

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

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: how to record with Delphi and activex

Postby mortechsystems » 12 Oct 2009 14:31

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to record with libvlc?

Postby Rémi Denis-Courmont » 12 Oct 2009 17:34

Record with ActiveX is purposedly not possible. You need to talk directly to LibVLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: how to record with libvlc?

Postby mortechsystems » 14 Oct 2009 06:16

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

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: how to record with libvlc?

Postby mortechsystems » 14 Oct 2009 11:40

Are there any examples in delphi to access libvlc directly?

David

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to record with libvlc?

Postby Rémi Denis-Courmont » 14 Oct 2009 17:54

This has nothing to do with certifications. It's an obvious and trivial security problem.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: how to record with libvlc?

Postby mortechsystems » 15 Oct 2009 02:51

I will try to make it work with 0.99 version
might do better
David

Veaking
New Cone
New Cone
Posts: 2
Joined: 03 Jul 2010 08:01

Re: how to record with libvlc?

Postby Veaking » 03 Jul 2010 08:31

"--sout=#duplicate{dst=std{access=file,mux=ps,dst=c:/videos/TV.ps}}"


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 18 guests