Git Product home page Git Product logo

Comments (8)

sepehr1014 avatar sepehr1014 commented on June 12, 2024

Hi,
If I'm not mistaken by "or simply the current executing path" you mean you want to have VLC libraries in the executable file directory. That's the case when you download the source files. You can copy VLC libraries in the executable path and provide that directory to VLCMediaPlayer.

from vlc.dotnet.

janpieterz avatar janpieterz commented on June 12, 2024

But the need to have them embedded within an executable is impossible I assume, since the plugins folder needs to be copied as well?

In my use case I only need them embedded.

from vlc.dotnet.

sepehr1014 avatar sepehr1014 commented on June 12, 2024

I don't know if the libraries can be used directly from memory, but one way around would be to embed the files in the executable and offload them to a temporary location ...
Also pay attention to each library and plugin's license.

from vlc.dotnet.

janpieterz avatar janpieterz commented on June 12, 2024

Thanks! This will sadly be a little bit too time-intensive and resource intensive (users will click very quickly between different video sources and only then my code gets initialised). Besides that I haven't been able to get Vlc.DotNet to work with an RTSP stream (either directly or a version streamed to disk). Weird use case and now I'll have to hunt for a good in-code decoder.
Wrong place to ask perhaps but do you or anyone else know a good resource?
https://github.com/soywiz/cscodec does the job but with a lot of artefacts compared to VLC and we haven't been able to find something comparable.

from vlc.dotnet.

sepehr1014 avatar sepehr1014 commented on June 12, 2024

I don't know about RTSP, but I've successfully built an "Online TV" app playing RTMP streams using the old version of VideoLan Dot Net available at https://vlcdotnet.codeplex.com/
It may be worth trying. (Although you'll still need VLC library files)
As a side note I highly recommend playing m3u8 playlists if available instead of directly playing the RTMP stream. VLC supports them too.

from vlc.dotnet.

janpieterz avatar janpieterz commented on June 12, 2024

Interesting, thanks for your thoughts.
In this case I'll be reading RTSP streams from a live source that is not under my control (a NVR having up to 64 cameras connected). Quite a limited environment.

As far as I know RTMP and RTSP are just two different ways of achieving the same thing, streaming media. RTSP uses RTP as it's underlying protocol and adds a little layer (very much like http) where certain information can be gained and commands can be executed, like discovering which codec streams are available at a certain endpoint and setting which one your application prefers for example.

Just out of curiosity and to broaden my understanding of this subject, why do you say you'd recommend m3u8 over directly playing RTMP?

from vlc.dotnet.

sepehr1014 avatar sepehr1014 commented on June 12, 2024

RTSP seems interesting!
I recommend m3u8 not for technical reasons (actually I don't have deep understanding in this matter) but because of VLC's behavior. When you directly play RTMP streams in VLC Media Player (which uses the same VideoLan libraries), stopping the stream, freezes the media player for a shot time (at least in version 2.1 and earlier). I've seen better performance and more stable behavior with m3u8 playlists in VLC.

from vlc.dotnet.

janpieterz avatar janpieterz commented on June 12, 2024

Thanks, nice practical insight!

from vlc.dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.