Code: Select all
string[] opts = { @"--sout=#transcode{vcodec=mp2v,vb=8000,scale=1}", };
Vlc = new VideoLanClient(@"c:\blah\", opts);
VlcPlayer1 = Vlc.NewMediaPlayer(System.IntPtr.Zero);
VlcMedia desc1 = Vlc.NewMedia(@"1.avi");
desc1.AddOption(@":duplicate{dst=rtp{dst=127.0.0.1,mux=ts,port=1234}}");
VlcPlayer1.Load(desc1);
desc1.Dispose();
VlcPlayer2 = Vlc.NewMediaPlayer(System.IntPtr.Zero);
VlcMedia desc2 = Vlc.NewMedia(@"2.avi");
desc2.AddOption(@":duplicate{dst=rtp{dst=127.0.0.1,mux=ts,port=1235}}");
VlcPlayer2.Load(desc2);
desc2.Dispose();
VlcPlayer1.Play();
VlcPlayer2.Play();
Nice to have you back. Here is a bug I found:Hi guys, I've been away for a while on what you might call the opposite of a vacation (aka excessive work). I want to take care of the bugs first and stabilize the wrapper before adding new features. Can you summarize what the current bugs are?
Hi Kairos!Hi guys, I've been away for a while on what you might call the opposite of a vacation (aka excessive work). I want to take care of the bugs first and stabilize the wrapper before adding new features. Can you summarize what the current bugs are?
Best regards, Elund(Correct me if im wrong) I believe the problem is caused by the delay due to bindings. for example, if you call play, the vlc will actually play 1 seconds later(as i said, example). you will experience issue when you issue multiple command within short period of time. AFAIK, there are no good solution for this. only workarounds. one workaround that i know of is by adding a delay before any command can be issue consequently.I still experience this wrapper - and the one made by Marx - as unstable.
They regularly stops playing videos (my application stops responding).
I have not been able to fix this issue yet, but when it happens it is always after a call to Play().
Best regards, Elund
Code: Select all
string[] opts = { @"", };
Vlc = new VideoLanClient(@"c:\blah\", opts);
VlcPlayer1 = Vlc.NewMediaPlayer(System.IntPtr.Zero);
VlcMedia desc1 = Vlc.NewMedia(@"dshow:// vdev='BT878 Capture 3');
desc1.AddOption(@":sout=#transcode{vcodec=mp2v,vb=8000,scale=1}:duplicate{dst=rtp{dst=192.168.0.1,mux=ts,port=1000}}");
VlcPlayer1.Load(desc1);
desc1.Dispose();
VlcPlayer1.Play();
You're a good man(?) Kairos... and I really want to use this wrapper as a part of the project I'm working on, but currently it's a little unstable when you call Stop() or Dispose() sometimes, the method simply doesn't return.Hi guys, I've been away for a while on what you might call the opposite of a vacation (aka excessive work). I want to take care of the bugs first and stabilize the wrapper before adding new features. Can you summarize what the current bugs are?
Code: Select all
VlcPlayer1 = Vlc.NewMediaPlayer(System.IntPtr.Zero);
VlcMedia desc1 = Vlc.NewMedia(@"dshow://");
desc1.AddOption(@":dshow-vdev=BT878 Capture 1");
desc1.AddOption(@":sout=#transcode{vcodec=mp2v,vb=8000,scale=1}:duplicate{dst=rtp{dst=192.168.0.1,mux=ts,port=1000}}");
VlcPlayer1.Load(desc1);
Code: Select all
VlcMedia desc = Vlc.NewMedia(filename);
VlcPlayer.Load(desc);
desc.Dispose();
VlcPlayer.Play();
Code: Select all
string filename = "mms://wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=945a3082dec341e5dda25cfd113eaa3e1c94c2be00d0e1f4a42fa936cf8ec007&SSO2-UID="
Code: Select all
string filename=http://www.bbc.co.uk/radio1/wm_asx/aod/radio1.asx
are you sure? i still get this even with the latest nightly buildShould "VideoLan.Interop" work with latest vlc sources obtained with git clone git://git.videolan.org/vlc.git ?
( i think ver. is "VLC 1.0.0 - Release Candidate 1" )
thx
It seems that a freq. reported problem was been recently fixed : vlc freezes when playing and stoping the playback a couple o times
http://git.videolan.org/?p=vlc.git;a=co ... 6efbc42055
dittoare you sure? i still get this even with the latest nightly build
I'm trying to play a stream through this wrapper using the following
if I pass the actual stream URL, the stream plays. ie the following works:Code: Select all
VlcMedia desc = Vlc.NewMedia(filename); VlcPlayer.Load(desc); desc.Dispose(); VlcPlayer.Play();
but if I pass a playlist file the stream doesn't play. The same is true for winamp m3u files.Code: Select all
string filename = "mms://wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=945a3082dec341e5dda25cfd113eaa3e1c94c2be00d0e1f4a42fa936cf8ec007&SSO2-UID="
Both links play in a normal VLC instance.Code: Select all
string filename=http://www.bbc.co.uk/radio1/wm_asx/aod/radio1.asx
What do I need to prepare the stream for playback?
Cheers
use 1.0.0RC3 instead, and the BSOD will be goneHiii guys,I don't know how many of u have got around this issue.
In ym case
I have a tabcontrol
the main tab/front window has a windowsformshost with a child as panel.the second tabitem is a list of items that i can use to playt things from.
In the constructor of my windows ,i set the handle of vlcmediaplayer class before vlcmediaplayer class is used inside another library to load and then play songs.
Now the issue,
when i play the video first time from second tab item ,its going cool.if i switch to the list of videos on second tab item again after seeing video and play any item,
I get a blue screen of death.
I handled a HadnleDestroyed even also with a debug.assert statement to see if its destroyed but i think its not as its not called.
FYI,Between any succesive calls i have set almost 800 millisecnds time explictily.
Also,
I keep things like windowsformshost,videopanel,VideoLanClient instance and VlcMediaPlayer instance within GC.KeepAlive() to prevent premature cleanup of these.
I have used VideoLanClient as VideoLanClient vlc=new VideoLanClient();
I am using plugins fro vlc 0.9.9.
Any idea whats causing that BSOD.Plz help me. .Its now occuring faster .earlier it was occuring after 10-12 video plays..
But u can say thats my problem..
Although,I haven't tried,ut i think it BSOD won't be there in Windows forms.
windowsformshost has something to do probably..Just my brain...
Whatever u feel,plz say,it might solve my problem.
Return to “Development around libVLC”
Users browsing this forum: No registered users and 19 guests