Page 1 of 1
ActiveX and Stream Recording
Posted: 03 Mar 2006 04:59
by TheWinner
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
Posted: 03 Mar 2006 08:26
by Walter
copy ":sout= XXX......" from VLC application, like windows one, choose stream output, it will generate a string for different selection.
Posted: 03 Mar 2006 10:49
by usbhell
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
Posted: 03 Mar 2006 13:13
by TheWinner
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
Posted: 03 Mar 2006 14:20
by usbhell
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}}")
Posted: 03 Mar 2006 15:15
by TheWinner
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
with just VLC
Posted: 20 Mar 2006 21:33
by jason_meyer
How do I do the same thing with just VLC?
Re: ActiveX and Stream Recording
Posted: 22 Apr 2006 13:20
by Guest
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