While there are Nuget packages for all the other dll's i noticed there is no package containing the Vlc.DotNet.Forms for winforms applications. Is there any chance to rectify this?
New Post: Nuget Vlc.DotNet.Forms is missing
New Post: Subtitles
Hi,
I am having issues with the subtitles using the latest source on win7 64. I am using vlc-2.0.3-win32 and if i open the file in VLC directly i can turn the subtitles on.
I modified the sample winform app to use the following code after opening the file but it does not seem to work. It sets the subtitle id to 2 but it has no effect. Funny thing is that the subtitle count is 0 but if you browse the object tree you can clearly see the english subtitles with an id of 2.
while (vlcControl.VideoProperties.SpuDescription == null) { System.Threading.Thread.Sleep(50); } if (vlcControl.VideoProperties.SpuDescription.Next != null) { vlcControl.VideoProperties.CurrentSpuIndex = vlcControl.VideoProperties.SpuDescription.Next.Id; }
Can anyone point me in the right direction with this as i am finding this a great library that seems to be perfect for what i want if i can get subtitles working.
New Post: Subtitles
Worked it out. You don't set the subtitle id but its index so the disable is 0, the first subtitle under next is 1 etc.
New Post: Multiple Video Playback?
Hi All,
I've got an early stab at getting n video sources to play/stop and be controlled by a common slider control. Unfortunately, they are losing synch pretty quickly - which isn't a big surprise given my implementation. Like...
foreach (VlcControl theControl in
{
if (theControl != null)
{
theControl.PlaybackMode = PlaybackModes.Default;
theControl.Play();
}
}
Does anyone know of a mechanism to ensure synchronous start and stop behavior across multipe video sources?
Thanks
Dave G
New Post: NullReferenceException
Thank you, iPiv, your solution to rebuild the DLLs worked perfectly. Spent hours looking for that fix, but now it works!
New Post: Need help: How can I play a stream with defined delayed time?
Hello,
Exists some way to play a stream with delay? Maybe using some command?
Thanks in advance
New Post: NullReferenceException
iPiv, I'm also having the same problem. I'm trying to run vlc on a winform, but the media member of the VlcControl object will not initialize; it remains null.
It looks like you solved it; how did you do it? I have the latest version 29.11.2011 of vlc.dotnet. VS 2008. .Net 3.5 and I'm running it in x86.
I'm using vlc 2.0. I tried 1.1.11 and 1.1.9 but those wouldn't initialize the Control.
Can you send me the dll's that work?
New Post: Is possible AddOptions after running a movie?
Hello there!
Something like ....
...........................
vclControl.Play ()
.....................
vclControl.Media.AddOptions (": sout-display-delay = 70000");
........
My idea is to change the video output at runtime......
Can somebody help me?
Thanks in advance!
New Post: NullReferenceException
Download the latest source code : 66475. This version has fixed the NullReference Exception
Not released, causing a lot of people did not find.
New Post: libvlc_video_set_callbacks / _format not accessible
First, I would like to congratulate the project's developpers.
Your modifications of the source code are interrested,
Please,can you explan me how did you do?? Or can you send me your version??
Thank you in advance.
New Post: Experiencing memory leak in unmanaged memory using vlc wpf component
I am stress testing vlc wpf component to see the possibility of using it instead of mediaelement in our project. So far looks like it is a lot more stable, so thanks to devs for the great effort.
However, I found during stress test something that looks like memory leak in unmanaged memory, here is a screen shot of ANTS profiler where it is very visible that unmanaged memory is growing over time:
http://dl.dropbox.com/u/20892530/StressTestRes.jpg
The test app is a very simple program that every 1.5 seconds opens and plays 2 of 8 test videos. I reuse the same two vlc controls to play those videos. I let that app run and after around 40 hours it crashed.
May be I am not initializing it properly or I need to do something else to properly stop and start the next video?
Can someone give me some advice on it?
My setup: Win7 64, .Net 4.0 32b target assembly, installed version of VLC media player 2.0.1 Twoflower, VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29
Videos info as shown by GSpot: .mov, vodeo codec avc1 H264, audio codec mp4a: MPEG-4 AAC LC
Here is how I initialize vlc lib:
// Set libvlc.dll and libvlccore.dll directory path VlcContext.LibVlcDllsPath = @"C:\Program Files (x86)\VideoLAN\VLC"; // Set the vlc plugins directory path VlcContext.LibVlcPluginsPath = @"C:\Program Files (x86)\VideoLAN\VLC\plugins"; // Ignore the VLC configuration file VlcContext.StartupOptions.IgnoreConfig = true; // Enable file based logging VlcContext.StartupOptions.LogOptions.LogInFile = false; // Shows the VLC log console (in addition to the applications window) VlcContext.StartupOptions.LogOptions.ShowLoggerConsole = false; // Set the log level for the VLC instance VlcContext.StartupOptions.LogOptions.Verbosity = VlcLogVerbosities.None; // Disable showing the movie file name as an overlay VlcContext.StartupOptions.AddOption("--no-video-title-show"); // Pauses the playback of a movie on the last frame VlcContext.StartupOptions.AddOption("--play-and-pause"); // Initialize the VlcContext VlcContext.Initialize();
This is how I start random videos:
mEl.Player.Media = new Vlc.DotNet.Core.Medias.PathMedia(videoPath[vIdx].ToString()); mEl.Player.EndReached += Player_EndReached; mEl.Player.AudioProperties.IsMute = true; mEl.Player.Play();
This is how I change video to the next one:
mEl.Player.EndReached -= Player_EndReached; mEl.Player.Stop(); mEl.Player.Media.Dispose();
Is there anything else I need to take care of when I switch videos?
Should I may be instantiate a new VlcControl every time I want to play video?
Thanks.
New Post: libvlc_video_set_callbacks / _format not accessible
http://www.2shared.com/file/Yey_K7T4/VlcDotNet_callbacks_first_work.html
This was made with some older Vlc.DotNet version
Bye
New Post: libvlc_video_set_callbacks / _format not accessible
Thanks a lot.
Commented Issue: EndReached hangs [6549]
I have a problem with the EndReached event. The player hangs when I start playing a media after EndReached is invoked.
VlcControl.Common.cs hangs at the codeline:
Media = media;
/// <summary>
/// Play the media
/// </summary>
/// <param name="media">Media to play</param>
public void Play(MediaBase media)
{
Media = media;
Play();
}
Does anybody know about this issue?
Comments: ** Comment from web user: Kraeven **
Same happens for me, latest build
New Post: Experiencing memory leak in unmanaged memory using vlc wpf component
Playing with the stress bed project a bit more I found that every time when Media property is assigned it increases the count of Medias list, even if Media.Dispose(); was called prior to it.
So calling
mEl.Medias[0].Dispose();
mEl.Medias.RemoveAt(0);
instead of
mEl.Player.Media.Dispose();
will take care of empty items in Medias list. But unfortunately it does not solve the memory leaking problem that I described in the first post....
Does anyone knows how to repeatedly assign different values to Media property of VlcControl without experiencing that memory leak?
New Post: Stream the MP3 Audio
provide me the sample program to stream the mp3 file (Http)
New Post: SilverLight not working
Hey, I think VL.NET is great, i used a .dll for wpf and with just a few lines of code i created just what i wanted: a simple rtsp player. The problem is SilverLight version of VideoLan DotNet is not working for me: online example doesnt work (http://vlcdotnet.codeplex.com/wikipage?title=Silverlight%205%20sample), as well as the code of a sample player (http://vlcdotnet.codeplex.com/SourceControl/changeset/view/66475#1131456). Online example says that app creator needs to recreate it to new version of SL, sample player breaks when OpenFileDialog when ShowDialog() is executed with "Dialogs must be user-initiated.".
Please help.
New Post: MP3 Streaming
Hi,
Vlc.DotNet.Wpf.VlcControl vlcob = new Vlc.DotNet.Wpf.VlcControl();
PathMedia pm = new PathMedia("file:///F:/Raghul.mp3");
vlcob.Media = pm; vlcob.Media.AddOption(":sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{mux=raw,dst=:8080/} :sout-keep");
vlcob.Play();
i have used the above code to stream the audio file. unfortunatily it is playing but it's not streaming the audio.
Thanks in Advance.
New Post: Chunk Data
Hi,
I would know if is possible access to information (chunk data) while vlc play.
Thanks,
Ultimo741
New Post: IgnoreConfig not doing anything
Hi,
I was wondering if the IgnoreConfig bool in the startup options does anything at all? it doesn't take over my vlc player settings.
can anyone clarify on this?