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
0
votes
1 answer

Play a video in Java without installation

I am creating a Desktop application that has to play a video inside a frame.When i googled it out, lot of people suggested vlcj or Xuggler. Which one of these will be best to use? Some of the features that should be supported are: Camera…
santhosh
  • 1,191
  • 4
  • 14
  • 28
0
votes
1 answer

JNLP Webstart Launch Issue

I have a requirement to dynamically extract the content of a Jar file to a local directory. Remaining part of application will use these content. Everything working well in my eclipse development environment. However following peace of code returns…
ASChakkalakal
  • 459
  • 2
  • 8
  • 18
0
votes
1 answer

New window with embedded VLCJ video

I have a jpanel, inside a canvas to play a embedded video on it, using VLCJ. Well, when a play the video, it plays correctly in the canvas, BUT in a new window too, and i dont want a new window. I get this error BUT it plays perfectly (except i dont…
0
votes
1 answer

VLC playing HTTP video stream from netty server: Connection reset by peer

I need to extend the basic netty HTTP file server (https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/http/file) to stream a video through HTTP after I have done some custom encoding to the video. I'm planning to write…
0
votes
1 answer

Dynamically Change the resolution of playing video using VLCJ

String mrl= "rtsp://"XX.XX.XX.XX"/axis-media/media.amp?videocodec=h264&resolution=720x480"; I play the video using mediaPlayer.playMedia(mrl); It works great. But now I want to dynamically change the resolution of playing video. Example , while…
ASChakkalakal
  • 459
  • 2
  • 8
  • 18
0
votes
1 answer

AWT button not clickable in VLCJ

I have created a simple VLCJ project that consists of a simple embedded player and a button to exit. The code is as follows: package test; import java.awt.BorderLayout; import java.awt.Button; import java.awt.Color; import java.awt.Frame; import…
Eugene
  • 1,013
  • 1
  • 22
  • 43
0
votes
1 answer

VLCJ NullPointer (I just want a simple cross-platform java video player)

I am wanting to make a simple java applicaiton to play video. I want it to play mpeg4 and mov formats in particular. JMF is what I started with and I have a lovely working example. However, there is no support for mov or mpeg4 formats. I've looked…
user1505631
  • 527
  • 4
  • 13
0
votes
1 answer

Why does my libVLC program deadlock when trying to bind a capture device?

This is a question I originally posted over at the VideoLan forums (thread), but VideoLan support is totally overworked, and in any case I can't tell if this is an issue with libVLC, JNA, or the VLCj implementation, so I thought I would ask…
Johansensen
  • 371
  • 1
  • 12
0
votes
2 answers

VLCJ: Updating the progress bar as the video progresses

Please have a look at the following code import com.sun.jna.Native; import uk.co.caprica.vlcj.binding.LibVlc; import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent; import uk.co.caprica.vlcj.runtime.RuntimeUtil; import…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
2 answers

In VLCJ, how can I find a media file's total playtime?

I'm writing a media player in Java using VLCJ. I'd like to be able to seek a JSlider through to the end of a media file, but for that I'll need to know its total playtime. How can I obtain the total playtime of a media file using VLCJ?
Rafat
  • 23
  • 1
0
votes
2 answers

streaming video file using vlcj

I am trying to play a video file ..but getting few errors , not sure how to solve these errors , can anybody help me out please, thanks in advance `Streaming 'C:\Desktop\movie.mp4' to…
Ruby
  • 873
  • 5
  • 20
  • 47
0
votes
1 answer

Device Capture with VLCJ

I'm trying to use VLCJ for video capture with webcams (USB & IP) dshow:// & rtsp://192.168.1.4:554/live.sdp works like a charm with VLC 2.0.1 x64 Windows 7. but nothing works with VLCJ 2.1.0 examples Java SE 1.7 x64 RTSP error : [000000000fefed58]…
Philippe David
  • 8,814
  • 3
  • 24
  • 35
-1
votes
1 answer

javafx vlcj play mutiple video get IndexOutOfBoundsException error

I created a app use javafx+vlcj,play mutiple local videos in a GridPane,16 videos are playing one time (i know it's need much CPU resource), vlcj-4.7.1 && vlcj-javafx-1.0.2 && org.openjfx-14.0.2.1, the demo code like this: import…
pkxutao
  • 9
  • 1
-1
votes
1 answer

Java starting and seeking a video using a custom java File System abstraction

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…
-1
votes
1 answer

JPanels shrink when JFrame is resized

I'm making a video player with VLCJ; above and below I have two JPanels to display some information, and in the middle I have the canvas where the video is played. The problem is that when I resize the JFrame, the JPanels shrink and the Canvas…
1 2 3
27
28