Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

VLC.DotNet Direct Show #234

Closed
salihkaragoz opened this issue Mar 7, 2017 · 14 comments
Closed

VLC.DotNet Direct Show #234

salihkaragoz opened this issue Mar 7, 2017 · 14 comments

Comments

@salihkaragoz
Copy link

salihkaragoz commented Mar 7, 2017

First Question: Does VLC.DotNet support the dshow:// stream with mp3 codec ????

Hello everyone,

I can not start the direct show. This is my codes.

myVlcControl.Play("dshow://");
myVlcControl.Play(new Uri("dshow://"));

I added the only dshow:// because I think the other options will be the default. Is there anyone who succeed the direct show with VLC.dotnet project?

I think my problem is about Vlc.dotnet options. not about VLC options syntax. Please do not close my issue.
If you close my issue, please say it is possible with Vlc.dotnet.

I think It takes not too much time for experts. Please write a little comment about that issue.

@salihkaragoz
Copy link
Author

salihkaragoz commented Mar 8, 2017

Hello everyone, As soon as I've solved the problem. The problem is compiling with x64 architectural. When I was compiled with x86 architectural, The problem solved.

I don't know this is a bug or not.

@mahdi87gh
Copy link

@salihkaragoz Please share your code, I keep getting this error: Media instance is not initialized.'

vlc.Play(@"dshow:// :dshow-adev=""Desktop Microphone(Microsoft® LifeCam Studio(TM))"" :dshow-vdev=""Microsoft® LifeCam Studio(TM)"" :live-caching=500");

@salihkaragoz
Copy link
Author

Same as above.

@mahdi87gh
Copy link

mahdi87gh commented Sep 6, 2017

If I set to x86 I get error. If x64 there is no error but nothing is playing. Which version are you using?

@salihkaragoz
Copy link
Author

salihkaragoz commented Sep 6, 2017

(Vlc.DotNet.XXX 2.1.15. which is current) I think you've downloaded from github repo. Its old. Arc type has been updated. You should use Nuget for getting package. In the new version of Vlc.dotnet there is no architectural. Only "Any Cpu" and it works both architectural. #288

@mahdi87gh
Copy link

Thanks man, Now I'm getting %1 is not a valid Win32 application error. nuget will have a copy of lib directory? should I reference it to vlc installation directory?

@jeremyVignelles
Copy link
Collaborator

Hi, please have a look at the wiki : https://github.com/ZeBobo5/Vlc.DotNet/wiki/Getting-started
Please note that the manual download is likely to change, because we need a way to get the libraries through NuGet.
If you want to know more about the ongoing discussion, have a look at #288

@mahdi87gh
Copy link

@jeremyVignelles I created a fresh windows forms application project, followed the wiki, but still the same problem. I check if I set target to x64, it works fine. can play "http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov"
but cannot play dshow devices. I am on windows 10 x64 - vs2017, can you confirm it's working for you.

@jeremyVignelles
Copy link
Collaborator

@mahdi87gh I don't have access to a computer right now. I was just answering to your issue with x86/x64 ("...is not a valid win32 application") if you build your application with x86 or Any CPU "prefer 32 bits" or Any CPU that is run on a 32bits os, then you will need a x86 VLC (all your libvlc dlls should be x86)
The lib directory in this repository should not be used for production. use the dll from the official VLC distribution.
I didn't look at your issue closely, but it looks like you are passing arguments as the stream url, rather than passing them as stream options.

@mahdi87gh
Copy link

@jeremyVignelles I took dlls from vlc ftp, as I told you it can play streams well. my problem is I want to stream usb webcam to my rtsp server. Right now I can't even open webcam in vlcControl. Can you help me?

@jeremyVignelles
Copy link
Collaborator

If your code is the one above, you need to split between the stream url ("dshow://") and the stream parameters ":option" that you can pass as an array to some method (don't remember which, maybe the Play() method itself)

@mahdi87gh
Copy link

@jeremyVignelles unfortunately it doesn't work. I can open vlc.exe by command and get connected to usb webcam fine. but with vlcControl it doesn't work. Can you make a sample code?

@salihkaragoz
Copy link
Author

salihkaragoz commented Sep 11, 2017

vlc.Play(":dshow://", ":dshow-vdev=Microsoft® LifeCam Studio(TM)"); please try this and say if it is ok.
if it wil not work your problem is about your camera name. you have to change it.

@mahdi87gh
Copy link

@salihkaragoz It doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants