VideoLan.Interop a .Net libvlc 0.9.x wrapper

This forum is about all development around libVLC.
SteveRicketts
Blank Cone
Blank Cone
Posts: 53
Joined: 29 May 2008 00:10

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby SteveRicketts » 10 Jan 2010 22:55

Nicely done wrapper! I just downloaded the wrapper and built it into a .dll using VS 2008 on 64 bit Vista Business. I'm using 1.0.3 and passing the wrapper an http url stream, it works very well. Events kick up nicely and really no problem at all... except copying the .dll's and plugin's everywhere.

My question is (and I'm sure I'll find out at some point when I try to run this on another computer), will the wrapper find the installed files rather than having them with the .dll (or .exe)? I tried :

VlcFolder = @"c:\program files (x86)\VideoLAN\VLC";
Vlc = new VideoLanClient(VlcFolder);

But it didn't seem to work. All I had was a black screen. So, I put the VLC dll's and plugin directory into the debug folder, pointed VideoLanClient to that folder, and it worked fine. What will happen if I just install my software and the VideoLan.Interop.dll?

Thanks,

Steve

rikki233752
New Cone
New Cone
Posts: 2
Joined: 15 Jan 2010 08:49

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby rikki233752 » 15 Jan 2010 09:25

hi

when i am running the sample of videolan.interop i am getting this error

: Unable to find an entry point named 'libvlc_media_list_new' in DLL 'libvlc'.


please help

rarao
Blank Cone
Blank Cone
Posts: 11
Joined: 18 Apr 2009 09:18

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby rarao » 25 Jan 2010 07:34

What is the command to change the subtitle track using libvlc. I am using the C# wrapper.

socialjazz
Blank Cone
Blank Cone
Posts: 17
Joined: 19 May 2009 09:14

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby socialjazz » 24 Mar 2010 07:53

Is there anymore update on development of this wrapper?
This is a very nice wrapper, easy to use and it will be a waste if this is no longer maintained

drixs
New Cone
New Cone
Posts: 2
Joined: 14 Jul 2010 05:23

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby drixs » 14 Jul 2010 10:49

hi all,

how to make a broadcast sender and receiver over http using this wrapper??
please help..

garlantinapple
New Cone
New Cone
Posts: 9
Joined: 14 Jul 2010 06:02
VLC version: windows
Operating System: windows
Location: USA
Contact:

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby garlantinapple » 15 Jul 2010 09:18

Getting vlc to render in wpf is my primary goal. The project I work on, MeediOS, is 99% WPF. The 1% is a WinFormsHost with a panel that we use to render vlc on.

mickysailing
New Cone
New Cone
Posts: 1
Joined: 17 Aug 2010 19:21
Operating System: Windows, Linux
Location: Sarzana - Italy
Contact:

Re: VideoLan.Interop a .Net libvlc 1.0.x wrapper

Postby mickysailing » 19 Aug 2010 12:48

Hi,
I was using VLC version 1.0.x with C# wrapper VideoLan.Interop.dll by kairos (version 1.0.0).

My project run correctly on Windows and, in general, on linux using mono 2.6.7 in ubuntu 10.04, but when I "launch" an "embeded vlc" it's video is displayed in a separate "XVideo" window.

Does anyone know how to solve this problem?

many thanks!

Michele

socialjazz
Blank Cone
Blank Cone
Posts: 17
Joined: 19 May 2009 09:14

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby socialjazz » 23 Aug 2010 10:30

Does the developer plan to port this source to the new 1.1.x version of VLC?

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 29 Oct 2010 23:34

Hi
I'm very new to vlc.
I downloaded vlc wrapper 1.0 and I can't start it
give me this error
"Unable to find an entry point named 'libvlc_exception_init' in DLL 'libvlc'."
same problem with 0.9
what can be the problem ?

Thanks!

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 30 Oct 2010 19:43

can help me with http audio streaming ?

I have this code :

Code: Select all

Vlc = new VideoLanClient(".", Options); VlcPlayer = Vlc.NewMediaPlayer(VideoPanel.Handle); string fileName = "C:\\www\\sound.mp3"; VlcMedia desc1 = Vlc.NewMedia(fileName); desc1.AddOption(@":no-video"); desc1.AddOption(@":sout=#transcode{acodec=mp3,ab=128}"); desc1.AddOption(@":std{access=http,mux=dummy,dst=:4567/stream.mp3}"); VlcPlayer.Load(desc1); VlcPlayer.Play();
I tryed all the ways but don't start streaming.
What is the solution?

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 30 Oct 2010 20:11

