Problem specifying MRL string (C#)

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
LEM
Blank Cone
Blank Cone
Posts: 18
Joined: 04 Oct 2007 16:22

Problem specifying MRL string (C#)

Postby LEM » 11 Oct 2007 17:10

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
Last edited by LEM on 11 Oct 2007 23:03, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problem specifying MRL string (C#)

Postby Jean-Baptiste Kempf » 11 Oct 2007 17:51

escaping some characters maybe ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

LEM
Blank Cone
Blank Cone
Posts: 18
Joined: 04 Oct 2007 16:22

Re: Problem specifying MRL string (C#)

Postby LEM » 11 Oct 2007 23:03

I did that too.
Still doesn't work...

MuNk
Blank Cone
Blank Cone
Posts: 12
Joined: 11 Oct 2007 22:20

Re: Problem specifying MRL string (C#)

Postby MuNk » 12 Oct 2007 15:49

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 )

LEM
Blank Cone
Blank Cone
Posts: 18
Joined: 04 Oct 2007 16:22

Re: Problem specifying MRL string (C#)

Postby LEM » 12 Oct 2007 16:49

Thanks a lot, MuNk. It works now.


Return to “Web and scripting”

Who is online

Users browsing this forum: Google [Bot] and 12 guests