vlcj

how to control VLC by java

吃可爱长大的小学妹 提交于 2019-12-28 06:24:29
问题 I want to run a program called VLC in java and control it while running, for example if user clicked on ❚❚ or ►► button, I do a specific suitable action. I run VLC by this code : try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(VLCProgramAddFile + " udp://@:" + listeningPort); OutputStream out = p.getOutputStream(); InputStream in = p.getInputStream(); p.waitFor(); System.out.println("End of VLC"); } catch (Exception e) { System.out.println("error in running VLC"); } I have heard

Device Capture with VLCJ

核能气质少年 提交于 2019-12-25 08:57:10
问题 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] main demux error: corrupt module: C:\Program Files\VideoLAN\VLC\plugins\demux\liblive555_plugin.dll [000000000059a4d8] main input error: open of `rtsp://192.168.1.4:554/live.spd' failed [000000000059a4d8] main input error: Your input can't be opened

JNLP Webstart Launch Issue

試著忘記壹切 提交于 2019-12-25 07:27:16
问题 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 null when it comes into JNLP launch. InputStream stream = VLCLibManager.class.getClass().getClassLoader().getSystemResourceAsStream("XXX.jar"); I already did following : Manifest file of JAR that contains VLCLibManager.class updated with proper

Adding a video player to a JPanel in java using VLCJ

跟風遠走 提交于 2019-12-24 17:46:02
问题 I am currently in the position of having 2 pieces of work I wish to combine. I have a simple media player running in a JFrame and a GUI I would like to add video playback to on a JPanel. The code for the which creates video player window is as follows: private final JFrame vidFrame; private final EmbeddedMediaPlayerComponent vidComp; //Creates JPanel for video player public Video() { vidFrame = new JFrame("VLC video test"); vidFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); vidFrame

VLCJ not working on Mac - plugin libvlccore.5.dylib

烈酒焚心 提交于 2019-12-22 06:45:29
问题 I am trying to get VLCJ working on Mac and PC. It works fine under Windows 7 (64bit) but when I try to run it on my Mac it crashes. I am pointing to the correct directory for the VLC dylib files but I get an "...quit unexpectedly while using the libvlccore.5.dylib plugin" message. The details are: Process: java [48664] Path: /usr/bin/java Identifier: com.apple.javajdk16.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: java [48543] PlugIn Path: /Applications/VLC.app/Contents

Playing Video in Java FX using vlcj api

三世轮回 提交于 2019-12-21 06:22:25
问题 I am trying to play a video on Java FX components but not able to play. I know how to play a video in swing using vlcj but when I am trying the same I am not able to do so in javafx @Override public void start(Stage primaryStage) { File f = new File("Video.mp4"); new NativeDiscovery().discover(); EmbeddedMediaPlayerComponent playerComponent = new EmbeddedMediaPlayerComponent(); /*I dont know where to add the playerComponent as we do in swing*/ MediaPlayer mp=playerComponent.getMediaPlayer();

VLCJ Creating Multiple video panels

隐身守侯 提交于 2019-12-21 05:43:10
问题 I am creating multiple video panels using vlcj. For each video window I should add code: factory0 = new MediaPlayerFactory(); mediaPlayer0 = factory0.newEmbeddedMediaPlayer(); mediaPlayer0.setVideoSurface(factory0.newVideoSurface(videoCanvas[0])); mediaPlayer0.setPlaySubItems(true); ... If I want to have 8 video panels then I will have to repeat these codes (not dynamic). My Question is: I'd like to have MediaPlayerFactory and MediaPlayerFactory as arrays so that I can shorten my code and

Playing a video from an array of vlcj player

不打扰是莪最后的温柔 提交于 2019-12-20 05:53:48
问题 I am trying to play a video from the lists of MRL provided as a String. The problem is when I try to run the class, a list of panels shows with button, with only one panel working, but the play button does not work and that of other panels. Although I intentionally left the stop button out because I have not added action listeners to them. What I want to achieve is, when I run the class, a single video plays, and when I click on the play button of another video, the current video stops and

Video Streaming in vlcj

最后都变了- 提交于 2019-12-18 09:51:29
问题 I want to stream a video from server to the client. I have found the code for streaming the video from the server to the client side but get an error when running it: Streaming 'vlcj-speed-run.flv' to ':sout=#duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:5000}}' [018ec020] access_output_http access out: Consider passing --http-host=IP on the command line instead. [018b4978] main mux error: cannot add this stream [05493078] main decoder error: cannot create packetizer output (FLV1) 回答1: I

How to use 3rd party packages in Java

北城以北 提交于 2019-12-17 18:51:54
问题 I'm developping my first Java application which actually needs a 3rd party package and now I'm lost as to how to actually use it. The packages I need are from VLCJ so that I can embed a media player in my GUI. Usually, I can just import packages and classes, but is this possible with 3rd party packages? They have a .jar file to download at their website, are the packages stored in that? And if so, how do I go about using them in my own application? 回答1: You just need the third party JAR to be