ActiveX and Stream Recording

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
TheWinner
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2006 04:54

ActiveX and Stream Recording

Postby TheWinner » 03 Mar 2006 04:59

Hello,

I am trying to record a MPEG4 stream to any file. But I could not find any examples in the forums. If you have any sample source( visual basic or c#), could you post it here ? I think I have to change only Vopt in the source code.

My Code is
VLCPlugin1.addTarget "rtsp://169.254.20.234/mpeg4/1/media.amp", Vopt, VLCPlayListInsertAndGo, 0

But I don't know what must be written to Vopt variable.
Vopt = ":sout=#transcode ..........................

Thanks
Berk

Walter

Postby Walter » 03 Mar 2006 08:26

copy ":sout= XXX......" from VLC application, like windows one, choose stream output, it will generate a string for different selection.

usbhell
Blank Cone
Blank Cone
Posts: 18
Joined: 13 Jan 2006 13:11

Postby usbhell » 03 Mar 2006 10:49

Walter's suggestion is the best way to get the string I think (file->open file, tick the stream output box and click on settings).

2 of my favourites are

Code: Select all

:sout=#duplicate{dst=display,dst=std access=file,mux=ts,url=movie.ts}}
and

Code: Select all

:demux=dump

TheWinner
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2006 04:54

Postby TheWinner » 03 Mar 2006 13:13

Hello,

Thank you for the answers. But I keep getting the error message when I try to use the following line from Videolan

Dim Vopt As String
Vopt = ":sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=file,mux=mov,url=""c:\video.mov""}}"
VLCPlugin1.addTarget "rtsp://169.254.20.234/mpeg4/1/media.amp", Vopt, VLCPlayListInsertAndGo, 0

I read the forum, it is written that I should get rid of duplicate{}. But I don't know how

Thanks
Berk

usbhell
Blank Cone
Blank Cone
Posts: 18
Joined: 13 Jan 2006 13:11

Postby usbhell » 03 Mar 2006 14:20

I think its something like this, you need to make it an array of strings I believe.
Dim Vopt() As Variant
Vopt() = Array(":sout=#transcode vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std access=file,mux=mov,url=video.mov}}")

TheWinner
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2006 04:54

Postby TheWinner » 03 Mar 2006 15:15

Yes, you are right. I used Vopt as not string but array of string then it worked perfectly.

Code: Select all

Dim Vopt(1) As String Vopt(0) = ":sout=#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ps,url=c:\berk.mpg}}" VLCPlugin1.addTarget "rtsp://169.254.20.234/mpeg4/1/media.amp", Vopt, VLCPlayListInsert, 0

jason_meyer
New Cone
New Cone
Posts: 3
Joined: 20 Mar 2006 21:25
Location: San Jose CA

with just VLC

Postby jason_meyer » 20 Mar 2006 21:33

How do I do the same thing with just VLC?

Guest

Re: ActiveX and Stream Recording

Postby Guest » 22 Apr 2006 13:20

Hello,

I am trying to record a MPEG4 stream to any file. But I could not find any examples in the forums. If you have any sample source( visual basic or c#), could you post it here ? I think I have to change only Vopt in the source code.

My Code is
VLCPlugin1.addTarget "rtsp://169.254.20.234/mpeg4/1/media.amp", Vopt, VLCPlayListInsertAndGo, 0

But I don't know what must be written to Vopt variable.
Vopt = ":sout=#transcode ..........................

Thanks
Berk


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests