I face a big trouble at the end of my development. My assumptions went wrong.
After spending time to understand VLCJ API, I came to know that It must be possible. So I created a custom native-lib.jar with following dlls.
libvlccore.dll
libvlc.dll
/plugins/.... (This contains every plugins)
I load the library using :
System.loadLibrary('libvlccore');
System.loadLibrary('libvlc');
For my development environment, I dynamically set java.library.path to a directory which extracts the content of my custome native-lib.jar. This works fine. Finally, end users of this application use JNLP in order to launch this application.I was sure <nativelib download='eager' href='lib/native-lib.jar'/> will loads vlcj lib to java.library.path. Yes it does. But the big mess is VLCJ API could not load /plugin from native-lib.jar. It says :
In the text below <libvlc-path> represents the name of the directory containing 'libvlc.dll' and 'libvlccore.dll' and <plugins-path> represents the name of the directory containing the vlc plugins...
For libvlc to function correctly the vlc plugins must be available, there are a number of different ways to achieve this:
1. Make sure the plugins are installed in the '<libvlc-path>/plugins' directory, this should be the case with a normal vlc installation.
2. If using vlc 1.2.x, include System.setProperty('VLC_PLUGIN_PATH', '<plugins-path>'); at the start of your application code.
3. If using vlc 1.2.x, specify -DVLC_PLUGIN_PATH=<plugins-path> on the command-line when starting your application.
4. If using vlc 1.1.x, pass '--plugin-path=<plugins-path>' as parameters in your application code when you create a MediaPlayerFactor
Means /plugins not loaded. How can we set plugin directory dynamically? If i set the --plugin-path parameter as a absolutel path ,which means that i put all the plugin dll files at the client side, everthing is ok. But this is not what I wanted to achieve. I should be able to supply plugins from a native jar. If I could load 'libvlc.dll' and 'libvlccore.dll' successfully at run time. There must be a way to load /plugins as well.
I expect your prompt reply as I am in big trouble.![Where is vlc installed in ubuntu Where is vlc installed in ubuntu](/uploads/1/2/6/2/126273901/993283160.jpg)
See in this article how to work with VLCj API to create your own audio/video players for Windows/Linux in Java based on VLC. VLC is a famous open-source video player, which runs on multiple platforms and plays various types of audio/video format. Official site; The list of supported audio/video For. Yes, VLC can be installed on the recommended Debian image using sudo apt-get install vlc. As far as I understand, VLC (>= 1.1) uses the VAAPI to decode video, if it is available. VAinfo should tell you whether hardware decoding is available and since all packages are available for armel, hardware acceleration should work from the technical side.
My requirement is 'Run VLCJ without installing VLC player locally'.After spending time to understand VLCJ API, I came to know that It must be possible. So I created a custom native-lib.jar with following dlls.
libvlccore.dll
libvlc.dll
/plugins/.... (This contains every plugins)
I load the library using :
System.loadLibrary('libvlccore');
System.loadLibrary('libvlc');
For my development environment, I dynamically set java.library.path to a directory which extracts the content of my custome native-lib.jar. This works fine. Finally, end users of this application use JNLP in order to launch this application.I was sure <nativelib download='eager' href='lib/native-lib.jar'/> will loads vlcj lib to java.library.path. Yes it does. But the big mess is VLCJ API could not load /plugin from native-lib.jar. It says :
In the text below <libvlc-path> represents the name of the directory containing 'libvlc.dll' and 'libvlccore.dll' and <plugins-path> represents the name of the directory containing the vlc plugins...
For libvlc to function correctly the vlc plugins must be available, there are a number of different ways to achieve this:
1. Make sure the plugins are installed in the '<libvlc-path>/plugins' directory, this should be the case with a normal vlc installation.
2. If using vlc 1.2.x, include System.setProperty('VLC_PLUGIN_PATH', '<plugins-path>'); at the start of your application code.
3. If using vlc 1.2.x, specify -DVLC_PLUGIN_PATH=<plugins-path> on the command-line when starting your application.
4. If using vlc 1.1.x, pass '--plugin-path=<plugins-path>' as parameters in your application code when you create a MediaPlayerFactor
Means /plugins not loaded. How can we set plugin directory dynamically? If i set the --plugin-path parameter as a absolutel path ,which means that i put all the plugin dll files at the client side, everthing is ok. But this is not what I wanted to achieve. I should be able to supply plugins from a native jar. If I could load 'libvlc.dll' and 'libvlccore.dll' successfully at run time. There must be a way to load /plugins as well.
I expect your prompt reply as I am in big trouble.
VLC Player is a widely used player and encoder that supports many video and audio formats. Like other software, VLC users may experience various technical problems. Even though it has been installed on your computer for a long period of time and you have already used it many times, it may fail to function properly. One of the common technical problems you might often experience is VLC no sound. Here are some ways to help you solve VLC no sound problem.
Solution 1: Unmute Your VLC Player
Solution 2: Adjust Audio Settings
Solution 3: Convert Video Format
Solution 2: Adjust Audio Settings
Solution 3: Convert Video Format
Solution 1: Unmute Your VLC Player
If VLC media player is playing video but no sound playing, the probable cause is that you may have set it to mute at some point, and forgotten all about it. Your computer’s operating system may remember this setting and mute VCL the next time. To unmute your VLC, just follow the steps below:
1 Click the speaker icon (it's at the bottom of your task bar near your clock);
![Where is vlc installed in ubuntu Where is vlc installed in ubuntu](/uploads/1/2/6/2/126273901/993283160.jpg)
2 Click the “mixer” and if your VCL Player is running, it will show up in the mixer like below;
3 Then unmute VLC and your sound works again
Solution 2: Adjust Audio Settings
If it doesn’t work after you unmute VLC, try adjusting audio settings of this player. Here is how: go to Tools > Preferences > Audio and make sure Enable audio is ticked. Then go to Output and try a different default.
Solution 3: Convert Video Format
If it still doesn’t work after trying the solutions above, you may convert the original video to another format, because VLC may have troubles playing some MKV or MP4 media file. Here I introduce a powerful Video Converter to help you convert your media file. Just follow the step below:
1: Download and run this video converter. Then go to 'Convert' tab>”Add Files” to import your media files. You can also directly drag your local files to this program.
2: Then click the format icon in the 'Output Format' pane and select a format you want.
3: Hit the “Convert” button and start converting your media files.