Coder Social home page Coder Social logo

vlcj's Introduction

vlcj

vlcj-5 requires VLC 4.0 as a minimum baseline - VLC 4.0 is currently in development and it may be some time before it is released.

If you are looking for a stable combination of vlcj and VLC then switch to the vlcj-4.x branch instead.

vlcj

The vlcj project provides a Java framework to allow an instance of a native 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 11 is required.

vlcj-4.7.x, which is still current, is the last version of vlcj that was built against JDK 1.6.

vlcj-4.8.x, which is still current, is the first version of vlcj that was built against JDK 11, and is the first to use the Java Module System.

There is an alternative artefact available in the short term to maintain compatibility with Java 1.8, switch to the vlcj-5.x-java8 branch branch, and use the vlcj-java8 artefact name instead of vlcj.

This version of vlcj requires VLC 4.0.0 as a minimum, no earlier version is supported.

This is the open source vlcj project page, see also the 'official' home page where you can find more information as well as some new simple tutorials.

Build Status

Continuous Integration

Maven Central

Recent News

January 2024 Project status update:

This project is still actively maintained and supported, but activity has been less recently because the main driver for the next release and the blocker for releasing something new is the ongoing development of VLC 4.x which is still seemingly not close to being completed.

May 2022 Supporting the project:

If you would like to help support the continued development of vlcj and our other Open Source efforts, you might like to consider sponsoring the project by becoming a GitHub sponsor or buying us a coffee - look for the "Sponsor this project" links on this page.

Alternatively, a good way to support the project is by purchasing a commercial license for vlcj - some more information is included at the end of this README.

May 2022 Project status update:

vlcj is still tracking the development process of VLC/LibVLC 4.0.0 - there are some small changes made recently to LibVLC, but nothing major, no new API. There is still no end in sight to the first VLC 4.x release. Aside from LibVLC there are still some small improvements being made to vlcj, check the project issues for details.

vlcj-5.0.0-SNAPSHOT currently has feature parity with the in-development LibVLC 4.0.0 - we're basically waiting for VLC 4.0 final to be released, or for any new native API to be added to be added to LibVLC.

If you have a stable pre-release build of VLC 4.0.0 you should be fine to use the current vlcj-5.0.0-SNAPSHOT version.

But as of right now, there's nothing much more to be done on vlcj until the next major version of VLC is released - and that is likely yet to be quite some time away.

Future 2022 Next major release

vlcj 5.0.0 release, significant changes for LibVLC 4.0.0, minimum Java version now Java 11 LTS.

All releases are at available at Maven Central.

You can follow @capricasoftware on Twitter for more vlcj news.

Backwards-Incompatible API changes

Changes that break backwards compatiblity with prior vlcj versions were avoided if at all possible. However, some such changes are needed in the case where the underlying native LibVLC API changed.

Swing/AWT, JavaFX, OpenGL

Core vlcj embeds native media players in Swing/AWT applications. This has been the foundation of vlcj since the earliest versions. This is still fully supported and still works well, in fact it is still likely the most performant solution.

However, recent versions of JavaFX introduced the PixelBuffer component, providing direct access to a shared native memory buffer that can be used by vlcj/LibVLC as a "callback" video buffer. This performs really well. even when using multiple concurrent video players.

Another factor to consider here is that contemporary macOS does not support AWT at all, so JavaFX is a very good option on that platform.

For more information see the vlcj-javafx and vlcj-javafx-demo projects.

A further possibility with this "callback" approach to video rendering is that with vlcj-5.x and VLC 4.x it becomes very easy to embed a media player in an OpenGL application. This should give very good playback performance, possibly right on a par with the embedded approach, but it would mean foremost developing an OpenGL application.

For more information see the vlcj-lwjgl-demo project.

The beauty of vlcj's design and architecture means adopting any of these approaches is near identical in usage, only a single video surface abstraction is the difference.

vlcj-5

vlcj-5 is primarily an incremental feature-release, preserving the vlcj-4 API as much as possible.

Major New Features

Headline changes:

  • requires LibVLC 4.0.0+
  • requires Java 11+
  • full support for LibVLC native "video engine" rendering, specifically via OpenGL
  • fast vs precise native seeking when setting media position/time
  • native generation of in-memory thumbnail pictures
  • new native track selection API - this makes it possible to reliably make use of video Sample Aspect Ratio (SAR) when rendering video using the "callback" video players and means e.g. DVD video now can render properly with callback players

For a full list of changes in this release, check the release milestones:

Examples

All of the examples have been moved to the vlcj-examples project.

Known Issues

  • When using the new alternate renderer API, if you attempt to play another media while a media is already being sent to something like Chromecast you may experience problems - even if you stop the current media first. The cause of this is currently unknown, but it may be a native issue.

Tutorials

New tutorials for vlcj-4 are available here.

These tutorials are still valid for vlcj-5.

There are simple tests or demo applications available for pretty much every aspect of vlcj functionality, these are provided in the vlcj-examples project.

There is also a major demo application available at the vlcj-player project page.

Building vlcj - sun.misc.Unsafe

When compiling with Maven it is simply not possible to suppress the warnings about using sun.misc.Unsafe.

Maven Dependency

Add the following Maven dependency to your own project pom.xml:

<dependency>
    <groupId>uk.co.caprica</groupId>
    <artifactId>vlcj</artifactId>
    <version>5.0.0</version>
</dependency>

The core vlcj project now no longer contains the required JNA bindings to LibVLC, these are provided instead by the separate vlcj-natives project. The vlcj core project therefore has a new required dependency on the vlcj-natives project.

If you are using Maven (or similar) to manage your dependencies, the vlcj-natives dependency will be handled automatically for you (you only need to explicitly add vlcj to your project, not vlcj-natives).

If you are installing vlcj manually, then you will need to include the new vlcj-natives jar file along with the existing vlcj jar file.

Threading Model

This section is very important.

With vlcj-4 and later, every native event coming from LibVLC is processed on the native callback thread. This should give some small performance gains when compared with vlcj-3.

The critical issue is that it is generally not permitted to call back into LibVLC from the event callback thread. Doing so may cause subtle failures or outright hard JVM crashes.

A prime example of the sort of trap waiting for you is the very common case of handling a media player "finished" event so that you can then play the next item in a play-list:

mediaPlayer.events().addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
    @Override
    public void finished(MediaPlayer mediaPlayer) {
        mediaPlayer.media().play(nextMrl); // <-- This is VERY BAD INDEED
    }
});

In this example, the finished method is being invoked on a native callback thread owned by LibVLC. The implementation of this method is calling back into LibVLC when it invokes play. This is very likely to cause a JVM crash and kill your application.

In cases such as this, you should make use of an asynchronous task-executor queue conveniently provided by the MediaPlayer object passed to the listener method:

mediaPlayer.events().addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
    @Override
    public void finished(final MediaPlayer mediaPlayer) {
        mediaPlayer.submit(new Runnable() {
            @Override
            public void run() {
                mediaPlayer.media().play(nextMrl);
            }
        });
    }
});

You should not use this mechanism for all of your event handlers, only those that will call back into LibVLC.

Other high-level vlcj components may also provide their own asynchronous task executor, it is not limited to the media player.

An added caveat for vlcj-4 and later is that when you implement event handling you must be sure to execute quickly, and to not block the native thread with any long-running operation.

Your event handler implementations must not throw an Exception, failure of your event handlers to catch and handle any thrown exception may prevent other listeners from being notified of the event.

If you are attempting to use multiple media players in your application, or using media players from multiple threads, you may need to take some extra care so that you do not have multiple threads calling into LibVLC concurrently. You may encounter subtle bugs and races that are very difficult to diagnose.

In addition, you must take care not to update Swing UI components from the native thread - all Swing UI updates are supposed to go via the Swing Event Dispatch Thread (EDT).

You can achieve this in the usual way by using SwingUtilities#invokeLater in your event handler:

mediaPlayer.events().addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
    @Override
    public void finished(MediaPlayer mediaPlayer) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                // ...change UI state here...
            }
        });
    }
});

Garbage Collection

This section is also very important.

Ordinarily when developing with Java you will be used to not thinking about the scope and life-cycle of the objects that you create, instead you will rely on the garbage collector in the Java Virtual Machine to just take care of things for you.

With vlcj's MediaPlayerFactory, MediaPlayer, and associated classes, you must take care to prevent those objects from being garbage collected - if you do not, at best your media player will simply unexpectedly stop working and at worst you may see a fatal JVM crash.

Those vlcj objects wrap a native resource (e.g. a native media player). Those media player resources know nothing about any JVM. So just because a native media player is still "alive" it will not prevent your object instance from being garbage collected. If your object instance does get garbage collected, the native resource still has no idea, and will will keeping sending native events back to the JVM via a callback. If your object is gone, that native callback has nowhere to go and will most likely crash your JVM.

A very common mistake is to declare vlcj objects on the local heap in some sort of initialisation method:

    private void setup() {
        MediaPlayerFactory factory = new MediaPlayerFactory();
        EmbeddedMediaPlayer mediaPlayer = factory.mediaPlayers().newEmbeddedMediaPlayer();
        // ... other initialisation ...
    }

When this method returns, the factory and mediaPlayer objects go out of scope and become eligible for garbage collection. The garbage collection may happen immediately, or some time later.

The most common solution is to change those local heap declarations to class fields:

    private MediaPlayerFactory factory;

    private EmbeddedMediaPlayer mediaPlayer;

    private void setup() {
        factory = new MediaPlayerFactory();
        mediaPlayer = factory.mediaPlayers().newEmbeddedMediaPlayer();
        // ... other initialisation ...
    }

This is fine and will work in most cases, but you must still make sure that the enclosing class does not itself get garbage collected!

See this vlcj garbage collection tutorial for more information.

Privacy Considerations

When parsing media, depending on configuration, it may be possible that a remote network access is made for meta data and album/cover art. This may unintentionally expose sensitive data regarding the media being parsed.

To affirmatively prevent all network access for meta data, consider using the --no-metadata-network-access argument when creating a MediaPlayerFactory.

It should also be possible to prevent such network accesses by using appropriate ParseFlag values when requesting to parse media.

Even with network access disabled, some media cover art may still appear locally (e.g. ~/.cache/vlc) - this does not necessarily mean that a remote network request was made for the cover art, rather the art that was already embedded in the media file was extracted to this temporary cache directory.

In any case, you need to be aware of this issue and inform users of your application about it.

Documentation

The vlcj project page is at github.

Online Javadoc is available at javadoc.io.

Examples

There are many examples in the vlcj-examples project showing how to use vlcj.

For a more complete example of a feature-rich media player built with vlcj, see vlcj-player.

Related Projects

Support

Free support for Open Source and non-commercial projects is generally provided - you can use github issues for this purpose.

Commercial services for vlcj are provided by Caprica Software.

Support for commercial projects is provided exclusively on commercial terms - send an email to the following address for more information:

mark [dot] lee [at] capricasoftware [dot] co [dot] uk

LibVLC Discord

Join the chat at https://discord.gg/3h3K3JF

vlcj is part of the LibVLC Discord Community server. Feel free to come say hi!

License

The vlcj framework is provided under the GPL, version 3 or later.

If you want to consider a commercial license for vlcj that allows you to use and redistribute vlcj without complying with the GPL then send an email to the address below:

mark [dot] lee [at] capricasoftware [dot] co [dot] uk

Contributors

Contributions are welcome and will always be licensed according to the Open Source license terms of the project (currently GPL).

However, for a contribution to be accepted you must agree to transfer any copyright so that your contribution does not impede our ability to provide commercial licenses for vlcj.

vlcj's People

Contributors

caprica avatar mfkl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vlcj's Issues

Switch to maven for builds

Drop the Ant build.xml and build.properties.

Use a maven pom.xml for new builds.

Nothing in this issue should be considered an endorsement of maven - I really, really, really dislike maven.

For the foreseeable future a private repository will be used to host the maven build artefacts.

There is no way to get youtube video buffering state

Hello caprica :),

I'm trying to create a good youtube player with jvlc, but I couldn't find a way to create a graphic buffer state
for buffering event.

Is there some VLC API that can help us? :D

My idea is make a progress bar with 2 levels:

  1. Media download state. (%)
  2. Media position. (>)

totalsize (=)

Like youtube player... ex: |>>>>>>%%%%%============|

MediaList and libvlc_media_list_item_at_index

There are a number of places where libvlc_media_list_item_at_index is invoked - the libvlc documentation suggests that invoking this method increases the reference count on the media - this is not released anywhere so if the documentation is correct then a memory leak will occur.

Media Changed event should include the media handle

When the native "media player media changed" event fires, the new media descriptor is available - this should be propagated to the Java event handlers.

It would also be useful to include the MRL associated with the media descriptor in the event notification.

Investigate JNA thread usage with Java callbacks

Various callbacks from native threads are used in vlcj, mainly this is related to event delivery. Cursory testing shows that only one thread is used to fire event notifications - this is good.

However, when working on experimental integration of the native log, as per #45, in the worst case each new log message is spawning a new thread to invoke the callback.

So in particular for the logging case, but perhaps also the event handling case, the use of JNA's Native.setCallbackThreadInitializer(callback, new CallbackThreadInitializer()) should be investigated, implemented and tested.

Use a strategy to discover the location of libvlc natives

Implement a pluggable strategy and component to try and automatically locate and configure the location of the libvlc native shared libraries in the absence of proper configuration.

This really should not be necessary since a properly configured environment will initialise the factory without any issue whatsoever, but adding it might make it easier for client developers, and reduce the amount of alleged bug reports.

Which VLCJ method i can use to simulate similar to this mplayer primitives?

I have this for mplayer, which in full-screen mode plays for 2 times and then stop/exit automatically:

Vidoe files (.avi, .flv, .webm, .mp4 ) :

mplayer -zoom -x 1280 -y 720 -fs -framedrop -loop 2 -fixed-vo <place-your-file-path-file-name-here>

Image files (jpeg, png):

mplayer -zoom -x 1280 -y 720 -fs -framedrop -loop 2 -fixed-vo mf://<place-your-file-path-file-name-here>

But how do i do the -loop 2 thing with VLCJ, is there any method exist which can allow the same?

Improve support and handling of meta data

Currently the meta data implementation is not ideal, this should be changed to:

  1. Clean-up the API, one of the meta data functions actually belongs on the media player factory;
  2. Provide a means to set and update meta data;
  3. Lazily retrieve the artwork rather than triggering an HTTP request immediately when the meta data is required;
  4. Fix a typo in a method name ("encodedby" should be "encodedBy");
  5. Update existing tests;
  6. Add a test to update meta data.

Part of this task should include refactoring the getNativeString() method which is duplicated in a number of classes to a single implementation in its own class.

The implementation for setting meta data will provide an API that works directly on the underlying media file.

Bump version to 2.0.0 for next release

Increase the version number to 2.0.0.

This is necessitated by dropping 1.5 compatibility.

vlc is also bumping the next version to 2.0 instead of 1.1.2, so it is a good idea to stay in sync with vlc.

Update the readme, the version artefacts in source code and so on.

Media List needs to take account of sub-items and meta

A media instance inside a media list might have sub-items.

The media instance and/or the sub-items might not have an MRL - it might have meta instead, e.g. the "name".

This is useful when integrating the discoverer component, but may also be useful for existing components that play sub-items (like in a YouTube or internet radio player).

Playlist Component

Implement a high-level play-list component.

The media list player is not really recommended for use, instead it is recommended to use a regular media player and manage the play-list yourself. It would therefore be useful to provide a standard play-list component.

Such a component might work by association with a media player component, or might be an inherent part of a media player component.

vlcj + vlc-2.0.2 + dshow

The CaptureTest works with my Cam on Windows 7 64bit and 32bit VLC 2.0.1 like a charm.

But when I try the VLC 2.0.2-nightly build (which contains a bugfix I need) I do get the following error message:

[003ea6b0] main input error: open of `dshow://' failed
[003ea6b0] main input error: Ihre Eingabe konnte nicht geรถffnet werden
[003ea6b0] main input error: VLC kann die MRL 'dshow://' nicht รถffnen. Sehen Sie fรผr Details im Fehlerprotokoll nach.

If I start the capturing using commandline and transcode/duplicate/display and streaming it works without any problems.

crash fatal error problem when play two sounds at the same time !!

Hello ,

i have problem in my application , and i tried many solutions but
it didn't solve any thing ! , so please i need your help :

i have intro consist of JFrame windows including JPanel of intro , and this intro have background music , and 3 buttons ,
and this buttons when hover , it play a wave file, and when clicked ,
its play another wav file ,

the problem is , some times when i run the application and hover in
any button , some vm crash occur and the application stop ! ...

this is my Media Class which i use it to play any media sounds :

package game.core;


import java.awt.Canvas;
import java.awt.Color;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JPanel;
import uk.co.caprica.vlcj.player.MediaPlayerFactory;
import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer;
import uk.co.caprica.vlcj.player.headless.HeadlessMediaPlayer;


public class Media extends JPanel implements Runnable{ 

    private URL url;

    Canvas c = new Canvas();
    String[] libvlcArgs = {"--clock-jitter=0","--no-video-title-show","--no-xlib","--no-osd","--no-overlay"};
    private MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(libvlcArgs);
    public EmbeddedMediaPlayer mediaPlayer  = mediaPlayerFactory.newEmbeddedMediaPlayer(null);
    private String filename = null;
    private Thread runner = null;


    public Media(String file){ 
        filename = file;
        runner = new Thread(this);
    }

    // play once time
    public void play(){
        mediaPlayer.playMedia(filename);
    }

    // play once time
    public synchronized void playVideo(JFrame frame,boolean fullscreen,Color co){

        this.setLayout(new GridLayout());
        this.setBackground(co);

        if(frame.isVisible()){
             this.add(c);
        }

        if(fullscreen){
            mediaPlayer.setFullScreen(true);
            GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
        }

        frame.setContentPane(this);
        frame.setVisible(true);

        mediaPlayer.setVideoSurface(mediaPlayerFactory.newVideoSurface(c));
        mediaPlayer.playMedia(filename);



    }

    public synchronized void stop(){
        mediaPlayer.stop();
    }

    public synchronized void loop(int count){
        mediaPlayer.setRepeat(true);
    }

    @Override
    public void run() {
    }

} 

and this is the buttons actions methods :


    @Override
    public void mousePressed(MouseEvent e) {
                new Media(Base.Audio_Dir+"intro_button_click."+Base.audio_extension).play();
    }

    @Override
    public void mouseEntered(MouseEvent e) {
           new Media(Base.Audio_Dir+"intro_button_over."+Base.audio_extension).play();
    }
}

so i don't know what is the problem !! ....

finally please tell me final solve please because i tried many methods
after reading in this group posts , but it's didn't solved any
thing !!

Thank you !..

when play video in full screen mode , it's don't appear in some computers !! ..

Hello ,

i have problem in my application , and i tried many solutions but
it didn't solve any thing ! , so please i need your help :

when i play some video in fullscreen mode , it's play very good in
computers , but i tried it from computer run under win7 32bit , but
some problem occured , the problem is the video play but with video
sound only !! , and don't show the video screen !! .... but when i
reviewed the log error , i found this error :

[1ebf8410] direct3d vout display error: Could not create the D3D
device! (hr=0x88760868)
[1ebf8410] direct3d vout display error: Direct3D could not be opened
[1ebf8410] directx vout display error: cannot get primary surface
(error -2005532447)
[1ebf8410] directx vout display error: cannot initialize DirectX
DirectDraw
[1ebf8410] main vout display error: Failed to set on top
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!

this is my Media Class which i use it to play any media Videos & Sounds:

Note : i use playVideo() method in this Class to play Videos

package game.core;


import java.awt.Canvas;
import java.awt.Color;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JPanel;
import uk.co.caprica.vlcj.player.MediaPlayerFactory;
import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer;
import uk.co.caprica.vlcj.player.headless.HeadlessMediaPlayer;


public class Media extends JPanel implements Runnable{ 

    private URL url;

    Canvas c = new Canvas();
    String[] libvlcArgs = {"--clock-jitter=0","--no-video-title-show","--no-xlib","--no-osd","--no-overlay"};
    private MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(libvlcArgs);
    public EmbeddedMediaPlayer mediaPlayer  = mediaPlayerFactory.newEmbeddedMediaPlayer(null);
    private String filename = null;
    private Thread runner = null;


    public Media(String file){ 
        filename = file;
        runner = new Thread(this);
    }

    // play once time
    public void play(){
        mediaPlayer.playMedia(filename);
    }

    // play once time
    public synchronized void playVideo(JFrame frame,boolean fullscreen,Color co){

        this.setLayout(new GridLayout());
        this.setBackground(co);

        if(frame.isVisible()){
             this.add(c);
        }

        if(fullscreen){
            mediaPlayer.setFullScreen(true);
            GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
        }

        frame.setContentPane(this);
        frame.setVisible(true);

        mediaPlayer.setVideoSurface(mediaPlayerFactory.newVideoSurface(c));
        mediaPlayer.playMedia(filename);



    }

    public synchronized void stop(){
        mediaPlayer.stop();
    }

    public synchronized void loop(int count){
        mediaPlayer.setRepeat(true);
    }

    @Override
    public void run() {
    }

} 

so i don't know what is the problem !! ....

finally please tell me final solve please because i tried many methods
after reading in this group posts , but it's didn't solved any
thing !!

Thank you !..

Implement missing Media List events

There is currently no implementation for:

media_list_item_added
media_list_item_deleted

media_list_will_add_item
media_list_will_delete_item

These events should be implemented for the media list. The notification should include the native media instance and the associated MRL.

The media list implementation does not in fact deal with ANY events so there is no event manager registration, no event listener registration, and no event handler implementation.

A similar solution to media player events is required (e.g. to serialise the execution of the events).

Upgrade source compatibility to 1.6

Java 1.5 has been old for a long time.

Upgrade the source compatibility to 1.6, making using of the @Override annotation where appropriate (currently littered with commented out code).

Replace the 1.5 workaround for array copying with the cleaner 1.6 replacement.

As a consequence, vlcj will now require at least Java 1.6.

Update the build system to specify the new JDK version.

MediaListPlayer.playItem(int index) method gives fatal error

I am using mediaListPlayer.playItem(index) and passing index as a arugment but i get fatal error....(i.e) while running mediaListPlayer.playItem(0) i am getting fatal error.

package basicembeddedmedialistplayercomponenttest;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import uk.co.caprica.vlcj.binding.internal.libvlc_media_t;
import uk.co.caprica.vlcj.component.EmbeddedMediaListPlayerComponent;
import uk.co.caprica.vlcj.player.MediaPlayerFactory;
import uk.co.caprica.vlcj.player.list.MediaListPlayer;
import uk.co.caprica.vlcj.player.list.MediaListPlayerEventAdapter;
import uk.co.caprica.vlcj.test.VlcjTest;

/**

  • Test demonstrating the {@link EmbeddedMediaListPlayerComponent}.
  • Leaving aside the standard Swing initialisation code, there are only
  • three lines of vlcj code required to create a media player, add a
  • media item to the play list, and play the media.
    */
    public class BasicEmbeddedMediaListPlayerComponentTest extends VlcjTest {

/**

  • Media player component.
    */
    private final EmbeddedMediaListPlayerComponent mediaListPlayerComponent;
    final MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();
    MediaListPlayer mediaListPlayer = mediaPlayerFactory.newMediaListPlayer();

/**

  • Application entry point.
    *
  • @param args
    */
    public static void main(String[] args) {
    if(args.length != 1) {
    System.out.println("Specify an mrl to add to the play-list");
    System.exit(1);
    }
    final String mrl = args[0];
    setLookAndFeel();
    SwingUtilities.invokeLater(new Runnable() {
    @OverRide
    public void run() {
    new BasicEmbeddedMediaListPlayerComponentTest().start(mrl);
    }
    });
    }

/**

  • Create a new test.
    */
    private BasicEmbeddedMediaListPlayerComponentTest() {
    JFrame frame = new JFrame("vlcj Media Player Component Test");
    JPanel panel = new JPanel(new BorderLayout());
    frame.setLayout(new BorderLayout());
    JButton nextButton;
    nextButton = new JButton("Next");
    mediaListPlayerComponent = new EmbeddedMediaListPlayerComponent();
    panel.add(mediaListPlayerComponent);
    panel.add(nextButton,BorderLayout.EAST);
    nextButton.addActionListener(new ActionListener() {
    @OverRide
    public void actionPerformed(ActionEvent e) {
    mediaListPlayerComponent.getMediaListPlayer().playNext();
    }
    });

mediaListPlayerComponent.getMediaListPlayer().addMediaListPlayerEventListener(new MediaListPlayerEventAdapter() {
@OverRide
public void nextItem(MediaListPlayer mediaListPlayer, libvlc_media_t item, String itemMrl) {
System.out.println("nextItem()");
}
});

frame.add(panel);
frame.setLocation(100, 100);
frame.setSize(1050, 600);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}

/**

  • Start playing a movie.
    *
  • @param mrl mrl
    */
    private void start(String mrl) {
    // One line of vlcj code to add the media to the play-list...
    mediaListPlayerComponent.getMediaList().addMedia("CS101.mp4",":start-time=10",":stop-time=15");

mediaListPlayerComponent.getMediaList().addMedia("Slide3.png","image-duration=10");
mediaListPlayerComponent.getMediaList().addMedia("bunny.mp4",":start-time=10",":stop-time=15");

//mediaListPlayerComponent.getMediaListPlayer().play();
mediaListPlayerComponent.getMediaListPlayer().playItem(1);

// mediaListPlayer.setMediaList(mediaList);
// mediaListPlayer.setMode(MediaListPlayerMode.LOOP);
//
// mediaListPlayer.play();
}
}

Please suggest some alternative method that can be used instead of mediaListPlayer.playItem(index);
it's urgent...Kindly help me.
Thanks.

No video on windows 7 64 bits

Hi, Iยดm here again :).

No video is playing on win7 64, I tried with many files and the log
shows that is playing for 1 second and finish. but all videos had 1 minute or more.

vlcj: (Info.java:66)                           | INFO  | vlcj: 2.0.0
vlcj: (Info.java:67)                           | INFO  | java: 1.6.0_26 Sun Microsystems Inc.
vlcj: (Info.java:68)                           | INFO  | java home: C:\Program Files (x86)\Java\jdk1.6.0_25\jre
vlcj: (Info.java:69)                           | INFO  | os: Windows 7 6.1 x86
vlcj: (LibVlcFactory.java:143)                 | INFO  | vlc: 2.1.0-git-20120214-0005 Rincewind, changeset 1.3.0-git-1196-gf0cc43f
vlcj: (LibVlcFactory.java:144)                 | INFO  | libvlc: C:\Users\dn48908\workspace\Moviee\lib\native\win\x86\libvlc.dll
vlcj: (MediaPlayerFactory.java:191)            | DEBUG | MediaPlayerFactory(libvlc=Proxy interface to Native Library <C:\Users\dn48908\workspace\Moviee\lib\native\win\x86\libvlc.dll@1862467584>,libvlcArgs=[--no-plugins-cache, --no-video-title-show, --no-snapshot-preview, --quiet, --quiet-synchro, --intf, dummy])
vlcj: (MediaPlayerFactory.java:194)            | DEBUG | jna.library.path=null
vlcj: (MediaPlayerFactory.java:222)            | DEBUG | instance=native@0x18f21280
vlcj: (MediaPlayerFactory.java:430)            | DEBUG | newEmbeddedMediaPlayer(fullScreenStrategy=null)
vlcj: (DefaultMediaPlayer.java:167)            | DEBUG | DefaultMediaPlayer(libvlc=Proxy interface to Native Library <C:\Users\dn48908\workspace\Moviee\lib\native\win\x86\libvlc.dll@1862467584>, instance=native@0x18f21280)
vlcj: (DefaultMediaPlayer.java:1495)           | DEBUG | createInstance()
vlcj: (DefaultMediaPlayer.java:1498)           | DEBUG | mediaPlayerInstance=native@0x18fcd118
vlcj: (DefaultMediaPlayer.java:1501)           | DEBUG | mediaPlayerEventManager=native@0x18fd7840
vlcj: (DefaultMediaPlayer.java:1548)           | DEBUG | registerEventListener()
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerMediaChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerNothingSpecial
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerOpening
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBuffering
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPlaying
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPaused
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerStopped
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerForward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBackward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEndReached
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEncounteredError
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTimeChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPositionChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSeekableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPausableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTitleChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSnapshotTaken
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerLengthChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerVout
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (MediaPlayerFactory.java:499)            | DEBUG | newVideoSurface(canvas=java.awt.Canvas[canvas0,0,0,0x0,invalid])
vlcj: (MediaPlayerFactory.java:514)            | DEBUG | videoSurface=uk.co.caprica.vlcj.player.embedded.videosurface.CanvasVideoSurface@633e5e
vlcj: (DefaultEmbeddedMediaPlayer.java:142)    | DEBUG | setVideoSurface(videoSurface=uk.co.caprica.vlcj.player.embedded.videosurface.CanvasVideoSurface@633e5e)
vlcj: (DefaultMediaPlayer.java:173)            | DEBUG | addMediaPlayerEventListener(listener=uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent[panel0,0,0,0x0,invalid,layout=java.awt.BorderLayout])
vlcj: (DefaultEmbeddedMediaPlayer.java:222)    | DEBUG | setOverlay(overlay=null)
vlcj: (DefaultEmbeddedMediaPlayer.java:238)    | DEBUG | enableOverlay(enable=false)
vlcj: (DefaultEmbeddedMediaPlayer.java:304)    | DEBUG | removeOverlay()
vlcj: (DefaultEmbeddedMediaPlayer.java:284)    | DEBUG | addOverlay(overlay=null)
vlcj: (DefaultMediaPlayer.java:199)            | DEBUG | playMedia(mrl=C:\Users\dn48908\Downloads\FlickAnimation.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:208)            | DEBUG | prepareMedia(mrl=C:\Users\dn48908\Downloads\FlickAnimation.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1633)           | DEBUG | setMedia(media=C:\Users\dn48908\Downloads\FlickAnimation.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1646)           | DEBUG | mediaInstance=native@0x18fdd258
vlcj: (DefaultMediaPlayer.java:1579)           | DEBUG | registerMediaEventListener()
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaMetaChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaSubItemAdded
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaDurationChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaParsedChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaFreed
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaStateChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:659)            | DEBUG | play()
vlcj: (DefaultEmbeddedMediaPlayer.java:314)    | DEBUG | onBeforePlay()
vlcj: (DefaultEmbeddedMediaPlayer.java:151)    | DEBUG | attachVideoSurface()
vlcj: (CanvasVideoSurface.java:67)             | DEBUG | attach()
vlcj: (DefaultMediaPlayer.java:1788)           | DEBUG | mediaChanged(mediaPlayer=uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer@609959)
vlcj: (WindowsVideoSurfaceAdapter.java:41)     | DEBUG | attach(componentId=5114706)
vlcj: (DefaultMediaPlayer.java:1792)           | DEBUG | Raising event for new media
vlcj: (DefaultMediaPlayer.java:1842)           | DEBUG | finished(mediaPlayer=uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer@609959)
vlcj: (DefaultMediaPlayer.java:1805)           | DEBUG | finished(mediaPlayer=uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer@609959)
vlcj: (DefaultMediaPlayer.java:1822)           | DEBUG | No repeat```

main vout display error: Failed to set on top

I was testing the latest VLCJ 2.0.0 from GitHub with VideoLAN.org nightly build 2.1.0 under Windows XP SP3. It was using JNA 3.4.0 taken from Maven's local repository.

But, I got "main vout display error: Failed to set on top" when playing a media using the method playMedia(mrl, options)

I was able to play the media. However, I could not disable the video title show using VLC command line option --no-video-title-show or :no-video-title-show. The video title kept showing in the center of the video playback. I was also feeling that other VLC command line options were not in effect when passing them as the options string into the method's second parameter; for example: sharpen-sigma, blur-factor, etc.

Here is my VLCJ logs:

       _       _
__   _| | ___ (_)
\ \ / / |/ __|| |
 \ V /| | (__ | |
  \_/ |_|\___|/ | 2.0.0
            |__/  www.capricasoftware.co.uk

VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VLCJ.  If not, see <http://www.gnu.org/licenses/>.

Copyright 2009, 2010, 2011, 2012 Caprica Software Limited.

vlcj: (Info.java:66)                           | INFO  | vlcj: 2.0.0
vlcj: (Info.java:67)                           | INFO  | java: 1.6.0_29 Sun Microsystems Inc.
vlcj: (Info.java:68)                           | INFO  | java home: C:\Program Files\Java\jre6
vlcj: (Info.java:69)                           | INFO  | os: Windows XP 5.1 x86
vlcj: (LibVlcFactory.java:143)                 | INFO  | vlc: 2.1.0-git-20120217-0011 Rincewind, changeset 1.3.0-git-1240-g04c6044
vlcj: (LibVlcFactory.java:144)                 | INFO  | libvlc: C:\PROJECTS\Eclipse\working\workspace\MyVideoPlayer\.\lib\libvlc.dll
vlcj: (MediaPlayerFactory.java:191)            | DEBUG | MediaPlayerFactory(libvlc=Proxy interface to Native Library <C:\PROJECTS\Eclipse\working\workspace\MyVideoPlayer\.\lib\libvlc.dll@1781530624>,libvlcArgs=[])
vlcj: (MediaPlayerFactory.java:194)            | DEBUG | jna.library.path=./lib
vlcj: (MediaPlayerFactory.java:222)            | DEBUG | instance=native@0x48ed7f78
vlcj: (MediaPlayerFactory.java:447)            | DEBUG | newDirectMediaPlayer(width=640,height=480,renderCallback=com.ste.core.VideoPanel$TestRenderCallback@1474fc)
vlcj: (MediaPlayerFactory.java:462)            | DEBUG | newDirectMediaPlayer(format=RV32,width=640,height=480,pitch=2560,renderCallback=com.ste.core.VideoPanel$TestRenderCallback@1474fc)
vlcj: (DefaultMediaPlayer.java:167)            | DEBUG | DefaultMediaPlayer(libvlc=Proxy interface to Native Library <C:\PROJECTS\Eclipse\working\workspace\MyVideoPlayer\.\lib\libvlc.dll@1781530624>, instance=native@0x48ed7f78)
vlcj: (DefaultMediaPlayer.java:1495)           | DEBUG | createInstance()
vlcj: (DefaultMediaPlayer.java:1498)           | DEBUG | mediaPlayerInstance=native@0x48ede3b8
vlcj: (DefaultMediaPlayer.java:1501)           | DEBUG | mediaPlayerEventManager=native@0x4a734450
vlcj: (DefaultMediaPlayer.java:1548)           | DEBUG | registerEventListener()
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerMediaChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerNothingSpecial
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerOpening
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBuffering
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPlaying
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPaused
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerStopped
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerForward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBackward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEndReached
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEncounteredError
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTimeChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPositionChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSeekableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPausableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTitleChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSnapshotTaken
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerLengthChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerVout
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:193)            | DEBUG | setStandardMediaOptions(options=[])
vlcj: (DefaultMediaPlayer.java:615)            | DEBUG | setTitle(title=10)
vlcj: (DefaultMediaPlayer.java:302)            | DEBUG | setRepeat(repeat=true)
vlcj: (DefaultMediaPlayer.java:316)            | DEBUG | setPlaySubItems(playSubItems=true)
vlcj: (DefaultMediaPlayer.java:199)            | DEBUG | playMedia(mrl=C:\Documents and Settings\Administrator\My Documents\MyVideoPlayer\videos\uav-low.wmv,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:208)            | DEBUG | prepareMedia(mrl=C:\Documents and Settings\Administrator\My Documents\MyVideoPlayer\videos\uav-low.wmv,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1633)           | DEBUG | setMedia(media=C:\Documents and Settings\Administrator\My Documents\MyVideoPlayer\videos\uav-low.wmv,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1646)           | DEBUG | mediaInstance=native@0x48edde78
vlcj: (DefaultMediaPlayer.java:1579)           | DEBUG | registerMediaEventListener()
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaMetaChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaSubItemAdded
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaDurationChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaParsedChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaFreed
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1585)           | DEBUG | event=libvlc_MediaStateChanged
vlcj: (DefaultMediaPlayer.java:1587)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1788)           | DEBUG | mediaChanged(mediaPlayer=uk.co.caprica.vlcj.player.direct.DefaultDirectMediaPlayer@2d13c1)
vlcj: (DefaultMediaPlayer.java:1792)           | DEBUG | Raising event for new media
vlcj: (DefaultMediaPlayer.java:659)            | DEBUG | play()
[4a6b39b8] main vout display error: Failed to set on top
vlcj: (DefaultMediaPlayer.java:338)            | DEBUG | subItems()
vlcj: (DefaultMediaPlayer.java:1685)           | DEBUG | handleSubItems()
vlcj: (DefaultMediaPlayer.java:1691)           | DEBUG | subItemList=null
vlcj: (DefaultMediaPlayer.java:659)            | DEBUG | play()
vlcj: (DefaultMediaPlayer.java:1465)           | DEBUG | release()
vlcj: (DefaultMediaPlayer.java:1515)           | DEBUG | destroyInstance()
vlcj: (DefaultMediaPlayer.java:1517)           | DEBUG | Detach media events...
vlcj: (DefaultMediaPlayer.java:1597)           | DEBUG | deregisterMediaEventListener()
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaMetaChanged
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaSubItemAdded
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaDurationChanged
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaParsedChanged
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaFreed
vlcj: (DefaultMediaPlayer.java:1603)           | DEBUG | event=libvlc_MediaStateChanged
vlcj: (DefaultMediaPlayer.java:1519)           | DEBUG | Media events detached.
vlcj: (DefaultMediaPlayer.java:1522)           | DEBUG | Release media...
vlcj: (DefaultMediaPlayer.java:1524)           | DEBUG | Media released.
vlcj: (DefaultMediaPlayer.java:1527)           | DEBUG | Detach media player events...
vlcj: (DefaultMediaPlayer.java:1563)           | DEBUG | deregisterEventListener()
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerMediaChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerNothingSpecial
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerOpening
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerBuffering
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerPlaying
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerPaused
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerStopped
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerForward
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerBackward
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerEndReached
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerEncounteredError
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerTimeChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerPositionChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerSeekableChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerPausableChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerTitleChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerSnapshotTaken
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerLengthChanged
vlcj: (DefaultMediaPlayer.java:1567)           | DEBUG | event=libvlc_MediaPlayerVout
vlcj: (DefaultMediaPlayer.java:1529)           | DEBUG | Media player events detached.
vlcj: (DefaultMediaPlayer.java:1534)           | DEBUG | Release media player...
vlcj: (DefaultMediaPlayer.java:1536)           | DEBUG | Media player released.
vlcj: (DefaultMediaPlayer.java:1539)           | DEBUG | Shut down listeners...
vlcj: (DefaultMediaPlayer.java:1541)           | DEBUG | Listeners shut down.
vlcj: (MediaPlayerFactory.java:264)            | DEBUG | release()

Logo visible only for a fraction of a second

Playing a mkv video file works fine but when I apply an logo, it is only visible for a fraction of a second and then disappears:
mediaPlayerComponent.getMediaPlayer().playMedia(videoFile.getAbsolutePath());
Logo.logo().file(new File("C:\Tmp\Test.png")).location(0, 0).position(libvlc_logo_position_e.top_left).opacity(100).enable(true).apply(mediaPlayerComponent.getMediaPlayer());

I have to stop playback, start it again, now the logo is again only visible for a fraction of a second.

  • Video resolution is 640x360 mkv
  • Logo: 640x360 transparant png
  • played in a 576x324 window
  • vlcj 2.0.0 and using the delivered dependencies

If you need more details: let me know

BUG - when i play a file which has 720p and 60fps. There is huge lipsync.

I am testing few files which is 720p and 60fps. Which perfectly works with mplayer, ffmpeg conversion, windows media players.
But once i usevlcj (vlc stable or latest version from git), it keeps lipsync video is late then audio.

  • i then converted the main files using ffmpeg to .flv .webm, .avi but still same with vlcj (vlc)

How can i resolve this please?

I am using the latest jar in Windows 7 home edition, but fails.

I tested this in my Linux box and it works. But when i run it in Windows its not working. How can i fix it?

run:

       _       _
__   _| | ___ (_)
\ \ / / |/ __|| |
 \ V /| | (__ | |
  \_/ |_|\___|/ | 2.0.0
            |__/  www.capricasoftware.co.uk

VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VLCJ.  If not, see <http://www.gnu.org/licenses/>.

Copyright 2009, 2010, 2011, 2012 Caprica Software Limited.

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Failed to load the native library.

The error was "Unable to load library 'libvlc': Kan opgegeven module niet vinden.
".

The required native libraries are named "libvlc.dll" and "libvlccore.dll".

In the text below <libvlc-path> represents the name of the directory containing "libvlc.dll" and "libvlccore.dll"...

There are a number of different ways to specify where to find the native libraries:
 1. Include NativeLibrary.addSearchPath("libvlc", "<libvlc-path>"); at the start of your application code.
 2. Include System.setProperty("jna.library.path", "<libvlc-path>"); at the start of your application code.
 3. Specify -Djna.library.path=<libvlc-path> on the command-line when starting your application.
 4. Add <libvlc-path> to the system search path (and reboot).

If this still does not work, then it may be necessary to explicitly add the native library directory to the operating
system configuration - e.g. on Linux this might mean setting the LD_LIBRARY_PATH environment variable, or adding
configuration to the "/etc/ld.so.conf" file or the "/etc/ld.so.conf.d" directory. Of these options, setting
LD_LIBRARY_PATH is the only one that would not require root privileges.

Finally, it is not possible to mix CPU architectures - it is not possible for a 64-bit Java Virtual Machine to load
32-bit native libraries.

More information may be available in the log, specify -Dvlcj.log=DEBUG on the command-line when starting your application.

    at uk.co.caprica.vlcj.binding.LibVlcFactory.create(LibVlcFactory.java:170)
    at uk.co.caprica.vlcj.player.MediaPlayerFactory.<init>(MediaPlayerFactory.java:168)
    at javaapplication1.MediaPlayer.<init>(MediaPlayer.java:59)
    at javaapplication1.MediaPlayer$1.run(MediaPlayer.java:41)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
    at java.awt.EventQueue.access$000(EventQueue.java:101)
    at java.awt.EventQueue$3.run(EventQueue.java:666)
    at java.awt.EventQueue$3.run(EventQueue.java:664)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
BUILD STOPPED (total time: 25 seconds)

JVM Crash in JDWP Transport Listener: dt_socket

I programmed an app using JME3 and VLCJ to play videos as 3D textures in JME.
Essentially followed this example: http://code.google.com/p/vlcj/wiki/JMonkeyEngineExample

I got it to work and it runs for a while and occasionally crashes as follows.
It does crashes at different times (from start of program).
Sometimes it runs for 10min+ and does not crash, sometimes it crashes after about 1 min.

I am using the 64bit version of VLC:
VLC media player 2.0.1 Twoflower - Compiled by: funman on altair.via.ecp.f (Mar 16 2012 15:23:08).

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d8ce057, pid=7508, tid=1684

JRE version: 6.0_26-b03

Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode windows-amd64 compressed oops)

Problematic frame:

V [jvm.dll+0x3e057]

If you would like to submit a bug report, please visit:

http://java.sun.com/webapps/bugreport/crash.jsp

--------------- T H R E A D ---------------

Current thread (0x000000000686a000): JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=1684, stack(0x0000000007c90000,0x0000000007d90000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000010

Registers:
RAX=0x0000000000000010, RBX=0x000000000686a000, RCX=0x0000000000000000, RDX=0x000000006de7b220
RSP=0x0000000007d8f8f8, RBP=0x0000000780abaac0, RSI=0x0000000000000000, RDI=0x0000000006868bd0
R8 =0x0000000000000000, R9 =0x0000000007d8faa0, R10=0x0000000000000000, R11=0x0000000007d8f9b8
R12=0x0000000780abaa84, R13=0x00000000005b91c8, R14=0x0000000000000001, R15=0x0000000000000000
RIP=0x000000006d8ce057, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x0000000007d8f8f8)
0x0000000007d8f8f8: 000000006da164d9 000000000686a000
0x0000000007d8f908: 000000000072b7a0 000000000072b7a0
0x0000000007d8f918: 0000000780abaa40 0000000000000000
0x0000000007d8f928: 0000000006868ba0 00000000005b9160
0x0000000007d8f938: 00000000005b9150 00000000005b9538
0x0000000007d8f948: 00000000005b9550 00000000005b9160
0x0000000007d8f958: 000000000686a000 000000000072b7a0
0x0000000007d8f968: 0000000000000000 000000000686a000
0x0000000007d8f978: 0000000006868bd0 00000000005b9540
0x0000000007d8f988: 00000000005b9550 00000000005b9928
0x0000000007d8f998: 0000000007d8fdf0 0000000006870fd0
0x0000000007d8f9a8: 0000000000000000 0000000000000000
0x0000000007d8f9b8: 0000000000000000 000000000859b368
0x0000000007d8f9c8: 0000000007d8faa0 0000000007d8faf0
0x0000000007d8f9d8: 000000000072a1c0 000000000686a000
0x0000000007d8f9e8: 000000006db9fe4b 000000000072a1c0

Instructions: (pc=0x000000006d8ce057)
0x000000006d8ce037: 05 c4 6f 6c 00 83 f8 ff 74 03 89 14 08 c2 00 00
0x000000006d8ce047: cc cc cc cc cc cc cc cc cc 48 63 05 61 4d 6e 00
0x000000006d8ce057: 48 8b 04 08 c3 cc cc cc cc 48 63 05 51 4d 6e 00
0x000000006d8ce067: 48 89 14 08 c3 cc cc cc cc 48 63 05 3d 4d 6e 00

Register to memory mapping:

RAX=0x0000000000000010 is an unknown value
RBX=0x000000000686a000 is a thread
RCX=0x0000000000000000 is an unknown value
RDX=0x000000006de7b220 is an unknown value
RSP=0x0000000007d8f8f8 is pointing into the stack for thread: 0x000000000686a000
RBP=0x0000000780abaac0 is an oop
[Ljava.lang.Thread;

  • klass: 'java/lang/Thread'[]
  • length: 32
    RSI=0x0000000000000000 is an unknown value
    RDI=0x0000000006868bd0 is an unknown value
    R8 =0x0000000000000000 is an unknown value
    R9 =0x0000000007d8faa0 is pointing into the stack for thread: 0x000000000686a000
    R10=0x0000000000000000 is an unknown value
    R11=0x0000000007d8f9b8 is pointing into the stack for thread: 0x000000000686a000
    R12=0x0000000780abaa84 is an oop
    [Ljava.lang.Thread;
  • klass: 'java/lang/Thread'[]
  • length: 32
    R13=0x00000000005b91c8 is an unknown value
    R14=0x0000000000000001 is an unknown value
    R15=0x0000000000000000 is an unknown value

Stack: [0x0000000007c90000,0x0000000007d90000], sp=0x0000000007d8f8f8, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x3e057]

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x0000000008d12000 JavaThread "Thread-1705" [_thread_blocked, id=6660, stack(0x000000000ff00000,0x0000000010000000)]
0x0000000008d0f000 JavaThread "pool-1-thread-1" [_thread_blocked, id=2840, stack(0x000000000fe00000,0x000000000ff00000)]
0x0000000008d0e000 JavaThread "Thread-10" [_thread_blocked, id=6492, stack(0x0000000019420000,0x0000000019520000)]
0x0000000008d0d800 JavaThread "Thread-11" [_thread_blocked, id=5420, stack(0x0000000019320000,0x0000000019420000)]
0x0000000008d0d000 JavaThread "Thread-8" [_thread_blocked, id=7952, stack(0x0000000019220000,0x0000000019320000)]
0x0000000008d0c000 JavaThread "Thread-9" [_thread_blocked, id=1224, stack(0x0000000019120000,0x0000000019220000)]
0x0000000008d0b800 JavaThread "Thread-6" [_thread_blocked, id=7404, stack(0x0000000019020000,0x0000000019120000)]
0x0000000008d0a800 JavaThread "Thread-7" [_thread_blocked, id=5144, stack(0x0000000018f20000,0x0000000019020000)]
0x0000000008d0a000 JavaThread "Thread-4" [_thread_blocked, id=8840, stack(0x0000000018e20000,0x0000000018f20000)]
0x0000000008d09000 JavaThread "Thread-5" [_thread_blocked, id=7868, stack(0x0000000018210000,0x0000000018310000)]
0x0000000008d05800 JavaThread "jME3 Audio Thread" daemon [_thread_blocked, id=9060, stack(0x00000000148f0000,0x00000000149f0000)]
0x0000000008d08800 JavaThread "DestroyJavaVM" [_thread_blocked, id=1592, stack(0x0000000002660000,0x0000000002760000)]
0x0000000008d07800 JavaThread "LWJGL Renderer Thread" [_thread_in_native, id=1912, stack(0x000000000d560000,0x000000000d660000)]
0x0000000008d07000 JavaThread "TimerQueue" daemon [_thread_blocked, id=8088, stack(0x000000000d460000,0x000000000d560000)]
0x0000000008d06000 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=5048, stack(0x000000000ef20000,0x000000000f020000)]
0x0000000008d04000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1832, stack(0x0000000009860000,0x0000000009960000)]
0x00000000087da000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8352, stack(0x0000000009660000,0x0000000009760000)]
0x000000000689b000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2060, stack(0x0000000008290000,0x0000000008390000)]
0x0000000006889000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7232, stack(0x0000000008190000,0x0000000008290000)]
0x0000000006884800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=8568, stack(0x0000000008090000,0x0000000008190000)]
0x0000000006873800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=4768, stack(0x0000000007f90000,0x0000000008090000)]
0x0000000006870800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=7940, stack(0x0000000007e90000,0x0000000007f90000)]
=>0x000000000686a000 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=1684, stack(0x0000000007c90000,0x0000000007d90000)]
0x000000000685e000 JavaThread "Attach Listener" daemon [_thread_blocked, id=8708, stack(0x0000000007650000,0x0000000007750000)]
0x000000000685c800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8960, stack(0x0000000007550000,0x0000000007650000)]
0x000000000680c800 JavaThread "Finalizer" daemon [_thread_blocked, id=1852, stack(0x0000000007450000,0x0000000007550000)]
0x0000000006806800 JavaThread "Reference Handler" daemon [_thread_blocked, id=7844, stack(0x0000000007350000,0x0000000007450000)]

Other Threads:
0x00000000067fd000 VMThread [stack: 0x0000000007250000,0x0000000007350000] [id=6436]
0x000000000689e800 WatcherThread [stack: 0x0000000008390000,0x0000000008490000] [id=7240]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x000000000072b7a0] Threads_lock - owner thread: 0x000000000686a000

Heap
PSYoungGen total 537664K, used 229784K [0x00000007d58b0000, 0x00000007fe5f0000, 0x0000000800000000)
eden space 491584K, 46% used [0x00000007d58b0000,0x00000007e37ee1b0,0x00000007f38c0000)
from space 46080K, 2% used [0x00000007f38c0000,0x00000007f39e8000,0x00000007f65c0000)
to space 44864K, 0% used [0x00000007fba20000,0x00000007fba20000,0x00000007fe5f0000)
PSOldGen total 127808K, used 33978K [0x0000000780a00000, 0x00000007886d0000, 0x00000007d58b0000)
object space 127808K, 26% used [0x0000000780a00000,0x0000000782b2eaa0,0x00000007886d0000)
PSPermGen total 48448K, used 21590K [0x000000077b800000, 0x000000077e750000, 0x0000000780a00000)
object space 48448K, 44% used [0x000000077b800000,0x000000077cd159c0,0x000000077e750000)

Code Cache [0x0000000002760000, 0x00000000029d0000, 0x0000000005760000)
total_blobs=1164 nmethods=611 adapters=514 free_code_cache=48092928 largest_free_block=17728

Dynamic libraries:
0x0000000000400000 - 0x000000000042e000 C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe
0x00000000777d0000 - 0x0000000077979000 C:\Windows\SYSTEM32\ntdll.dll
0x00000000775b0000 - 0x00000000776cf000 C:\Windows\system32\kernel32.dll
0x000007fefdf50000 - 0x000007fefdfbc000 C:\Windows\system32\KERNELBASE.dll
0x000007feff910000 - 0x000007feff9eb000 C:\Windows\system32\ADVAPI32.dll
0x000007fefe570000 - 0x000007fefe60f000 C:\Windows\system32\msvcrt.dll
0x000007fefe7a0000 - 0x000007fefe7bf000 C:\Windows\SYSTEM32\sechost.dll
0x000007feff7e0000 - 0x000007feff90d000 C:\Windows\system32\RPCRT4.dll
0x00000000776d0000 - 0x00000000777ca000 C:\Windows\system32\USER32.dll
0x000007fefe500000 - 0x000007fefe567000 C:\Windows\system32\GDI32.dll
0x000007feff9f0000 - 0x000007feff9fe000 C:\Windows\system32\LPK.dll
0x000007fefe130000 - 0x000007fefe1f9000 C:\Windows\system32\USP10.dll
0x000007fefdb00000 - 0x000007fefdb57000 C:\Windows\system32\apphelp.dll
0x000007feeb6c0000 - 0x000007feeb711000 C:\Windows\AppPatch\AppPatch64\AcGenral.DLL
0x000007fefdad0000 - 0x000007fefdaf5000 C:\Windows\system32\SspiCli.dll
0x000007fefe0b0000 - 0x000007fefe121000 C:\Windows\system32\SHLWAPI.dll
0x000007feff5d0000 - 0x000007feff7d3000 C:\Windows\system32\ole32.dll
0x000007fefe820000 - 0x000007feff5a8000 C:\Windows\system32\SHELL32.dll
0x0000000073010000 - 0x0000000073013000 C:\Windows\system32\sfc.dll
0x000007fef9170000 - 0x000007fef9180000 C:\Windows\system32\sfc_os.DLL
0x000007fefd170000 - 0x000007fefd18e000 C:\Windows\system32\USERENV.dll
0x000007fefdc30000 - 0x000007fefdc3f000 C:\Windows\system32\profapi.dll
0x000007fefc050000 - 0x000007fefc068000 C:\Windows\system32\dwmapi.dll
0x000007fef8af0000 - 0x000007fef8b08000 C:\Windows\system32\MPR.dll
0x000007fefe200000 - 0x000007fefe22e000 C:\Windows\system32\IMM32.DLL
0x000007fefe610000 - 0x000007fefe719000 C:\Windows\system32\MSCTF.dll
0x000000006d890000 - 0x000000006e048000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll
0x000007fefc220000 - 0x000007fefc25b000 C:\Windows\system32\WINMM.dll
0x000000006d800000 - 0x000000006d80e000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\verify.dll
0x000000006d450000 - 0x000000006d477000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.dll
0x00000000779a0000 - 0x00000000779a7000 C:\Windows\system32\PSAPI.DLL
0x000000006d4c0000 - 0x000000006d4f4000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\jdwp.dll
0x000000006d6d0000 - 0x000000006d6d8000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\npt.dll
0x000000006d850000 - 0x000000006d862000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\zip.dll
0x000000006d310000 - 0x000000006d319000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\dt_socket.dll
0x000007fefe230000 - 0x000007fefe27d000 C:\Windows\system32\WS2_32.dll
0x000007fefe0a0000 - 0x000007fefe0a8000 C:\Windows\system32\NSI.dll
0x000007fefb740000 - 0x000007fefb755000 C:\Windows\system32\NLAapi.dll
0x000007fef3d60000 - 0x000007fef3d75000 C:\Windows\system32\napinsp.dll
0x000007fef3d40000 - 0x000007fef3d59000 C:\Windows\system32\pnrpnsp.dll
0x000007fefd450000 - 0x000007fefd4a5000 C:\Windows\System32\mswsock.dll
0x000007fefd280000 - 0x000007fefd2db000 C:\Windows\system32\DNSAPI.dll
0x000007fef4ff0000 - 0x000007fef4ffb000 C:\Windows\System32\winrnr.dll
0x000007fef3d30000 - 0x000007fef3d40000 C:\Windows\system32\wshbth.dll
0x000007fef8e80000 - 0x000007fef8eae000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x000007fefacf0000 - 0x000007fefad17000 C:\Windows\system32\IPHLPAPI.DLL
0x000007feface0000 - 0x000007fefaceb000 C:\Windows\system32\WINNSI.DLL
0x000007fefa670000 - 0x000007fefa6c3000 C:\Windows\System32\fwpuclnt.dll
0x000007fef8b10000 - 0x000007fef8b18000 C:\Windows\system32\rasadhlp.dll
0x000007fefcee0000 - 0x000007fefcee7000 C:\Windows\System32\wshtcpip.dll
0x000000006d0a0000 - 0x000000006d263000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\awt.dll
0x000007fefba80000 - 0x000007fefbaf1000 C:\Windows\system32\WINSPOOL.DRV
0x000007fefc4f0000 - 0x000007fefc6e4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac

\COMCTL32.dll
0x000007fefa3b0000 - 0x000007fefa450000 C:\Windows\WinSxS\amd64_microsoft.windows.common-

controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\comctl32.dll
0x000007fefd5e0000 - 0x000007fefd5f7000 C:\Windows\system32\CRYPTSP.dll
0x000007fefd070000 - 0x000007fefd0b7000 C:\Windows\system32\rsaenh.dll
0x000007fefdb60000 - 0x000007fefdb6f000 C:\Windows\system32\CRYPTBASE.dll
0x000000006d6a0000 - 0x000000006d6b7000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\net.dll
0x000007fefd690000 - 0x000007fefd697000 C:\Windows\System32\wship6.dll
0x0000000180000000 - 0x0000000180038000 C:\Users\User\AppData\Local\Temp\jna\jna117363308833771409.dll
0x00000000748f0000 - 0x0000000074920000 C:\Program Files\VideoLAN\VLC\libvlc.dll
0x0000000072240000 - 0x0000000072485000 C:\Program Files\VideoLAN\VLC\libvlccore.dll
0x0000000074930000 - 0x0000000074950000 C:\Program Files\VideoLAN\VLC\plugins\audio_output\libaout_directx_plugin.dll
0x0000000074a90000 - 0x0000000074ab0000 C:\Program Files\VideoLAN\VLC\plugins\audio_output\libwaveout_plugin.dll
0x00000000745a0000 - 0x00000000745c3000 C:\Program Files\VideoLAN\VLC\plugins\video_output\libdirectx_plugin.dll
0x0000000074620000 - 0x000000007463c000 C:\Program Files\VideoLAN\VLC\plugins\mmxext\libmemcpymmxext_plugin.dll
0x0000000074510000 - 0x0000000074531000 C:\Program Files\VideoLAN\VLC\plugins\control\libhotkeys_plugin.dll
0x000007fefc110000 - 0x000007fefc166000 C:\Windows\system32\uxtheme.dll
0x0000000010000000 - 0x0000000010024000 C:\Program Files (x86)\4t Tray Minimizer\ShellEh519.x64
0x000007feffa00000 - 0x000007feffad7000 C:\Windows\system32\oleaut32.dll
0x000007fefaff0000 - 0x000007fefaff9000 C:\Program Files\Synergy\synrgyhk.DLL
0x0000000067c70000 - 0x0000000067d42000 C:\Windows\system32\MSVCR100.dll
0x000000006d340000 - 0x000000006d3a6000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\fontmanager.dll
0x000007feea0f0000 - 0x000007feea2ef000 C:\Windows\system32\d3d9.dll
0x000007fefcbb0000 - 0x000007fefcbbc000 C:\Windows\system32\VERSION.dll
0x000007fefa640000 - 0x000007fefa647000 C:\Windows\system32\d3d8thk.dll
0x0000000074080000 - 0x0000000074123000 C:\Windows\system32\aticfx64.dll
0x000007fefafd0000 - 0x000007fefafdd000 C:\Windows\system32\atiu9p64.dll
0x0000000009fd0000 - 0x000000000a4dd000 C:\Windows\system32\atiumd64.dll
0x000000000a810000 - 0x000000000ab3b000 C:\Windows\system32\atiumd6a.dll
0x000000006d6c0000 - 0x000000006d6cb000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\nio.dll
0x0000000007750000 - 0x00000000077b5000 C:\Program Files\WIDCOMM\Bluetooth Software\btmmhook.dll
0x00000000079b0000 - 0x00000000079fe000 C:\workspace2\PictureWall\lwjgl64.dll
0x000007feeb2c0000 - 0x000007feeb3dd000 C:\Windows\system32\OPENGL32.dll
0x000007fef3010000 - 0x000007fef303d000 C:\Windows\system32\GLU32.dll
0x000007feeb1c0000 - 0x000007feeb2b1000 C:\Windows\system32\DDRAW.dll
0x000007fef82b0000 - 0x000007fef82b8000 C:\Windows\system32\DCIMAN32.dll
0x000007fefe280000 - 0x000007fefe457000 C:\Windows\system32\SETUPAPI.dll
0x000007fefdd00000 - 0x000007fefdd36000 C:\Windows\system32\CFGMGR32.dll
0x000007fefdce0000 - 0x000007fefdcfa000 C:\Windows\system32\DEVOBJ.dll
0x000007fefc290000 - 0x000007fefc298000 C:\Windows\system32\atig6pxx.dll
0x0000000069030000 - 0x000000006a53d000 C:\Windows\system32\atio6axx.dll
0x000007fef5e50000 - 0x000007fef5e5c000 C:\Windows\system32\atig6txx.dll
0x000000000a6e0000 - 0x000000000a73a000 C:\Windows\system32\atiadlxx.dll
0x000007fefcbc0000 - 0x000007fefcbd1000 C:\Windows\system32\WTSAPI32.dll
0x000007fefdfc0000 - 0x000007fefdffa000 C:\Windows\system32\WINTRUST.dll
0x000007fefdde0000 - 0x000007fefdf47000 C:\Windows\system32\CRYPT32.dll
0x000007fefdcd0000 - 0x000007fefdcdf000 C:\Windows\system32\MSASN1.dll
0x000007fef4cc0000 - 0x000007fef4d5c000 C:\Windows\system32\mscms.dll
0x000007fefb000000 - 0x000007fefb042000 C:\Windows\system32\icm32.dll
0x000000000dbd0000 - 0x000000000dc2c000 C:\workspace2\PictureWall\OpenAL64.dll
0x000007fefe460000 - 0x000007fefe4f9000 C:\Windows\system32\CLBCatQ.DLL
0x000007fefc3f0000 - 0x000007fefc43b000 C:\Windows\System32\MMDevApi.dll
0x000007fefc2c0000 - 0x000007fefc3ec000 C:\Windows\System32\PROPSYS.dll
0x000007fefc170000 - 0x000007fefc1f8000 C:\Windows\system32\dsound.dll
0x000007fefcb80000 - 0x000007fefcbac000 C:\Windows\system32\POWRPROF.dll
0x000007fefbb50000 - 0x000007fefbb9f000 C:\Windows\system32\AUDIOSES.DLL
0x000000006d570000 - 0x000000006d5a5000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\jpeg.dll
0x000000006d270000 - 0x000000006d2ad000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\cmm.dll
0x00000000741e0000 - 0x0000000074221000 C:\Program Files\VideoLAN\VLC\plugins\access\liblibbluray_plugin.dll
0x00000000743c0000 - 0x00000000743eb000 C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_bd_plugin.dll
0x0000000074180000 - 0x00000000741d4000 C:\Program Files\VideoLAN\VLC\plugins\access\libdvdnav_plugin.dll
0x00000000744f0000 - 0x000000007450e000 C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_vdr_plugin.dll
0x0000000074160000 - 0x0000000074180000 C:\Program Files\VideoLAN\VLC\plugins\access\libfilesystem_plugin.dll
0x0000000073ed0000 - 0x0000000073f58000 C:\Program Files\VideoLAN\VLC\plugins\stream_filter\libstream_filter_httplive_plugin.dll
0x0000000074140000 - 0x000000007415d000 C:\Program Files\VideoLAN\VLC\plugins\access\libstream_filter_rar_plugin.dll
0x0000000074050000 - 0x0000000074078000 C:\Program Files\VideoLAN\VLC\plugins\access\libzip_plugin.dll
0x0000000074030000 - 0x000000007404c000 C:\Program Files\VideoLAN\VLC\plugins\stream_filter\libstream_filter_record_plugin.dll
0x0000000073ff0000 - 0x0000000074030000 C:\Program Files\VideoLAN\VLC\plugins\demux\libmp4_plugin.dll
0x0000000073fc0000 - 0x0000000073fe7000 C:\Program Files\VideoLAN\VLC\plugins\demux\libavi_plugin.dll
0x0000000073ea0000 - 0x0000000073ec3000 C:\Program Files\VideoLAN\VLC\plugins\demux\libasf_plugin.dll
0x0000000073e80000 - 0x0000000073e9e000 C:\Program Files\VideoLAN\VLC\plugins\demux\libflacsys_plugin.dll
0x0000000073e60000 - 0x0000000073e7e000 C:\Program Files\VideoLAN\VLC\plugins\demux\libes_plugin.dll
0x0000000073e30000 - 0x0000000073e5c000 C:\Program Files\VideoLAN\VLC\plugins\demux\libmpc_plugin.dll
0x0000000073e10000 - 0x0000000073e2d000 C:\Program Files\VideoLAN\VLC\plugins\demux\libnuv_plugin.dll
0x0000000073df0000 - 0x0000000073e0c000 C:\Program Files\VideoLAN\VLC\plugins\demux\libtta_plugin.dll
0x0000000073dd0000 - 0x0000000073ded000 C:\Program Files\VideoLAN\VLC\plugins\demux\libwav_plugin.dll
0x0000000073da0000 - 0x0000000073dca000 C:\Program Files\VideoLAN\VLC\plugins\services_discovery\libsap_plugin.dll

VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:61289 -Dfile.encoding=Cp1252
java_command: MyClass
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
PATH=C:\Program Files\Java\jdk1.6.0_26\jre\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows

Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files

\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;c:\Program Files\Intel\DMIX;C:\Program Files

(x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin;c:\Program Files (x86)\ATI Technologies\ATI.ACE

\Core-Static;C:\Program Files (x86)\Intel\Services\IPT;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5;C:\Program Files

(x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files

(x86)\Common Files\Roxio Shared\OEM\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared;C:\Program Files (x86)\Roxio\OEM\AudioCore;c:

\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\SlikSvn\bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\VodBurner;C:

\Program Files (x86)\Universal Extractor;C:\Program Files (x86)\Universal Extractor\bin;C:\Program Files (x86)\VDownloader;C:\Program Files (x86)\Common Files\GTK

\2.0\bin
USERNAME=User
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

--------------- S Y S T E M ---------------

OS: Windows 7 Build 7601 Service Pack 1

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 8344472k(3505848k free), swap 16687096k(10426752k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (20.1-b02) for windows-amd64 JRE (1.6.0_26-b03), built on May 4 2011 07:15:24 by "java_re" with MS VC++ 8.0 (VS2005)

time: Sat Apr 21 16:23:21 2012
elapsed time: 28 seconds

I have 2 problems and i need your help please ..โ€

Hello ,

i have two problems in my application , and i tried many solutions but
it didn't solve any thing ! , so please i need your help :

**first problem is :
i have intro , and this intro have background music , and 3 buttons ,
and this buttons when hover , it play a wave file, and when clicked ,
its play another wav file ,

the problem is , some times when i run the application and hover in
any button , some vm crash occur and the application stop ! ...

this is my code :

mediaPlayer.playMedia(filename);

**second problem is :
when i play some video in fullscreen mode , it's play very good in
computers , but i tried it from computer run under win7 32bit , but
some problem occured , the problem is the video play but with video
sound only !! , and don't show the video screen !! .... but when i
reviewed the log error , i found this error :

[1ebf8410] direct3d vout display error: Could not create the D3D
device! (hr=0x88760868)
[1ebf8410] direct3d vout display error: Direct3D could not be opened
[1ebf8410] directx vout display error: cannot get primary surface
(error -2005532447)
[1ebf8410] directx vout display error: cannot initialize DirectX
DirectDraw
[1ebf8410] main vout display error: Failed to set on top
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!
[1ebf8410] direct2d vout display error: Cannot resize render target
(width = 1970611201, height = 1108468800, hr = 0x8899001d)!

===========================================================================

so i don't know what is the problem !! ....

finally please tell me final solve please because i tried many methods
after reading in this group posts , but it's didn't solved any
thing !!

Thank you !..

No video displayed (screen black)

Hello,
i've been trying to make vlcj working for a day and I need some help. My window is black, no video is displayed. I have no error, no exception.

Here is the code and debug :

import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import uk.co.caprica.vlcj.binding.LibVlc;
import uk.co.caprica.vlcj.player.MediaPlayerFactory;
import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer;
import uk.co.caprica.vlcj.runtime.RuntimeUtil;

import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;

public class Player {

    public static void main(final String[] args) {
        NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), "C:/Default/vlc-2.0.0");
        Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);

        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new Player(args);
            }
        });
    }

    private Player(String[] args) {
        JFrame frame = new JFrame("vlcj Tutorial");

        MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();

        Canvas c = new Canvas();
        c.setBackground(Color.black);
        JPanel p = new JPanel();
        p.setLayout(new BorderLayout());
        p.add(c, BorderLayout.CENTER);
        frame.add(p, BorderLayout.CENTER);


        EmbeddedMediaPlayer mediaPlayer = mediaPlayerFactory.newEmbeddedMediaPlayer();
        mediaPlayer.setVideoSurface(mediaPlayerFactory.newVideoSurface(c));
        frame.setLocation(100, 100);
        frame.setSize(1050, 600);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);


        mediaPlayer.playMedia("C:/Default/Player/big_buck_bunny_480p_surround-fix.avi");
    }
}

Here is the debug outputted :


      _       _
__   _| | ___ (_)
\ \ / / |/ __|| |
 \ V /| | (__ | |
  \_/ |_|\___|/ | 2.0.0
            |__/  www.capricasoftware.co.uk

VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VLCJ.  If not, see <http://www.gnu.org/licenses/>.

Copyright 2009, 2010, 2011, 2012 Caprica Software Limited.

vlcj: (Info.java:66)                           | INFO  | vlcj: 2.0.0
vlcj: (Info.java:67)                           | INFO  | java: 1.6.0_13 Sun Microsystems Inc.
vlcj: (Info.java:68)                           | INFO  | java home: C:\Program Files\Java\jre6
vlcj: (Info.java:69)                           | INFO  | os: Windows XP 5.1 x86
vlcj: (LibVlcFactory.java:143)                 | INFO  | vlc: 2.0.0 Twoflower, changeset 2.0.0-0-g421a4fc
vlcj: (LibVlcFactory.java:144)                 | INFO  | libvlc: C:\Default\vlc-2.0.0\libvlc.dll
vlcj: (MediaPlayerFactory.java:191)            | DEBUG | MediaPlayerFactory(libvlc=Proxy interface to Native Library <C:\Default\vlc-2.0.0\libvlc.dll@1781530624>,libvlcArgs=[])
vlcj: (MediaPlayerFactory.java:194)            | DEBUG | jna.library.path=null
vlcj: (MediaPlayerFactory.java:222)            | DEBUG | instance=native@0x2dd5720
vlcj: (MediaPlayerFactory.java:419)            | DEBUG | newEmbeddedMediaPlayer()
vlcj: (MediaPlayerFactory.java:430)            | DEBUG | newEmbeddedMediaPlayer(fullScreenStrategy=null)
vlcj: (DefaultMediaPlayer.java:167)            | DEBUG | DefaultMediaPlayer(libvlc=Proxy interface to Native Library <C:\Default\vlc-2.0.0\libvlc.dll@1781530624>, instance=native@0x2dd5720)
vlcj: (DefaultMediaPlayer.java:1495)           | DEBUG | createInstance()
vlcj: (DefaultMediaPlayer.java:1498)           | DEBUG | mediaPlayerInstance=native@0x33aa758
vlcj: (DefaultMediaPlayer.java:1501)           | DEBUG | mediaPlayerEventManager=native@0x33447f0
vlcj: (DefaultMediaPlayer.java:1548)           | DEBUG | registerEventListener()
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerMediaChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerNothingSpecial
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerOpening
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBuffering
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPlaying
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPaused
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerStopped
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerForward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerBackward
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEndReached
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerEncounteredError
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTimeChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPositionChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSeekableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerPausableChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerTitleChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerSnapshotTaken
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerLengthChanged
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (DefaultMediaPlayer.java:1552)           | DEBUG | event=libvlc_MediaPlayerVout
vlcj: (DefaultMediaPlayer.java:1554)           | DEBUG | result=0
vlcj: (MediaPlayerFactory.java:499)            | DEBUG | newVideoSurface(canvas=java.awt.Canvas[canvas0,0,0,0x0,invalid])
vlcj: (MediaPlayerFactory.java:514)            | DEBUG | videoSurface=uk.co.caprica.vlcj.player.embedded.videosurface.CanvasVideoSurface@723d7c
vlcj: (DefaultEmbeddedMediaPlayer.java:142)    | DEBUG | setVideoSurface(videoSurface=uk.co.caprica.vlcj.player.embedded.videosurface.CanvasVideoSurface@723d7c)
vlcj: (DefaultMediaPlayer.java:199)            | DEBUG | playMedia(mrl=C:/Default/Player/big_buck_bunny_480p_surround-fix.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:208)            | DEBUG | prepareMedia(mrl=C:/Default/Player/big_buck_bunny_480p_surround-fix.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1633)           | DEBUG | setMedia(media=C:/Default/Player/big_buck_bunny_480p_surround-fix.avi,mediaOptions=[])
vlcj: (DefaultMediaPlayer.java:1646)           | DEBUG | mediaInstance=null
vlcj: (DefaultMediaPlayer.java:659)            | DEBUG | play()
vlcj: (DefaultEmbeddedMediaPlayer.java:314)    | DEBUG | onBeforePlay()
vlcj: (DefaultEmbeddedMediaPlayer.java:151)    | DEBUG | attachVideoSurface()
vlcj: (CanvasVideoSurface.java:67)             | DEBUG | attach()
vlcj: (WindowsVideoSurfaceAdapter.java:41)     | DEBUG | attach(componentId=1836610)

Is this line normal ?

vlcj: (DefaultMediaPlayer.java:1646)           | DEBUG | mediaInstance=null

Thank you !

BUG - libdvdread: Encrypted DVD support unavailable.

I have installed related libraries but i have this still error ongoing.

Scenario/use case:

  • Any help please why its keep throwing while using VLCJ but not when i directly use VLC?
  • i am using this contents ( http://orange.blender.org/media-gallery )
  • also to play my own 3D files created with open source blender.
# BUG section start

libdvdread: Using libdvdcss version 1.2.11 for DVD access
libdvdread: Can't stat /var/tmp/video/t1.avi??
No such file or directory
libdvdread: Could not open /var/tmp/video/t1.avi??
[0x9db29ac] filesystem access error: cannot open file /var/tmp/video/t1.avi?? (No such file or directory)
[0x9db29ac] main access error: File reading failed
[0x9db29ac] main access error: VLC could not open the file "/var/tmp/video/t1.avi??".
[0x9dacacc] main input error: open of `file:///var/tmp/video/t1.avi
' failed: (null)
[0x9dacacc] main input error: Your input can't be opened
[0x9dacacc] main input error: VLC is unable to open the MRL 'file:///var/tmp/video/t1.avi
'. Check the log for details.

# BUG section end

Steps i took to resolve this BUG:

Step 1) I installed all the missing libraries it was showing above or related:

a) Dependencies

vobcopy.i686 libdvdread-debuginfo.i686 : Debug information for package libdvdread libdvdread-devel.i686 : Development files for libdvdread libdvdread.i686 : A library for reading DVD video discs based on Ogle code

b) Dependencies libdvdcss


# rpm -Uvh http://rpm.livna.org/livna-release.rpm
Retrieving http://rpm.livna.org/livna-release.rpm
warning: /var/tmp/rpm-tmp.DmYc7B: Header V4 DSA/SHA1 Signature, key ID a109b1ec: NOKEY
Preparing...                ########################################### [100%]
   1:livna-release          ########################################### [100%]

# yum install libdvdcss
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
livna                                                             | 3.6 kB     00:00     
livna/primary_db                                                  | 3.3 kB     00:00     
livna/group                                                       |  824 B     00:00     
ftp://mirrors.tummy.com/pub/rpm.livna.org/repo/15/i386/debug/repodata/repomd.xml: [Errno 14] FTP Error 550 : ftp://mirrors.tummy.com/pub/rpm.livna.org/repo/15/i386/debug/repodata/repomd.xml 
Trying other mirror.
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/repo/15/i386/debug/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/repo/15/i386/debug/repodata/repomd.xml
Trying other mirror.
http://wftp.tu-chemnitz.de/pub/linux/livna/repo/15/i386/debug/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://ftp.tu-chemnitz.de/pub/linux/livna/repo/15/i386/debug/repodata/repomd.xml
Trying other mirror.
livna-debuginfo                                                   | 2.6 kB     00:00     
livna-debuginfo/primary_db                                        | 1.8 kB     00:00     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libdvdcss.i686 0:1.2.11-1.fc15.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
 Package             Arch           Version                        Repository       Size
=========================================================================================
Installing:
 libdvdcss           i686           1.2.11-1.fc15.remi             livna            44 k

Transaction Summary
=========================================================================================
Install       1 Package(s)

Total download size: 44 k
Installed size: 135 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 44 k
libdvdcss-1.2.11-1.fc15.remi.i686.rpm                             |  44 kB     00:00     
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID a109b1ec: NOKEY
Public key for libdvdcss-1.2.11-1.fc15.remi.i686.rpm is not installed
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
Importing GPG key 0xA109B1EC:
 Userid : Livna.org rpms 
 Package: 1:livna-release-1-1.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : libdvdcss-1.2.11-1.fc15.remi.i686                                     1/1 

Installed:
  libdvdcss.i686 0:1.2.11-1.fc15.remi                                                    

Complete!

Alternate constructor in MediaList does not initialise properly

In the constructor that accepts a mediaListInstance, the proper initialisation does not occur (e.g. it does not invoke createInstance()).

In fact, this constructor does not appear to be used anywhere - this should be checked and removed or fixed to do proper implementation.

Crash Error with libvlc 2.0

The method AudioPlayerComponent().getMediaPlayer().playMedia(media) causes a crash in JVM when called, using the version 1.2 the vlclib vlcj says that is a too old version and ask for an updated one.

VLC_PLUGIN_PATH

This isn't really a bug in vlcj, but just to let everyone know: the new VLC_PLUGIN_PATH property currently only works if it is set in your Environment Variables on Windows, not in your Java System Path. These suggested lines when trying to properly set the plugin path do not work then:

  1. If using vlc 1.2.x, include System.setProperty("VLC_PLUGIN_PATH", ""); at the start of your application code.
  2. If using vlc 1.2.x, specify -DVLC_PLUGIN_PATH= on the command-line when starting your application.

Unfortunately if you are trying to package VLC with your application (say in a Java Web Start) then you must have a plugins folder in the same directory as libvlc before you start it.

Can't find libvlc.dll dependent libraries

Vlcj was giving libvlc.dll loading problem so I tried this line of code just to see if library is loading successfully.

System.load("C:\Program Files\VideoLAN\VLC\libvlc.dll");

But its giving me this error

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\VideoLAN\VLC\libvlc.dll: Can't find dependent libraries

Initially I thought its my environment issue so I ran same line of code on different environments i.e. 32 bit Windows, 64 bit Windows and Ubuntu. But Exception remained the same.

What could possibly be the reason? Do I need to report this to VideoLan forums??

I shall be grateful if you help solving this.

Best Regards,
Rabia

Media player event mask should maybe work per-listener instead of per-media-player

There is a feature whereby a media player instance can be configured to only deliver a sub-set of events.

This can be useful, e.g. when creating an out-of-process media player, to reduce the amount of event "traffic" that is flying back-and-forth - postiion-changed and time-changed events will fire very often.

This is controlled by mediaPlayer.enableEvents(int eventMask) and this mechanism is generally sufficient.

However, it may be desirable to configure the event mask per-event-listener rather than per-media-player-instance.

Black screen playing content from HTTP or RTSP streams

Hi,

I'm starting with vlcj, for use with video stream from some IP cameras. These cameras supports H.264/RTSP or MJPEG/HTTP streaming.
When using VLC, all works ok, as you can see in logs below. But when using the same URL, on same machine with a vlcj demo application(DirectTestPlayer), just a black screen(of same size as before) appears.
Using the same application, with a local MPEG movie, works ok.

Any ideas?

Log from vlc in command line:

operator@console:/tmp$ vlc -vvvvv http://172.16.16.45/mjpg/video.mjpg
VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547)
[0x15f8138] main libvlc debug: VLC media player - 2.0.1 Twoflower
[0x15f8138] main libvlc debug: Copyright ยฉ 1996-2012 VLC authors and VideoLAN
[0x15f8138] main libvlc debug: revision 2.0.1-0-gf432547
[0x15f8138] main libvlc debug: configured with ./configure  '--target=x86_64-openwrt-linux' '--host=x86_64-openwrt-linux' '--build=x86_64-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-ipv6' '--disable-hal' '--disable-mtp' '--disable-dbus' '--disable-sout' '--disable-httpd' '--disable-vlm' '--disable-notify' '--disable-dvdnav' '--disable-dshow' '--disable-bda' '--disable-smb' '--disable-dvbpsi' '--disable-v4l2' '--disable-libv4l2' '--disable-libcdio' '--disable-libvcdinfo' '--disable-libcddb' '--disable-cdda' '--disable-vcd' '--disable-dvb' '--disable-screen' '--disable-ogg' '--disable-mkv' '--disable-mod' '--disable-mpc' '--disable-gme' '--disable-mad' '--disable-postproc' '--disable-libsysfs' '--disable-libtar' '--disable-vorbis' '--disable-speex' '--disable-png' '--disable-fluidsynth' '--disable-cmml' '--disable-kate' '--disable-tiger' '--disable-xinerama' '--disable-sdl' '--disable-freetype' '--disable-fribidi' '--disable-fontconfig' '--disable-libxml2' '--disable-hd1000v' '--disable-directx' '--disable-fb' '--disable-wingdi' '--disable-pulse' '--disable-waveout' '--disable-hd1000a' '--disable-upnp' '--disable-skins2' '--disable-qt4' '--disable-wince' '--disable-macosx' '--disable-qnx' '--disable-visual' '--disable-bonjour' '--disable-gnutls' '--disable-activex' '--disable-swscale' '--disable-remoteosd' '--disable-libgcrypt' '--disable-audioscrobbler' '--disable-taglib' '--disable-schroedinger' '--disable-ncurses' '--disable-a52' '--disable-libmpeg2' '--disable-x264' '--enable-faad' '--disable-nls' '--disable-mozilla' '--enable-live555' '--disable-optimizations' '--with-contrib=/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/opt/live/liveMedia' '--enable-glx' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-openwrt-linux' 'target_alias=x86_64-openwrt-linux' 'CC=x86_64-openwrt-linux-gnu-gcc' 'CFLAGS=-O2 -pipe -march=core2 -funit-at-a-time -fhonour-copts -std=gnu99 ' 'LDFLAGS=-L/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/usr/lib -L/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/lib -L/srv/buildbot/pilsner/staging_dir/toolchain-x86_64_gcc-4.4.3_eglibc-2.11/usr/lib -L/srv/buildbot/pilsner/staging_dir/toolchain-x86_64_gcc-4.4.3_eglibc-2.11/lib ' 'CPPFLAGS=-I/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/usr/include -I/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/include -I/srv/buildbot/pilsner/staging_dir/toolchain-x86_64_gcc-4.4.3_eglibc-2.11/usr/include -I/srv/buildbot/pilsner/staging_dir/toolchain-x86_64_gcc-4.4.3_eglibc-2.11/include ' 'CXX=x86_64-openwrt-linux-gnu-g++' 'CXXFLAGS=-O2 -pipe -march=core2 -funit-at-a-time -fhonour-copts -std=gnu99 ' 'PKG_CONFIG_PATH=/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/usr/lib/pkgconfig' 'PKG_CONFIG=/srv/buildbot/pilsner/staging_dir/host/bin/pkg-config' 'PKG_CONFIG_LIBDIR=/srv/buildbot/pilsner/staging_dir/target-x86_64_eglibc-2.11/usr/lib/pkgconfig'
[0x15f8138] main libvlc debug: searching plug-in modules
[0x15f8138] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x15f8138] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x15f8138] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libxcb_screen_plugin.so' (libxcb-xfixes.so.0: cannot open shared object file: No such file or directory)
[0x15f8138] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x15f8138] main libvlc debug: plug-ins loaded: 275 modules
[0x15f8138] main libvlc debug: opening config file (/var/.config/vlc/vlcrc)
[0x15f8138] main libvlc debug: translation test: code is "C"
[0x15f8138] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU 
[0x15f8138] main libvlc debug: looking for memcpy module: 4 candidates
[0x15f8138] main libvlc debug: using memcpy module "memcpymmxext"
[0x1687318] main input debug: Creating an input for 'Media Library'
[0x1687318] main input debug: Input is a meta file: disabling unneeded options
[0x1687318] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1687318] main input debug: `file/xspf-open:///var/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/var/.local/share/vlc/ml.xspf'
[0x1687318] main input debug: creating demux: access='file' demux='xspf-open' location='/var/.local/share/vlc/ml.xspf' file='/var/.local/share/vlc/ml.xspf'
[0x167dd68] main demux debug: looking for access_demux module: 1 candidate
[0x167dd68] main demux debug: no access_demux module matching "file" could be loaded
[0x167dd68] main demux debug: TIMER module_need() : 0.694 ms - Total 0.694 ms / 1 intvls (Avg 0.694 ms)
[0x1687318] main input debug: creating access 'file' location='/var/.local/share/vlc/ml.xspf', path='/var/.local/share/vlc/ml.xspf'
[0x167e6e8] main access debug: looking for access module: 2 candidates
[0x167e6e8] filesystem access debug: opening file `/var/.local/share/vlc/ml.xspf'
[0x167e6e8] main access debug: using access module "filesystem"
[0x167e6e8] main access debug: TIMER module_need() : 1.065 ms - Total 1.065 ms / 1 intvls (Avg 1.065 ms)
[0x16806f8] main stream debug: Using stream method for AStream*
[0x16806f8] main stream debug: starting pre-buffering
[0x16806f8] main stream debug: received first data after 0 ms
[0x16806f8] main stream debug: pre-buffering done 296 bytes in 0s - 1605 KiB/s
[0x1681208] main stream debug: looking for stream_filter module: 6 candidates
[0x1681208] main stream debug: no stream_filter module matching "any" could be loaded
[0x1681208] main stream debug: TIMER module_need() : 4.391 ms - Total 4.391 ms / 1 intvls (Avg 4.391 ms)
[0x1681208] main stream debug: looking for stream_filter module: 1 candidate
[0x1681208] main stream debug: using stream_filter module "stream_filter_record"
[0x1681208] main stream debug: TIMER module_need() : 0.545 ms - Total 0.545 ms / 1 intvls (Avg 0.545 ms)
[0x1687318] main input debug: creating demux: access='file' demux='xspf-open' location='/var/.local/share/vlc/ml.xspf' file='/var/.local/share/vlc/ml.xspf'
[0x1681988] main demux debug: looking for demux module: 1 candidate
[0x1681988] playlist demux debug: using XSPF playlist reader
[0x1681988] main demux debug: using demux module "playlist"
[0x1681988] main demux debug: TIMER module_need() : 0.739 ms - Total 0.739 ms / 1 intvls (Avg 0.739 ms)
[0x16861d8] main demux meta debug: looking for meta reader module: 1 candidate
[0x16861d8] main demux meta warning: cannot load module `/usr/lib/vlc/plugins/lua/liblua_plugin.so' (/usr/lib/liblua.so.5.1.4: undefined symbol: crypt)
[0x16861d8] main demux meta error: corrupt module: /usr/lib/vlc/plugins/lua/liblua_plugin.so
[0x16861d8] main demux meta debug: no meta reader module matching "any" could be loaded
[0x16861d8] main demux meta debug: TIMER module_need() : 1.073 ms - Total 1.073 ms / 1 intvls (Avg 1.073 ms)
[0x1687318] main input debug: `file/xspf-open:///var/.local/share/vlc/ml.xspf' successfully opened
[0x1682238] main xml reader debug: looking for xml reader module: 0 candidates
[0x1682238] main xml reader debug: no xml reader module matched "any"
[0x1682238] main xml reader debug: TIMER module_need() : 0.335 ms - Total 0.335 ms / 1 intvls (Avg 0.335 ms)
[0x1682238] main xml reader error: XML reader not found
[0x1681988] main demux debug: removing module "playlist"
[0x1681208] main stream debug: removing module "stream_filter_record"
[0x167e6e8] main access debug: removing module "filesystem"
[0x1687318] main input debug: TIMER input launching for 'Media Library' : 11.839 ms - Total 11.839 ms / 1 intvls (Avg 11.839 ms)
[0x167d9b8] main interface debug: looking for interface module: 1 candidate
[0x167d9b8] main interface debug: using interface module "hotkeys"
[0x167d9b8] main interface debug: TIMER module_need() : 0.664 ms - Total 0.664 ms / 1 intvls (Avg 0.664 ms)
[0x160acb8] main playlist debug: playlist threads correctly activated
[0x160acb8] main playlist debug: adding item `http://172.16.16.45/mjpg/video.mjpg' ( http://172.16.16.45/mjpg/video.mjpg )
[0x167de98] main interface debug: looking for interface module: 1 candidate
[0x167de98] main interface debug: using interface module "globalhotkeys"
[0x167de98] main interface debug: TIMER module_need() : 1.663 ms - Total 1.663 ms / 1 intvls (Avg 1.663 ms)
[0x15f8138] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x167b1e8] main interface debug: looking for interface module: 2 candidates
[0x167b1e8] main interface warning: cannot load module `/usr/lib/vlc/plugins/lua/liblua_plugin.so' (/usr/lib/liblua.so.5.1.4: undefined symbol: crypt)
[0x167b1e8] main interface error: corrupt module: /usr/lib/vlc/plugins/lua/liblua_plugin.so
Remote control interface initialized. Type `help' for help.
[0x160acb8] main playlist debug: no fetch required for (null) (art currently (null))
[0x167b1e8] main interface debug: using interface module "oldrc"
[0x167b1e8] main interface debug: TIMER module_need() : 1.929 ms - Total 1.929 ms / 1 intvls (Avg 1.929 ms)
[0x160acb8] main playlist debug: rebuilding array of current - root Playlist
[0x160acb8] main playlist debug: rebuild done - 1 items, index -1
[0x160acb8] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x160acb8] main playlist debug: starting playback of the new playlist item
[0x160acb8] main playlist debug: creating new input thread
[0x167dad8] main input debug: Creating an input for 'http://172.16.16.45/mjpg/video.mjpg'
[0x167dad8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x167dad8] main input debug: `http://172.16.16.45/mjpg/video.mjpg' gives access `http' demux `' path `172.16.16.45/mjpg/video.mjpg'
[0x167dad8] main input debug: creating demux: access='http' demux='' location='172.16.16.45/mjpg/video.mjpg' file='(null)'
[0x1690d38] main demux debug: looking for access_demux module: 0 candidates
[0x1690d38] main demux debug: no access_demux module matched "http"
[0x1690d38] main demux debug: TIMER module_need() : 0.364 ms - Total 0.364 ms / 1 intvls (Avg 0.364 ms)
[0x167dad8] main input debug: creating access 'http' location='172.16.16.45/mjpg/video.mjpg', path='(null)'
[0x1691058] main access debug: looking for access module: 2 candidates
[0x1691058] access_http access debug: http: server='172.16.16.45' port=80 file='/mjpg/video.mjpg'
[0x1691058] main access debug: net: connecting to 172.16.16.45 port 80
[0x1691058] main access debug: connection succeeded (socket = 5)
[0x1691058] access_http access debug: protocol 'HTTP' answer code 200
[0x1691058] access_http access debug: Pragma: no-cache
[0x1691058] access_http access debug: Connection: close
[0x1691058] access_http access debug: Content-Type: multipart/x-mixed-replace; boundary=myboundary
[0x1691058] main access debug: using access module "access_http"
[0x1691058] main access debug: TIMER module_need() : 345.780 ms - Total 345.780 ms / 1 intvls (Avg 345.780 ms)
[0x1691918] main stream debug: Using stream method for AStream*
[0x1691918] main stream debug: starting pre-buffering
[0x1691918] main stream debug: received first data after 0 ms
[0x1691918] main stream debug: pre-buffering done 1024 bytes in 0s - 6024 KiB/s
[0x1691bc8] main stream debug: looking for stream_filter module: 6 candidates
[0x1691bc8] main stream debug: no stream_filter module matching "any" could be loaded
[0x1691bc8] main stream debug: TIMER module_need() : 0.430 ms - Total 0.430 ms / 1 intvls (Avg 0.430 ms)
[0x1691bc8] main stream debug: looking for stream_filter module: 1 candidate
[0x1691bc8] main stream debug: using stream_filter module "stream_filter_record"
[0x1691bc8] main stream debug: TIMER module_need() : 0.349 ms - Total 0.349 ms / 1 intvls (Avg 0.349 ms)
[0x167dad8] main input debug: creating demux: access='http' demux='' location='172.16.16.45/mjpg/video.mjpg' file='(null)'
[0x1691e78] main demux debug: looking for demux module: 47 candidates
[0x1691e78] mjpeg demux debug: Multipart MIME detected, using separator: myboundary
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24881
[0x167dad8] main input debug: selecting program id=0
[0x1691e78] main demux debug: using demux module "mjpeg"
[0x1691e78] main demux debug: TIMER module_need() : 4.860 ms - Total 4.860 ms / 1 intvls (Avg 4.860 ms)
[0x2295368] main decoder debug: looking for decoder module: 20 candidates
[0x2295368] avcodec decoder debug: libavcodec initialized (interface 0x350800)
[0x2295368] avcodec decoder debug: trying to use direct rendering
[0x2295368] avcodec decoder debug: allowing 1 thread(s) for decoding
[0x2295368] avcodec decoder debug: ffmpeg codec (Motion JPEG Video) started
[0x2295368] main decoder debug: using decoder module "avcodec"
[0x2295368] main decoder debug: TIMER module_need() : 5.475 ms - Total 5.475 ms / 1 intvls (Avg 5.475 ms)
[0x22aa998] main demux meta debug: looking for meta reader module: 1 candidate
[0x22aa998] main demux meta warning: cannot load module `/usr/lib/vlc/plugins/lua/liblua_plugin.so' (/usr/lib/liblua.so.5.1.4: undefined symbol: crypt)
[0x22aa998] main demux meta error: corrupt module: /usr/lib/vlc/plugins/lua/liblua_plugin.so
[0x22aa998] main demux meta debug: no meta reader module matching "any" could be loaded
[0x22aa998] main demux meta debug: TIMER module_need() : 0.656 ms - Total 0.656 ms / 1 intvls (Avg 0.656 ms)
[0x167dad8] main input debug: `http://172.16.16.45/mjpg/video.mjpg' successfully opened
[0x1691e78] mjpeg demux debug: MIME boundary not found in 15360 bytes of data
[0x1691e78] mjpeg demux debug: MIME boundary not found in 20480 bytes of data
[0x167dad8] main input debug: Buffering 0%
[0x22bb328] main spu text debug: looking for text renderer module: 1 candidate
[0x22bb328] main spu text debug: using text renderer module "tdummy"
[0x22bb328] main spu text debug: TIMER module_need() : 0.700 ms - Total 0.700 ms / 1 intvls (Avg 0.700 ms)
[0x22bbd98] main scale debug: looking for video filter2 module: 17 candidates
[0x22bbd98] chain scale debug: Trying to build resize+chroma
[0x22c3eb8] main filter debug: looking for video filter2 module: 17 candidates
[0x22c3eb8] scale filter debug: 32x32 -> 16x16
[0x22c3eb8] main filter debug: using video filter2 module "scale"
[0x22c3eb8] main filter debug: TIMER module_need() : 0.517 ms - Total 0.517 ms / 1 intvls (Avg 0.517 ms)
[0x22bbd98] main scale debug: Filter 'scale' (0x22c3eb8) appended to chain
[0x22c42b8] main filter debug: looking for video filter2 module: 17 candidates
[0x22c42b8] chain filter debug: Trying to use chroma I420 as middle man
[0x22c4a78] main filter debug: looking for video filter2 module: 17 candidates
[0x22c4a78] chain filter debug: Trying to use chroma I422 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.840 ms - Total 0.840 ms / 1 intvls (Avg 0.840 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.598 ms - Total 0.598 ms / 1 intvls (Avg 0.598 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.529 ms - Total 0.529 ms / 1 intvls (Avg 0.529 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c4a78] main filter debug: TIMER module_need() : 3.708 ms - Total 3.708 ms / 1 intvls (Avg 3.708 ms)
[0x22c42b8] main filter error: Failed to create video filter2
[0x22c42b8] chain filter debug: Trying to use chroma I422 as middle man
[0x22c4a78] main filter debug: looking for video filter2 module: 17 candidates
[0x22c4a78] chain filter debug: Trying to use chroma I420 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.512 ms - Total 0.512 ms / 1 intvls (Avg 0.512 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.562 ms - Total 0.562 ms / 1 intvls (Avg 0.562 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.496 ms - Total 0.496 ms / 1 intvls (Avg 0.496 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c4a78] main filter debug: TIMER module_need() : 3.398 ms - Total 3.398 ms / 1 intvls (Avg 3.398 ms)
[0x22c42b8] main filter error: Failed to create video filter2
[0x22c42b8] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c4a78] main filter debug: looking for video filter2 module: 17 candidates
[0x22c4a78] chain filter debug: Trying to use chroma I420 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.481 ms - Total 0.481 ms / 1 intvls (Avg 0.481 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma I422 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.333 ms - Total 0.333 ms / 1 intvls (Avg 0.333 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.351 ms - Total 0.351 ms / 1 intvls (Avg 0.351 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c4a78] main filter debug: TIMER module_need() : 2.307 ms - Total 2.307 ms / 1 intvls (Avg 2.307 ms)
[0x22c42b8] main filter error: Failed to create video filter2
[0x22c42b8] chain filter debug: Trying to use chroma RV24 as middle man
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24895
[0x167dad8] main input debug: Buffering 1%
[0x22c4a78] main filter debug: looking for video filter2 module: 17 candidates
[0x22c4a78] chain filter debug: Trying to use chroma I420 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.564 ms - Total 0.564 ms / 1 intvls (Avg 0.564 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma I422 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.470 ms - Total 0.470 ms / 1 intvls (Avg 0.470 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c6468] main filter debug: looking for video filter2 module: 17 candidates
[0x22c6468] chain filter error: Too high level of recursion (2)
[0x22c6468] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c6468] main filter debug: TIMER module_need() : 0.443 ms - Total 0.443 ms / 1 intvls (Avg 0.443 ms)
[0x22c4a78] main filter error: Failed to create video filter2
[0x22c4a78] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c4a78] main filter debug: TIMER module_need() : 2.884 ms - Total 2.884 ms / 1 intvls (Avg 2.884 ms)
[0x22c42b8] main filter error: Failed to create video filter2
[0x22c42b8] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c42b8] main filter debug: TIMER module_need() : 13.775 ms - Total 13.775 ms / 1 intvls (Avg 13.775 ms)
[0x22bbd98] main scale error: Failed to create video filter2
[0x22bbd98] main scale debug: Filter 0x22c3eb8 removed from chain
[0x22c3eb8] main filter debug: removing module "scale"
[0x22bbd98] chain scale debug: Trying to build chroma+resize
[0x22c3eb8] main filter debug: looking for video filter2 module: 17 candidates
[0x22c3eb8] chain filter debug: Trying to use chroma I420 as middle man
[0x22c8008] main filter debug: looking for video filter2 module: 17 candidates
[0x22c8008] chain filter debug: Trying to use chroma I422 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.311 ms - Total 0.311 ms / 1 intvls (Avg 0.311 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.353 ms - Total 0.353 ms / 1 intvls (Avg 0.353 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.371 ms - Total 0.371 ms / 1 intvls (Avg 0.371 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c8008] main filter debug: TIMER module_need() : 1.862 ms - Total 1.862 ms / 1 intvls (Avg 1.862 ms)
[0x22c3eb8] main filter error: Failed to create video filter2
[0x22c3eb8] chain filter debug: Trying to use chroma I422 as middle man
[0x22c8008] main filter debug: looking for video filter2 module: 17 candidates
[0x22c8008] chain filter debug: Trying to use chroma I420 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.315 ms - Total 0.315 ms / 1 intvls (Avg 0.315 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.285 ms - Total 0.285 ms / 1 intvls (Avg 0.285 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.321 ms - Total 0.321 ms / 1 intvls (Avg 0.321 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c8008] main filter debug: TIMER module_need() : 1.746 ms - Total 1.746 ms / 1 intvls (Avg 1.746 ms)
[0x22c3eb8] main filter error: Failed to create video filter2
[0x22c3eb8] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c8008] main filter debug: looking for video filter2 module: 17 candidates
[0x22c8008] chain filter debug: Trying to use chroma I420 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.319 ms - Total 0.319 ms / 1 intvls (Avg 0.319 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma I422 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.320 ms - Total 0.320 ms / 1 intvls (Avg 0.320 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.328 ms - Total 0.328 ms / 1 intvls (Avg 0.328 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c8008] main filter debug: TIMER module_need() : 1.794 ms - Total 1.794 ms / 1 intvls (Avg 1.794 ms)
[0x22c3eb8] main filter error: Failed to create video filter2
[0x22c3eb8] chain filter debug: Trying to use chroma RV24 as middle man
[0x22c8008] main filter debug: looking for video filter2 module: 17 candidates
[0x22c8008] chain filter debug: Trying to use chroma I420 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.297 ms - Total 0.297 ms / 1 intvls (Avg 0.297 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma I422 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.423 ms - Total 0.423 ms / 1 intvls (Avg 0.423 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] chain filter debug: Trying to use chroma RV32 as middle man
[0x22c5c18] main filter debug: looking for video filter2 module: 17 candidates
[0x22c5c18] chain filter error: Too high level of recursion (2)
[0x22c5c18] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c5c18] main filter debug: TIMER module_need() : 0.347 ms - Total 0.347 ms / 1 intvls (Avg 0.347 ms)
[0x22c8008] main filter error: Failed to create video filter2
[0x22c8008] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c8008] main filter debug: TIMER module_need() : 1.851 ms - Total 1.851 ms / 1 intvls (Avg 1.851 ms)
[0x22c3eb8] main filter error: Failed to create video filter2
[0x22c3eb8] main filter debug: no video filter2 module matching "any" could be loaded
[0x22c3eb8] main filter debug: TIMER module_need() : 8.300 ms - Total 8.300 ms / 1 intvls (Avg 8.300 ms)
[0x22bbd98] main scale error: Failed to create video filter2
[0x22bbd98] main scale debug: no video filter2 module matching "any" could be loaded
[0x22bbd98] main scale debug: TIMER module_need() : 25.942 ms - Total 25.942 ms / 1 intvls (Avg 25.942 ms)
[0x22c3ba8] main scale debug: looking for video filter2 module: 17 candidates
[0x22c3ba8] yuvp scale debug: YUVP to YUVA converter
[0x22c3ba8] main scale debug: using video filter2 module "yuvp"
[0x22c3ba8] main scale debug: TIMER module_need() : 0.292 ms - Total 0.292 ms / 1 intvls (Avg 0.292 ms)
[0x22a01a8] main video output debug: Deinterlacing available
[0x22a01a8] main video output debug: deinterlace 0, mode blend, is_needed 0
[0x22a01a8] main video output debug: Opening vout display wrapper
[0x22c5038] main vout display debug: looking for vout display module: 4 candidates
[0x22c61f8] main window debug: looking for vout window xid module: 2 candidates
[0x22c61f8] main window debug: using vout window xid module "xcb_window"
[0x22c61f8] main window debug: TIMER module_need() : 2.256 ms - Total 2.256 ms / 1 intvls (Avg 2.256 ms)
[0x22d3868] main inhibit debug: looking for inhibit module: 2 candidates
[0x22d3868] main inhibit debug: using inhibit module "xdg_screensaver"
[0x22d3868] main inhibit debug: TIMER module_need() : 0.876 ms - Total 0.876 ms / 1 intvls (Avg 0.876 ms)
[0x22c5038] xcb_xv vout display debug: connected to X11.0 server
[0x22c5038] xcb_xv vout display debug:  vendor : The X.Org Foundation
[0x22c5038] xcb_xv vout display debug:  version: 11003000
[0x22c5038] xcb_xv vout display debug: using screen 0xaa
[0x22c5038] xcb_xv vout display debug: using XVideo extension v2.2
[0x22c5038] xcb_xv vout display debug: using adaptor Intel(R) Textured Video
[0x22c5038] xcb_xv vout display debug: using port 72
[0x22c5038] xcb_xv vout display debug: using image format 0x30323449
[0x22c5038] xcb_xv vout display debug: using X11 visual ID 0x21 (depth: 24)
[0x22c5038] xcb_xv vout display debug: using X11 window 0x00800000
[0x22c5038] xcb_xv vout display debug: using X11 graphic context 0x00800002
[0x22c5038] main vout display debug: VoutDisplayEvent 'fullscreen' 0
[0x22c5038] main vout display debug: VoutDisplayEvent 'resize' 640x480 window
[0x22c5038] main vout display debug: using vout display module "xcb_xv"
[0x22c5038] main vout display debug: TIMER module_need() : 7.457 ms - Total 7.457 ms / 1 intvls (Avg 7.457 ms)
[0x22a01a8] main video output debug: original format sz 640x480, of (0,0), vsz 640x480, 4cc J420, sar 1:1, msk r0x0 g0x0 b0x0
[0x22bb328] main spu text debug: removing module "tdummy"
[0x22bb328] main spu text debug: looking for text renderer module: 1 candidate
[0x22bb328] main spu text debug: using text renderer module "tdummy"
[0x22bb328] main spu text debug: TIMER module_need() : 0.108 ms - Total 0.108 ms / 1 intvls (Avg 0.108 ms)
[0x2295368] avcodec decoder debug: using direct rendering
[0x22c5038] xcb_xv vout display debug: display is visible
[0x22d3868] xdg_screensaver inhibit debug: started xdg-screensaver (PID = 1964)
[0x2295368] main decoder debug: End of video preroll
[0x2295368] main decoder debug: Received first picture
[0x22a01a8] main video output debug: Post-processing available
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24905
[0x167dad8] main input debug: Buffering 5%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24884
[0x167dad8] main input debug: Buffering 8%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24867
[0x167dad8] main input debug: Buffering 11%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24898
[0x167dad8] main input debug: Buffering 14%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24845
[0x167dad8] main input debug: Buffering 18%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24813
[0x167dad8] main input debug: Buffering 21%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24803
[0x167dad8] main input debug: Buffering 24%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24898
[0x167dad8] main input debug: Buffering 28%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24813
[0x167dad8] main input debug: Buffering 31%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24783
[0x167dad8] main input debug: Buffering 34%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24356
[0x167dad8] main input debug: Buffering 38%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24515
[0x167dad8] main input debug: Buffering 41%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24480
[0x167dad8] main input debug: Buffering 44%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24434
[0x167dad8] main input debug: Buffering 48%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24397
[0x167dad8] main input debug: Buffering 51%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24362
[0x167dad8] main input debug: Buffering 54%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24270
[0x167dad8] main input debug: Buffering 58%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24273
[0x167dad8] main input debug: Buffering 61%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24298
[0x167dad8] main input debug: Buffering 64%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24252
[0x167dad8] main input debug: Buffering 68%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24243
[0x167dad8] main input debug: Buffering 71%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24314
[0x167dad8] main input debug: Buffering 74%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24314
[0x167dad8] main input debug: Buffering 78%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24261
[0x167dad8] main input debug: Buffering 81%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24289
[0x167dad8] main input debug: Buffering 84%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24220
[0x167dad8] main input debug: Buffering 88%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24213
[0x167dad8] main input debug: Buffering 91%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24197
[0x167dad8] main input debug: Buffering 94%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24120
[0x167dad8] main input debug: Buffering 98%
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24125
[0x167dad8] main input debug: Stream buffering done (1014 ms in 1014 ms)
[0x167dad8] main input debug: Decoder buffering done in 0 ms
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24173
[0x22a01a8] main video output debug: picture might be displayed late (missing 6 ms)
[0x22c5038] main vout display debug: auto hiding mouse cursor
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24079
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24121
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24077
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24114
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24120
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24110
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24129
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24168
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24459
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24562
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24545
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24504
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24538
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24533
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24588
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24609
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24582
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24501
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24559
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24522
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24499
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24541
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24637
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24616
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24600
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24729
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24758
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24803
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24851
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24897
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24895
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24927
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24927
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24873
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24830
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24901
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24865
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24829
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24820
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24761
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24892
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24879
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24922
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24899
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24948
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24906
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24895
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24854
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24907
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24945
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24904
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24917
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24942
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24936
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24845
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24852
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24811
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24841
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24791
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24741
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24747
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24770
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24712
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24758
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24785
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24768
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24834
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24854
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24853
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24828
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24787
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24709
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24700
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24685
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24600
^C[0x15f8138] main libvlc debug: deactivating the playlist
[0x160acb8] main playlist debug: deactivating the playlist
[0x160acb8] main playlist debug: incoming request - stopping current input
[0x1691058] main access debug: waitpipe: object killed
[0x160acb8] main playlist debug: dying input
[0x1691058] main access debug: socket 5 polling interrupted
[0x1691e78] mjpeg demux debug: discard MIME header: Content-Length: 24747
[0x1691e78] mjpeg demux debug: MIME boundary not found in 24747 bytes of data
[0x1691e78] mjpeg demux warning: no more data
[0x1691e78] mjpeg demux warning: no more data is available at the moment
[0x167dad8] main input debug: EOF reached
[0x167dad8] main input debug: control: stopping input
[0x160acb8] main playlist debug: dying input
[0x2295368] main decoder warning: can't get output picture
[0x2295368] avcodec decoder warning: disabling direct rendering
[0x2295368] main decoder warning: can't get output picture
[0x2295368] main decoder debug: removing module "avcodec"
[0x2295368] avcodec decoder debug: ffmpeg codec (Motion JPEG Video) stopped
[0x2295368] main decoder debug: killing decoder fourcc `MJPG', 16 PES in FIFO
[0x160acb8] main playlist debug: saving a free vout
[0x160acb8] main playlist debug: reusing provided vout
[0x1691e78] main demux debug: removing module "mjpeg"
[0x1691bc8] main stream debug: removing module "stream_filter_record"
[0x1691058] main access debug: removing module "access_http"
[0x167dad8] main input debug: Program doesn't contain anymore ES
[0x160acb8] main playlist debug: dead input
[0x167dad8] main input debug: TIMER input launching for 'http://172.16.16.45/mjpg/video.mjpg' : 361.174 ms - Total 361.174 ms / 1 intvls (Avg 361.174 ms)
[0x22a01a8] main video output debug: destroying useless vout
[0x22c5038] main vout display debug: removing module "xcb_xv"
[0x22d3868] main inhibit debug: removing module "xdg_screensaver"
[0x22d3868] xdg_screensaver inhibit debug: started xdg-screensaver (PID = 1965)
[0x22bb328] main spu text debug: removing module "tdummy"
[0x22c3ba8] main scale debug: removing module "yuvp"
[0x22e0108] main playlist export debug: saving Media Library to file /var/.local/share/vlc/ml.xspf
[0x22e0108] main playlist export debug: looking for playlist export module: 1 candidate
[0x22e0108] main playlist export debug: using playlist export module "export"
[0x22e0108] main playlist export debug: TIMER module_need() : 3.113 ms - Total 3.113 ms / 1 intvls (Avg 3.113 ms)
[0x22e0108] main playlist export debug: removing module "export"
[0x160acb8] main playlist debug: playlist correctly deactivated
[0x15f8138] main libvlc debug: removing all services discovery tasks
[0x15f8138] main libvlc debug: removing all interfaces
[0x15f8138] main libvlc debug: exiting
[0x167b1e8] main interface debug: socket 0 polling interrupted
status change: ( stop state: 0 )
status change: ( quit )
[0x167b1e8] main interface debug: waitpipe: object killed
[0x167b1e8] main interface debug: removing module "oldrc"
[0x167de98] main interface debug: removing module "globalhotkeys"
[0x167d9b8] main interface debug: removing module "hotkeys"
[0x160acb8] main playlist debug: destroying
[0x15f8138] main libvlc debug: TIMER ML Load : Total 14.230 ms / 1 intvls (Avg 14.230 ms)
[0x15f8138] main libvlc debug: TIMER Items array build : Total 0.333 ms / 1 intvls (Avg 0.333 ms)
[0x15f8138] main libvlc debug: TIMER ML Dump : Total 3.663 ms / 1 intvls (Avg 3.663 ms)
[0x15f8138] main libvlc debug: removing stats
[0x15f8138] main libvlc debug: removing module "memcpymmxext"

Support native Media Discoverer

A native media discoverer module is available (at least on Linux, may not work on other platforms) for dynamic discovery of various capture devices (audio, video, screenshot etc) and various media types (e.g. SAP, "media dirs" and so on).

A new component is needed to encapsulate this.

mediaPlayer.playMedia and mediaPlayer.prepareMedia should return boolean success indicator

The existing playMedia() and prepareMedia() methods on mediaPlayer are declared as void.

These two methods should be changed to return a boolean. This boolean signifies whether or not the native media resource was successfully created. It is returned by the native method call.

It is now possible that this method fails, hence the need to return the success/failure indicator.

New VLC_PLUGIN_PATH

I am using vlcj 1.2.2 and the new official VLC 2.0 build on a Windows 32 machine. However, now when I try to set my plugin path (using System.setProperty("VLC_PLUGIN_PATH", some path) it cannot find the plugins. I have tried several variations of this and it only seems to work when the plugins folder is in the same directory as libvlc. Is anyone else having these issues? Thanks.

Problem running videos with vlc 2.0.1

I am running some tests with vlcj: 2.0.0, java: 1.7.0_03 Oracle Corporation, os: Linux 3.0.0-12-generic i386 and vlc: 2.0.1 Twoflower, changeset 2.0.1-0-gf432547 and I can't play any video, local or remote. I try to use every example on the repository but a have always the same error. A crash in JVM

Java VM: Java HotSpot(TM) Server VM (22.1-b02 mixed mode linux-x86 )
Problematic frame:
C [libc.so.6+0x1110c9] _IO_file_close_it+0x59

TrackInfo codec name is backwards

Whilst the track info codec name does reflect the actual fourcc bytes, it is clearly more useful to reverse the string so that it's the right way around.

e.g. mp4a rather than a4pm, and h264 rather than 426h.

Support vlc 2.1.0 logging feature

New API for logging is being exposed for libvlc 2.1.0.

This API should be supported in vlcj.

However, there's a blocker in the libvlc API preventing support for this in Java - this is because the log callback has as one of its parameters a "va_list". This va_list parameter is essential since it contains a list of log message data for each log message.

Cursory research suggests that the va_list type is highly dependent on the C compiler for the memory layout that is used and no guarantees are given as to what that layout is.

Consequently, I do not think there is any way to use this API from Java.

Initial testing with JNA has proven impossible to discern any object parameter values, integers or strings, from this va_list parameter.

How do you resolve this? java.lang.IllegalStateException: The video surface component must be displayable

How to remove this error? Which result a black screen and plays nothing.



__   _| | ___ (_)
\ \ / / |/ __|| |
 \ V /| | (__ | |
  \_/ |_|\___|/ | 1.2.0
            |__/

VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VLCJ.  If not, see .

Copyright 2009, 2010, 2011 Caprica Software Limited.

java.lang.IllegalStateException: The video surface component must be displayable
    at uk.co.caprica.vlcj.player.embedded.videosurface.CanvasVideoSurface.attach(CanvasVideoSurface.java:72)
[TCPMediaHandler]: Closing socket.
    at uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer.attachVideoSurface(DefaultEmbeddedMediaPlayer.java:164)
    at uk.co.caprica.vlcj.player.embedded.DefaultEmbeddedMediaPlayer.onBeforePlay(DefaultEmbeddedMediaPlayer.java:317)
    at uk.co.caprica.vlcj.player.DefaultMediaPlayer.play(DefaultMediaPlayer.java:750)
    at uk.co.caprica.vlcj.player.DefaultMediaPlayer.playMedia(DefaultMediaPlayer.java:259)


OutOfProcess for vlcj > 1.1.5

Hi, nice work man!
I need some example to use ComponentIdVideoSurface,
my idea is to do a OutOfProcessPlayer with vlcj 2.0.

I made it works with mac :D, but using a always on top undecorated window
and moving it together with another component (WOD).

In windows I couldn't to do :( with ComponentIdVideoSurface and +1.2 vlcj api.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.