vlcj | Java framework for the vlc media player | Video Utils library

 by   caprica Java Version: vlcj-4.8.2 License: No License

kandi X-RAY | vlcj Summary

kandi X-RAY | vlcj Summary

vlcj is a Java library typically used in Video, Video Utils applications. vlcj has no bugs, it has no vulnerabilities, it has build file available and it has high support. You can download it from GitHub, Maven.

The vlcj project provides a Java framework to allow an instance of a native [VLC] "VLC") media player to be embedded in a Java application. You get more than just simple bindings, you also get a higher level framework that hides a lot of the complexities of working with LibVLC. vlcj is primarily developed and therefore extensively tested on Linux - it does also work just fine on Windows and OSX, although there may be some limitations on OSX. Additionally, whilst not supported as one of the main platforms, this version of vlcj has been tested and shown to be working on contemporary Raspberry Pi builds. At least JDK 8 is required. vlcj-4.7.x, which is still current, is the last version of vlcj that was built against JDK 1.6. This is the open source vlcj project page, see also the 'official' [home page] "Official vlcj home page at Caprica Software") where you can find more information as well as some new simple tutorials.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vlcj has a highly active ecosystem.
              It has 987 star(s) with 264 fork(s). There are 60 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 13 open issues and 1147 have been closed. On average issues are closed in 20 days. There are no pull requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of vlcj is vlcj-4.8.2

            kandi-Quality Quality

              vlcj has 0 bugs and 0 code smells.

            kandi-Security Security

              vlcj has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vlcj code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vlcj does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              vlcj releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 11947 lines of code, 1860 functions and 369 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed vlcj and discovered the below as its top functions. This is intended to give you an instant insight into vlcj implemented functionality, and help decide if they suit your requirements.
            • Creates new media player event .
            • Attempt to discover the native library .
            • Apply logo information to a media player .
            • Send client - message .
            • Validates the parameters .
            • Determines if the specified directory exists .
            • Create a new Equalizer based on a preset name .
            • Initialize input events .
            • Set renderer item .
            • Returns a list of descriptions of a given media category .
            Get all kandi verified functions for this library.

            vlcj Key Features

            No Key Features are available at this moment for vlcj.

            vlcj Examples and Code Snippets

            No Code Snippets are available at this moment for vlcj.

            Community Discussions

            QUESTION

            use vlcj-javafx-demo develop a player, but it looks some components UI not update correctly when set full screen
            Asked 2022-Feb-19 at 01:20

            I try to use vlcj-javafx-demo to develop a video player, and I put the progress bar(Slider) on the StackPane over the video layer. In the beginning, it looks work well, but when I set maximum or full screen the app, it looks some components UI did not update correctly. How can I correct it?

            Thanks a lot!

            normally: [1]: https://i.stack.imgur.com/bbE51.png

            normally: [2]: https://i.stack.imgur.com/Plsb1.png the red color is the sence background color.

            the code :

            ...

            ANSWER

            Answered 2022-Feb-17 at 06:18

            You appear to be using a Linux OS, try passing one or more of these system properties when you start your JVM:

            Source https://stackoverflow.com/questions/71152176

            QUESTION

            VLC, vlcj, RTSP, and sout
            Asked 2021-Dec-30 at 22:08

            I am trying to transcode a RTSP stream into an mpeg4 stream over http for use on a webpage in a video tag. I am using vlcj and a 32-bit version of VLC installed locally. I thought I had the right sout settings, but I am getting the following error when finished.

            ...

            ANSWER

            Answered 2021-Dec-29 at 17:50

            The streaming options need to be passed in an array, not a single string with the separator as you have used.

            This is a fragment of what you have:

            Source https://stackoverflow.com/questions/70521439

            QUESTION

            VLCJ How to prepare media without playing it?
            Asked 2021-Nov-26 at 08:00

            I use embeddedMediaPlayer.media().play(path); which loads the video and plays it at the same time no problems, but I'd rather it opened and didn't auto play the video. If I use embeddedMediaPlayer.media().prepare(path); it doesn't really seem to do anything since if I then use embeddedMediaPlayer.controls().play(); to play the video it doesn't start the video..

            Is there something else I need to do to load the video properly? With embeddedMediaPlayer.media().play(path); I get this in the terminal showing that the video is fully loaded:

            ...

            ANSWER

            Answered 2021-Nov-26 at 08:00

            It seems it's an actual issue or the prepare method is not supposed to work like this. Leastways I posted the issue on the developed github page and it's been open several days with no response from anyone.

            https://github.com/caprica/vlcj/issues/1094

            The vlcj demo project is set up to play a video automatically and I guess it is that way because that's the only way. The prepare method seems to prepare a video but you have to either wait...or press play once for it load and then again to play it. I guess it's kind of 'half prepared'.

            EDIT: Issue deleted directly from github by author without solution. Very odd. The author didn't seem to understand that the problem was a delay in playback, and not a failure to play back. Before the issue's deletion, there was this statement from the author which seems to explain the delay:

            "In theory, you're supposed to wait for the mediaChanged event after prepare and before calling play, because LibVLC at some point reasonably recently made setting media asynchronous."

            There's a workaround for instant playback which is to use the start method and have it pause on first opening or on media change. That way a video will be ready for playback straight away.

            Source https://stackoverflow.com/questions/70000636

            QUESTION

            Error while adding embedded media Player component to JPanel
            Asked 2021-Jul-08 at 15:44

            I tried this code to display a video on simple jframe:

            ...

            ANSWER

            Answered 2021-Jul-08 at 15:44

            You must make your frame visible before you play your media.

            Source https://stackoverflow.com/questions/68302882

            QUESTION

            Java starting and seeking a video using a custom java File System abstraction
            Asked 2021-May-13 at 02:32

            I have a custom Java NIO FileSystem. I have to validate it's usability for video playing, seeking, etc. in a demo.

            My problem is that I cannot find any library which allows me to play a video from anything other than a regular File or URL. I tried with vlcj, javafx with no luck.

            My question is what library should I use for starting a video from a custom FileSystem abstraction?

            ...

            ANSWER

            Answered 2021-May-13 at 02:32

            LibVLC has support for in-memory stream playback.

            This should get you started for Java (credit to caprica)

            https://gist.github.com/caprica/52b1793500626cdc88d756175cf9aa4c

            Source https://stackoverflow.com/questions/67491399

            QUESTION

            Eclipse projects no longer exporting runnable jar files
            Asked 2021-Mar-26 at 11:00

            Eclipse 2021-03 (4.19.0) on Windows 10 Pro (20H2) Raspberry Pi 4 running Raspbian 10 Java 11 (since it is the latest I've seen on the Raspberry Pi.

            I've recently encountered a problem while exporting runnable jar files. On new and older programs in the workspace, when they are exported as runnable jar files on the Windows 10 Pro and moved to the Raspberry Pi, I get the message "Error: An unexpected error occurred while trying to open file test.jar"

            Having written a "Hello World" program and exported it, it ran just fine. This leads me to believe it is something with the project name, the Maven repositories, some quirk on the Raspberry Pi, or some other unknown.

            The project names are now "ButtonMediaPlayerV24" where 24 indicates 2.4 (to keep previous versions, the period was removed in hopes it would fix the issue)

            The Maven Repositories are VLCj and pi4j.

            Have anything I should check or try?

            Tried: creating a new project, with the name "ButtonMediaPlayer" with the same result.

            UPDATE 1: After gutting the program and putting it into the test project, I found GPIO 30 and 31 had "PinPullResistance.PULL_DOWN" in the initiation, which was given as an error message after getting rid of the additional classes.

            UPDATE 2: The Maven repositories are not the problem, and the project name isn't an issue.

            Further updates if I find more.

            ...

            ANSWER

            Answered 2021-Mar-25 at 18:31

            The error appears to be the way I was trying to create local version control, which involved using Windows Explorer to create a new copy, and rename it. It seems to be possible to do this, but Eclipse must rename the file to update not obvious locations where the file name is. Without that, it seems to break every time.

            Source https://stackoverflow.com/questions/66804840

            QUESTION

            VLCJ controlling multiple audio files from a single java program
            Asked 2021-Mar-20 at 08:33

            I want to play multiple audio files from a single java process via vlcj (old version 3.10.1). Below is the snippet of java code that I wrote to play audio from two files:-

            ...

            ANSWER

            Answered 2021-Mar-20 at 08:33

            This can not be done with the version of VLC/LibVLC that you are using (3.x).

            All native media player instances in the same process share the same audio controls.

            I have however heard that this may be dependent on the audio output plugin that is being used, but on Linux I have never personally seen this work.

            Early testing of the upcoming VLC/LibVLC 4.x offers some hope that in the future you do in fact get separate audio controls, but at time of writing this answer that version of VLC may still be some way off.

            In short, there's nothing you can "fix" here.

            You could run multiple media players in separate processes and somehow control them, but that is not trivial.

            Source https://stackoverflow.com/questions/66719392

            QUESTION

            How to add external libraries to custom runtime image using jlink?
            Asked 2021-Mar-08 at 09:53

            I want to add external libraries needed by my project to the custom runtime image.

            I use the following external libraries in my project: vlcj.jar, vlcj-javafx.jar

            For vlcj.jar to work I also need to add external libraries: jna.jar, jna-platform.jar, vlcj-natives.jar

            If I rewrite my application so that I don't need to use vlcj.jar and vlcj-javafx.jar, then the custom runtime image creation line looks like this:

            ...

            ANSWER

            Answered 2021-Mar-08 at 09:53

            The custom runtime image does not support automatic modules (non-module jars) so you don't have any dependent jars in the jlink image which defines classpath for running with the vlc.

            You can edit the META-INF\MANIFEST.MF in your own jar to specify a classpath so the extra jars could be read from the same directory you run java -jar:

            Source https://stackoverflow.com/questions/66509021

            QUESTION

            Upcalls from JavaScript to JavaFX not working due to VLCJ
            Asked 2021-Mar-02 at 14:07

            Upcalls from JavaScript to JavaFX works fine. But if I add a variable containing the VLCJ player implementation then everything stops working.

            Main.java:

            ...

            ANSWER

            Answered 2021-Mar-02 at 14:07

            Solved the problem thanks to this answer: https://stackoverflow.com/a/53618875/10946427

            It turns out my JSBridge was being destroyed by the garbage collector and because of VLCJ it was faster.

            If you create a JSBridge variable inside the class, then the garbage collector will not destroy it and everything will work.

            Source https://stackoverflow.com/questions/66353139

            QUESTION

            How do I make the background of a WebView transparent?
            Asked 2021-Feb-23 at 14:33

            I have a Maven project in IntelliJ IDEA, using JDK 15 and JavaFX 15.

            I tried:

            1. Set style for WebEngine
            2. Set blend mode for WebView
            3. Tried WebPage

            Nothing succeeded. How do I make the background of the WebView transparent?

            My module-info.java:

            ...

            ANSWER

            Answered 2021-Feb-23 at 14:33

            The WebView renders the DOM CSS in the web page. If you want a transparent background, you'll have to modify the CSS there as well.

            EDIT ... the following works, but opens up a can of worms.

            Source https://stackoverflow.com/questions/66276295

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install vlcj

            You can download it from GitHub, Maven.
            You can use vlcj like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the vlcj component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            The vlcj project page is at [github](http://caprica.github.com/vlcj "vlcj at github").
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/caprica/vlcj.git

          • CLI

            gh repo clone caprica/vlcj

          • sshUrl

            git@github.com:caprica/vlcj.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link