Page 1 of 1

Problem specifying MRL string (C#)

Posted: 11 Oct 2007 17:10
by LEM
Hi,

I'm using C# for calling VLC and it works fine, but it doesn't execute the transcode part.
This is what I do:

axVLCPlugin1.addTarget("http://127.0.0.1:1234 :sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=\"C:\\test.mp4\"}}", null, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0);
axVLCPlugin1.play();


When I do that, it will connect and I can see the video, but it's not saved to the file.
However, if I run VLC from the command line like this:

vlc -vvv http://127.0.0.1:1234 :sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst="C:\test.mp4"}}

It works fine, so my MRL is correct.

Any ideas what I'm missing?

Thanks

Re: Problem specifying MRL string (C#)

Posted: 11 Oct 2007 17:51
by Jean-Baptiste Kempf
escaping some characters maybe ?

Re: Problem specifying MRL string (C#)

Posted: 11 Oct 2007 23:03
by LEM
I did that too.
Still doesn't work...

Re: Problem specifying MRL string (C#)

Posted: 12 Oct 2007 15:49
by MuNk
your are placing the MRL wrongly.....


addTarget(URL:WideString, Options:OldVarient, Mode: OleEnum, Position:Integer);

URL : File Path, eg. dvd://f: , c:\movei.avi , http://ip/;playlist.nsv
Options: MRL
Mode: VLCPlayListInsert = 0x1;
VLCPlayListInsertAndGo = 0x9;
VLCPlayListReplace = 0x2;
VLCPlayListReplaceAndGo = 0xA;
VLCPlayListAppend = 0x4;
VLCPlayListAppendAndGo = 0xC;
VLCPlayListCheckInsert = 0x10;
Position: -1 start, 0 or End of List.

You place MRL's in Options otherwise you fill it with a Delphi( OldVarient ) / C++ /C# ( null )

Re: Problem specifying MRL string (C#)

Posted: 12 Oct 2007 16:49
by LEM
Thanks a lot, MuNk. It works now.