I also tryed this settings for VideoLanClient without succes

Code: Select all

string[] Options = new string[]{ @"--no-video", @"--sout-transcode-acodec=mp3", @"--sout-transcode-ab=128", @"--sout-standard-access=http", @"--sout-standard-mux=dummy", @"--sout-standard-dst=:4567/stream.mp3"};

faheemnadeem
New Cone
New Cone
Posts: 6
Joined: 01 Dec 2009 10:49

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby faheemnadeem » 31 Oct 2010 00:46

hi,
You have to put the plugins folder and libvlc.dll files to the runtime directory. You can also change the demo application to take the default vlc folder installation path to acquire the plugins.
Hope it helps!!!
Bye

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 31 Oct 2010 21:57

can you share to me a functional streaming application
I've put plugins but don't work
this is my project which don't work

http://hotfile.com/dl/79620143/8629c68/ ... m.zip.html

Thanks !

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby XilasZ » 02 Nov 2010 13:52

I can't take a look at your project right now, but did you manage to play a stream or any media with your project ? (see if libvlc and the plugins load or not).

And which version of libvlc do you use ?
Because wrapper 0.9 works with libvlc 0.9, wrapper 1.0 works with libvlc 1.0, and both doesn't work with the latest version of libvlc (1.1.x), where libvlc_exception_init have been removed.

Edit:
i just checked your project, you use libvlc 1.0 and an example player, i guess it works for playing a media.
By the way, you tried ":sout=..." and "--sout=...", but did you tried "sout=..." ?

i use this, and it works perfectly :

Code: Select all

AddOption("sout=#duplicate{dst=display,dst=std{access=file,mux=ts,dst=\"recording.ts\"}}")

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 02 Nov 2010 17:36

Solved !

Code: Select all

Options = new string[]{ //audio mp3 @"--no-sout-video", @"--sout=#transcode{acodec=mp3,ab=128}:standard{access=http,mux=dummy,dst=:" + Port + "}"};
Thanks for help!

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby XilasZ » 03 Nov 2010 11:30

So what was the issue ?

reynolds87
New Cone
New Cone
Posts: 6
Joined: 29 Oct 2010 23:13

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby reynolds87 » 05 Nov 2010 18:31

wrong command line argumets

LJ_Ingo
New Cone
New Cone
Posts: 2
Joined: 04 Jan 2012 18:17

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby LJ_Ingo » 04 Jan 2012 18:22

Hi!

Thanks for the lib!
Is there a problem with thread safety if I use multiple threads with each one controlling only an own player? Should work, shouldn't it?

Ingo

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

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby Rémi Denis-Courmont » 04 Jan 2012 21:07

It should work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

LJ_Ingo
New Cone
New Cone
Posts: 2
Joined: 04 Jan 2012 18:17

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby LJ_Ingo » 05 Jan 2012 16:39

Okay thanks.

ernie-c
New Cone
New Cone
Posts: 2
Joined: 25 Mar 2012 23:39

Re: VideoLan.Interop a .Net libvlc 0.9.x wrapper

Postby ernie-c » 12 Apr 2012 23:51

Hi, I'm trying to do livehttp from the lib, but I'm always getting the timeout right after the play. (tested ok with another transcode )
Maybe livehttp is not supported ? Anyone ? Thx

Code: Select all

string playerOutputConfig = @":sout=#transcode{vcodec=h264,acodec=mp3,vb=2000,scale=0.5,ab=48}:standard{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=c:\temp\stream.m3u8,index-url=stream-########.ts},mux=ts,dst=c:\temp\stream-########.ts}"; VlcMediaLibraryFactory factory = CreateVlcMediaLibraryFactory(); VlcSinglePlayer playerStream = (VlcSinglePlayer)factory.CreatePlayer(new PlayerOutput(playerOutputConfig)); try { playerStream.SetMediaInput(new MediaInput(MediaInputType.File, file)); playerStream.Play(); ...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests