JVLC and DVD Chapter Navigation

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

JVLC and DVD Chapter Navigation

Postby sherington » 12 Sep 2008 19:02

Hi,

I've just started trying to use JVLC in a pet project, I've had the very simple sample player running nicely and now I want to add the features I need.

What I need is to be able to DVD chapter navigation. I had a look in the LibVlc.java file and what I think I need is something like this (I basically just looked in the libvlc.h file for the corresponding methods):

Code: Select all

void libvlc_media_player_set_chapter(LibVlcMediaInstance instance, int chapter, libvlc_exception_t exception); int libvlc_media_player_get_chapter(LibVlcMediaInstance instance, libvlc_exception_t exception); int libvlc_media_player_get_chapter_count(LibVlcMediaInstance instance, libvlc_exception_t exception);
I'm a Java developer so I can do all of that and I can rebuild the Java jar file... but...

Right now I have installed the 0.8.6e version of vlc, but the only place I could get the Java bindings source code was direct from the git repository. I still can't, after spending many hours, get my environment to build the nightly videolan distribution itself without errors.

What this means is that I have Java bindings that are out-of-step with my vlc installation and obviously it doesn't work - I get errors like certain functions aren't present in the libvlc.so file.

So my questions are:

- Am I at least on the right track for DVD chapter navigation, can these functions be added to JVLC?
- Is there, or could there be, an 'official' release of JVLC (with sourcecode) made that matches the 'official' vlc release so the versions will match?
- Or do I basically just have to keep trying to get my build environment in a fit state to build the entire videolan distribution?

I hope someone can offer some help!

Thanks.

jgg
Cone that earned his stripes
Cone that earned his stripes
Posts: 144
Joined: 03 Nov 2007 15:49

Re: JVLC and DVD Chapter Navigation

Postby jgg » 12 Sep 2008 20:18

In order to get the last JVLC jar library working (test 3 - 2008-07-27) you have to build the corresponding VLC 0.9.0 source code (the one dated with 2008-07-27).

By the way, if you get JVLC's playlists working properly, please, tell me because I haven't been able to succed on it and I'm extremely interested.


Regards,
Javi

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: JVLC and DVD Chapter Navigation

Postby sherington » 13 Sep 2008 09:16

Thanks for your reply.

The problem with just matching the jar file you mentioned with the vlc distribution is that there's no Java source code for shipped with either that jvlc jar or the vlc source bundle.

I need the exact matching Java source code so I can (at least try) adding some of the functions I need.

Maybe I need to learn how to use git to pull out the exact versions of both projects that I need. I managed to finally get a working build environment so I'll try that today.

Thanks!

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: JVLC and DVD Chapter Navigation

Postby sherington » 13 Sep 2008 12:37

Well, just in case anyone else is trying this...

I build the 0.9.0 release, and I use git to get the corresponding tagged version direct from the repository (the "0.9.0" tag obviously) so I could get the Java bindings. There is some good help for using git and building the release on the developer WIKI pages linked from the source download page.

This means I now have in-sync vlc and jvlc sources.

Once I had that all working I was able to very easily add get/set chapter and chapter count functions (mentioned in my original post) to JVLC (LibVlc.java) and have it working quite nicely (I added get/set chapter methods to Video.java which simply call into LibVlc like all the other methods do).

I just used the VlcExample.java that comes with the code-base to test whether or not it would work and it does - I can now do dvd chapter navigation through JVLC.

dulceangustia, I saw your other thread about not using the deprecated playlist class and obviously I now encounter exactly the same problems as you. The only option available to me at the moment I think is to base my own project off of VlcExample and take the hit of changing when the new API is fully working and the deprecated stuff removed.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests