I would like to save the stream to file without decoding it and play this file from different position
Is this possible?
VlcContext.LibVlcDllsPath = config.VlcPath;
VlcContext.LibVlcPluginsPath = config.VlcPluginsPath;
VlcContext.StartupOptions.IgnoreConfig = true;
VlcContext.StartupOptions.LogOptions.LogInFile = true;
VlcContext.StartupOptions.LogOptions.ShowLoggerConsole = false;
VlcContext.StartupOptions.LogOptions.Verbosity = VlcLogVerbosities.Debug;
VlcContext.Initialize();
MediaBase media = new PathMedia(file.Path);
MediaTrackInfo trackInfo = media.TrackInfos.First(ti => ti.Type == Vlc.DotNet.Core.Interops.Signatures.LibVlc.Media.TrackTypes.Video);
VlcContext.CloseAll();
If I comment the "MediaTrackInfo" line, it doesn't crash on dispose. The crash occurs in LibVlcInteropsManager.cs line 138:Win32Interop.FreeLibrary(module.BaseAddress);
This line is executed around 10 times successfully but when it tries to unload "libdash_plugin.dll", crash. From the error code it looks like an access violation.private void StoreFile()
{
Vlc.DotNet.Core.Medias.MediaBase media1
= new Vlc.DotNet.Core.Medias.PathMedia("rtsp://localhost/live/Testing");
media.AddOption(":sout=#transcode{vcodec=theo,vb=800,
scale=1,acodec=flac,ab=128,channels=2,samplerate=44100}:std{access=file,mux=ogg,
dst=D:\\123.mp4}");
VlcControl control = new VlcControl();
control.Media = media1;
control.Play();
}
any help? vlcControl1.AudioProperties.IsMute = true;
vlcControl1.AudioProperties.Volume = 0;
VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.SetFormatCallbacks.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this], myVideoSetFormat, myVideoCleanup);
VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.SetCallbacks.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this], myVideoLockCallback, myVideoUnlockCallback, null, IntPtr.Zero);
Then I added a function to call SetHwndpublic void SetHwnd(IntPtr windowHandle)
{
VlcContext.InteropManager.MediaPlayerInterops.SetHwnd.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this], windowHandle);
}
This doesn't seem to work. It never starts drawing to the window handle provided. I feel like I am missing something small, but I cant seem to find it.Project Description
The VlcDotNet libraries provide the audio/video control of the VLC Media Player for Windows Forms, WPF, and Silverlight 5. Now you can stream audio and video in C# and VB.NET!
You can see how to use it on the Documentation page.
Format Compatibility
VlcDotNet has the same compatibility as VLC Media Player. See here for the list of supported formats.
News
The new version is available here.
April 18, 2014:
April 19, 2012:
Nov 22, 2011:
July 20, 2011:
June 29, 2011:
May 17, 2011:
May 11, 2011:
May 10, 2011:
May 09, 2011:
May 06 2011:
April 19 2011:
Don't worry, be happy for the next version :)
Participation
Project Description
The VlcDotNet libraries provide the audio/video control of the VLC Media Player for Windows Forms, WPF, and Silverlight 5. Now you can stream audio and video in C# and VB.NET!
You can see how to use it on the Documentation page.
Format Compatibility
VlcDotNet has the same compatibility as VLC Media Player. See here for the list of supported formats.
News
The new version is available here.
April 18, 2014:
April 19, 2012:
Nov 22, 2011:
July 20, 2011:
June 29, 2011:
May 17, 2011:
May 11, 2011:
May 10, 2011:
May 09, 2011:
May 06 2011:
April 19 2011:
Don't worry, be happy for the next version :)
Participation
To start a project with Vlc.DotNet, download & install VLC media player. You don’t need to add the files (libvlc.dll, libvlccore.dll) in the output compilation
directory, you have to set the "VlcContext.LibVlcDllsPath" property , "VlcContext.LibVlcPluginsPath" property of the VlcContext and initialize it.
See : C# Form example & Wpf example.
To use the WPF control you must use the nightly build of VideoLan because you must use version >= 1.2 of it and it hasn't rolled out of production yet.
New documentation is now in progress, should be up soon.
This is the audio/video control for winform 2.0.
This is the audio/video control for WinForms 2.0.