Questions tagged [vlcj]

VLCJ is a Java binding for VLC engine (libVLC). It supersedes the old (and now dead) JVLC project.

Like VLC media player from VideoLAN.org, VLCJ, made by Mark Lee of Caprica Software, Inc., binds to the VLC engine (VLC libraries and plugins) that is native to a given OS platform via Java Native Access (JNA). For it to work, it requires at least Java 1.5. It is currently licensed under GPLv3.

VLCJ features everything VLC media player can do: transcoding, streaming and playback of a media in many formats of media containers and media codecs. It supports media input coming from a file, a media disc, a URL, a capture device or even the desktop! It also able to play from a playlist of media stored locally or remotely.

Currently, various major versions are released for VLCJ, depending on which VLC engine version it binds to. All versions works well under Windows and Linux but some versions are reported to work fine under MacOSX.

415 questions
3
votes
1 answer

How to distinguish between audio file and video file?

I am using Java to write a media application. Given a file, how can I know is it a audio file or video file? By the way, I use vlcj library.
Bear
  • 5,138
  • 5
  • 50
  • 80
3
votes
2 answers

ComboBox items are overlapped

Please have a view of the attached image. I use VLCJ to build this application. However, it is unexpected that the item in combobox is hidden by the Canvas (which is used in VLCJ player). How to solve it?
Bear
  • 5,138
  • 5
  • 50
  • 80
3
votes
1 answer

Extract audio data to memory using vlcj

I want to extract audio data to memory using vlcj (https://github.com/caprica/vlcj, version 4.2.0). I don't want to play the video on the same time, just extract the audio data, as fast as the performance allows. Right now I'm using a workaround…
foolo
  • 804
  • 12
  • 22
3
votes
1 answer

VLCJ doesn't play video when using getClass().getResource()

I'm making a game, but it depends on videos; I hadn't worked before with videos so I used VLCJ as it was the first thing that popped up in YouTube. Anyway, the thing is that when I use getClass().getResource() and I execute the jar, it doesn't load…
3
votes
3 answers

How to refresh graphics of a Window class in Java

I'm trying to draw over a vlcj (java binding of the VLC library) panel so that I can play a video and draw over it. And I have encounter some issues. Here is the full base code: Code-listing 1: AppOverlay.java package app; import…
Paiku Han
  • 581
  • 2
  • 16
  • 38
3
votes
1 answer

Is there a way to only play audio from a video?

I want to play a downloaded talk show, but I only want to play audio. Whenever I do MediaPlayer.media().play("video.mp4"), it opens the video in a pop-up window. Is there a way to hide that window, or to disable video track if needed? I've tried…
MG lolenstine
  • 919
  • 1
  • 11
  • 32
3
votes
1 answer

vlcj play video from url

need vlcj play video from url, it works with files on disk, but when it couses web - it doestn't work. Test video: http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4 In errors I have this filesystem access error: cannot open file…
Denys Klymenko
  • 394
  • 5
  • 18
3
votes
1 answer

vlcj MediaPlayer: how to detect when video has finished playing

I'm playing a video file (full screen) and I want an audio file to play once the video has finished playing. The thing is: I'm able to play a video file in full screen; I'm able to detect when the video file has finished playing:…
Marie
  • 141
  • 1
  • 2
  • 6
3
votes
1 answer

Using Webcam with VLCJ not working correctly while using the same options in VLC do work:

I am somewhat lost here: I try to integrate my Webcam in a Java App using VLCJ. When i open VLC and use the settings shown in the screenshot below everything works well. But when I then try to use the exact same settings from within my VLCJ App i…
Ulathar
  • 309
  • 3
  • 13
3
votes
2 answers

Run example RTSP with vlcj example (JAVA)

I try to open a video stream from a RTSP server into a JAVA application. First I tried to run this example : package uk.co.caprica.vlcj.test.streaming; import uk.co.caprica.vlcj.player.MediaPlayerFactory; import…
user3634476
  • 43
  • 1
  • 4
3
votes
1 answer

How to play mp4 video in JAVA (swing) jframe using vlcj?Is there any other way to play mp4 in JAVA?

I want to play video file in JAVA(java swing). I have used JMF(java media framework). But it support .mpg format only. I want to play .mp4 format video file. How to do this? I could play mpg video using this code …
paru
  • 41
  • 1
  • 1
  • 2
3
votes
2 answers

Java API or 3rdparty for getting duration of movie

I've many video files. All the types are different (mkv, avi, mp4, flv, etc.). I want to iterate these files and get the duration of the movies. Currently I use vlcj which is OK, but the code is a little bit confusing me. I have to play the media…
mudlee
  • 680
  • 12
  • 22
3
votes
7 answers

How do I add or install the native x64 libraries for VLCJ?

I am trying make a messenger program in Java that has a video player in it, so I'm using vlcj. But I receive this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': The specified module could not…
wutang
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

java VLCJ tutorial java.lang.UnsatisfiedLinkError

I'm trying to use VLCJ, and got stuck on their first tutorial. Here's my code: package vlcj.tutorial1; import uk.co.caprica.vlcj.binding.LibVlc; import uk.co.caprica.vlcj.runtime.RuntimeUtil; import com.sun.jna.Native; import…
Felix
  • 3,783
  • 5
  • 34
  • 53
3
votes
1 answer

VLCJ: Packaged Jar cant load libvlc library when double-clicked but runs perfectly through console

I have a problem with vlc.I am using Eclipse and have made a small application to play video files using vlcj framework.Inside Eclipse everything works fine but when I make jar executable file through Eclipse and double-clicking it (on Windows 64:…
PeGiannOS
  • 227
  • 4
  • 19
1 2
3
27 28