libxine-java-devel Mailing List for libxine-java
Status: Beta
Brought to you by:
freckle
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
(20) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Fabian R. <frt...@ya...> - 2011-01-26 21:53:03
|
On Wednesday, January 26, 2011 12:05:03 am Matthias Ringwald wrote: > On 19.01.2011, at 11:18, <frt...@ya...> <frtrack- lib...@ya...> wrote: > > > > This project has obviously been dormant for a while now. I am wondering > > if I could just take the existing code and run it without changes > > against the current xine-lib 1.1.18? > > You could try :) > > > Otherwise, would you accept patches? > > As xine-lib is rather mature, I'd expect libxine-java to compile as it is > against it. And yes, I'm happy to accept patches. Alright, thanks. > > Last but not least, the JNA port would be attractive. I have been playing > > a little with vlcj, which are Java bindings for VLC using JNA. Video and > > even hardware accelerated video works just fine with it so I don't see a > > major reason why it wouldn't work for xine. I am not clear what > > prevented the libxine-java JNA port from progressing to video? > > I don't remember exactly. Looking at the JNA port WIKI page, I think a > major problem was that JNA was not directly able to integrate with the > Objective-C/Cocoa runtime on the Mac. From my point of view that would not be any worse than vlcj. > And there have been two other reasons. The project related reason was that > xine-lib just didn't work properly on Windows, which defies it's main > goal: video playback on mac/windows/linux. Looking at the Xine project site, I am afraid that might still be the case. I guess I will spend a few hours and see how far I will get with the current code. The Xine OSD API is something that the bindings for other players are not offering. Fabian |
From: Matthias R. <mri...@in...> - 2011-01-25 22:05:13
|
Hi Fabian On 19.01.2011, at 11:18, <frt...@ya...> <frt...@ya...> wrote: > Hi, > > > This project has obviously been dormant for a while now. I am wondering if I > could just take the existing code and run it without changes against the current > xine-lib 1.1.18? You could try :) > Otherwise, would you accept patches? As xine-lib is rather mature, I'd expect libxine-java to compile as it is against it. And yes, I'm happy to accept patches. > > Also I am wondering if the efforts to run xine-lib on Windows have been > maintained with the current xine-lib releases? No idea. I think I've seen patches in the last two years by a former xine windows dev. > Last but not least, the JNA port would be attractive. I have been playing a > little with vlcj, which are Java bindings for VLC using JNA. Video and even > hardware accelerated video works just fine with it so I don't see a major reason > why it wouldn't work for xine. I am not clear what prevented the libxine-java > JNA port from progressing to video? I don't remember exactly. Looking at the JNA port WIKI page, I think a major problem was that JNA was not directly able to integrate with the Objective-C/Cocoa runtime on the Mac. And there have been two other reasons. The project related reason was that xine-lib just didn't work properly on Windows, which defies it's main goal: video playback on mac/windows/linux. The non-projet reason was that I bought an iPhone, played with it, and started to write a Bluetooth stack for it. The btstack.org project has been rather successful so far and all my free time got eaten up there since. :) best Matthias > > Fabian |
From: <frt...@ya...> - 2011-01-19 10:18:48
|
Hi, This project has obviously been dormant for a while now. I am wondering if I could just take the existing code and run it without changes against the current xine-lib 1.1.18? Otherwise, would you accept patches? Also I am wondering if the efforts to run xine-lib on Windows have been maintained with the current xine-lib releases? Last but not least, the JNA port would be attractive. I have been playing a little with vlcj, which are Java bindings for VLC using JNA. Video and even hardware accelerated video works just fine with it so I don't see a major reason why it wouldn't work for xine. I am not clear what prevented the libxine-java JNA port from progressing to video? Fabian |
From: Matthias R. <mri...@in...> - 2010-02-28 23:21:32
|
hi Gilles can you send the error message? what OS do you use? Which java sdk do you use? nest Matthias On 21.02.2010, at 21:51, Gilles Besançon wrote: > Bonjour, > Je suis en train de faire un plugin pour eclipse pour lire de la vidéo > avec diverses fonctionnalités de playlist, ..., je souhaiterais faire > une version de mon plugin qui utilise libxine pour la lecture video. > J'ai téléchargé la dernière version de libxine.java mais je ne parviens > pas a la compilé, lors de l'etape de configure, il s'arrete avec le > messahe can't fin jni.h specify --with-jni-inc-flags, j'ai essayer > plusierus valeur en lui passant le répertoire, le path du fichier jni.h, ... > Je n'arrive pas a généré le jar. Auriez vous une idée a ce sujet. > Merci d'avance. > > -- > Gilles > > <gilles_besancon.vcf>------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev_______________________________________________ > Libxine-java-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxine-java-devel |
From: Gilles B. <gil...@gm...> - 2010-02-21 20:51:46
|
Bonjour, Je suis en train de faire un plugin pour eclipse pour lire de la vidéo avec diverses fonctionnalités de playlist, ..., je souhaiterais faire une version de mon plugin qui utilise libxine pour la lecture video. J'ai téléchargé la dernière version de libxine.java mais je ne parviens pas a la compilé, lors de l'etape de configure, il s'arrete avec le messahe can't fin jni.h specify --with-jni-inc-flags, j'ai essayer plusierus valeur en lui passant le répertoire, le path du fichier jni.h, ... Je n'arrive pas a généré le jar. Auriez vous une idée a ce sujet. Merci d'avance. -- Gilles |
From: Matthias R. <mri...@in...> - 2008-09-30 08:15:59
|
Hi After a quick hack last week, I've taken a new approach to color handling. The "problem" with xine's OSD support is that a color palette with 256 entries has to be used, with #0 being transparent. For drawing lines and boxes and rendering text this is amble colors. For images, e.g., to show album cover or movie posters, it is a bit limited. I have followed the idea of Java's BufferedImage, which uses a color palette with 6 x 6 x 6 entries to encode RGB colors (total 216) and using the remainder for gray levels. In the current SVN version, the 6x6x6 RGB cube is used from color index 30 until 245, and 246 to 255 contain 10 more gray levels. By this, there is a color palette of 16 gray levels. The BuffereImage class is able to render arbitrary images using the color palette. As the color palette is fixed, it is also possible to show multiple images at the same time. Now, I can imagine that the album cover might be faded in. For this, the alpha value of the image color range (30-255) can be set with setImageAlpha(..). With this scheme, the first 30 colors can be used for fonts and UI drawing under the full control of your application, while at the same time, thumbnails of images can be blended in. Note, all images have the same alpha value, it is not possible to only fade a single one. comments? Matthias p.s. carlo bramix found a major bug in xine-lib for windows. I guess some other quirks have to be dealt with, but, by this, a windows version of libxine-java gets possible. |
From: Matthias R. <mri...@in...> - 2008-09-26 13:42:40
|
hi just some other random thoughts. aTunes is a java iTunes-clone written in Java, maybe parts of it fit your music player goals. I, like others, have written a amazon web services class which fetches album covers. as far as I remember, you'll need an amazon web service developer account which is free, but cannot be shared/ published/hard-coded. in general, I guess it should be easy to work towards a general framework for this kind of media center etc. in Java. I guess you're idea to start with UI widgets is a quite pragmatic, and other parts may follow easily once this is available. I'll also try to provide a binary version of libxine-java which is more important for OS X and should allow to deploy a complete app as a single, ready-to-run folder. Oh yes, windows support is lacking, but hard to get by. matthias On 26.09.2008, at 14:01, Kristian L. Larsen wrote: > Okay. > Well, the worst was the audio player on all the systems i've tried. > Non of them has a simple and usefull (to me) player. > The specific things i'd like is actualy a simple player, very much > like XMMS, where i can play random songs from a playlist and then > jump or queue songs on the fly. For typing in titles, i want to use > the numbers on my remote, much like writing SMS on a mobilephone. > I'd be cool too, if i could add some youtube videos on a playlist > too, but just a thought at this moment. > > Also I'd like the system to mange TV-Shows better. I'd like to have > a page where i can select movies from a list, and another where i > can select tv-shows more seperated. On my current LinuxMCE I have a > screen where all movies and episodes are mixed together, which is > very anoying. If you understand what i mean. > > I'd also like to be able to fetch metainfo from differing websites, > like amazone(LMCE), imdb(Myth) and others like TV.com or something. > > In LinuxMCE it stores the metadata in the mysql database, but also > on the disk as an .id3 file, which makes it very easy to move, > backup or port files with their metadata. > > On the longer term, i'd like it to work together with a bigger home > automation system. > > /walker > > ----- Original meddelelse ----- > Fra: "Matthias Ringwald" <mri...@in...> > Til: "Kristian L. Larsen" <wa...@pa...> > Cc: "libXine Mail-List" <lib...@li...> > Sendt: fredag, 26. september 2008 12:36:49 GMT +01:00 Amsterdam / > Berlin / Bern / Rom / Stockholm / Wien > Emne: Re: Ang: Re: [Libxine-java-devel] VM Crash on ubuntu > > my media center constraints. > > first, I failed to get MythTV and even Freevo to work. I found > especially MythTV to complex. > then, I first only had a projector. while this is perfect for watching > movies, it is a no go for chooseing music. (you don't turn on the > projector to select a music album). then, I bought a cheap 15", which > I mounted inside a normal living room shelf (this one, but put > horizontally: http://www.ikea.com/ch/de/catalog/products/00045560 ). I > thought I could use this one to show a UI and only turn on the > projector for movies. In the meantime, I dropped the dual-head > support as it was too much trouble. > So with this two screen approach, none of the existing media center > software was adequate. also, I re-use my old hardware, e.g., an 20 > year old amplifier with no form of remote control. so I use a power > switch to turn it on and and off, a also 20 year old tuner where I > wired to buttons of the 8 stations directly to the parallel port, > etc.. :) > > and yes, what really bothered me, is how to have a good UI to pick one > of several hundreds of music albums? I was not sure, if scrolling > through a list of artists and then selecting the album is a good > thing. I started sorting my music on the server in a one-folder-per- > album fashion, similar to a classic cd collection. I did not get far > with this. right now, I use a laptop to access a primitive PHP web > site which allows to select the mode: radio, music, video. and use the > pitchfork web-frontend to mpd to select music. this, obviously, only > works with a normal size laptop. no way this would work with a simple > remote. > I can send you a zip of the java sources, if you like. I also tried to > have a generic framework. > > what didn't you like on the exisint media centers? > > m. > > > > On 26.09.2008, at 11:52, Kristian L. Larsen wrote: > >> ... >> >> My idea for a media center is based on the fact that though i like >> the once i've tried, i've never been completly satisfied. I've >> always had ideas for changes or functions etc. >> What i think i want is take whats best of MythTV, LMCE and perhaps >> oxine. Then merge it into a framework. With that framework i hope >> that i can build my perfect (for me) media-setup. And hopefully >> others can use it for theirs. >> >> You said that you yourself wanted to build a media station, what is >> your motivation/idea? >> >> /walker > |
From: Kristian L. L. <wa...@pa...> - 2008-09-26 12:00:51
|
Okay. Well, the worst was the audio player on all the systems i've tried. Non of them has a simple and usefull (to me) player. The specific things i'd like is actualy a simple player, very much like XMMS, where i can play random songs from a playlist and then jump or queue songs on the fly. For typing in titles, i want to use the numbers on my remote, much like writing SMS on a mobilephone. I'd be cool too, if i could add some youtube videos on a playlist too, but just a thought at this moment. Also I'd like the system to mange TV-Shows better. I'd like to have a page where i can select movies from a list, and another where i can select tv-shows more seperated. On my current LinuxMCE I have a screen where all movies and episodes are mixed together, which is very anoying. If you understand what i mean. I'd also like to be able to fetch metainfo from differing websites, like amazone(LMCE), imdb(Myth) and others like TV.com or something. In LinuxMCE it stores the metadata in the mysql database, but also on the disk as an .id3 file, which makes it very easy to move, backup or port files with their metadata. On the longer term, i'd like it to work together with a bigger home automation system. /walker ----- Original meddelelse ----- Fra: "Matthias Ringwald" <mri...@in...> Til: "Kristian L. Larsen" <wa...@pa...> Cc: "libXine Mail-List" <lib...@li...> Sendt: fredag, 26. september 2008 12:36:49 GMT +01:00 Amsterdam / Berlin / Bern / Rom / Stockholm / Wien Emne: Re: Ang: Re: [Libxine-java-devel] VM Crash on ubuntu my media center constraints. first, I failed to get MythTV and even Freevo to work. I found especially MythTV to complex. then, I first only had a projector. while this is perfect for watching movies, it is a no go for chooseing music. (you don't turn on the projector to select a music album). then, I bought a cheap 15", which I mounted inside a normal living room shelf (this one, but put horizontally: http://www.ikea.com/ch/de/catalog/products/00045560 ). I thought I could use this one to show a UI and only turn on the projector for movies. In the meantime, I dropped the dual-head support as it was too much trouble. So with this two screen approach, none of the existing media center software was adequate. also, I re-use my old hardware, e.g., an 20 year old amplifier with no form of remote control. so I use a power switch to turn it on and and off, a also 20 year old tuner where I wired to buttons of the 8 stations directly to the parallel port, etc.. :) and yes, what really bothered me, is how to have a good UI to pick one of several hundreds of music albums? I was not sure, if scrolling through a list of artists and then selecting the album is a good thing. I started sorting my music on the server in a one-folder-per- album fashion, similar to a classic cd collection. I did not get far with this. right now, I use a laptop to access a primitive PHP web site which allows to select the mode: radio, music, video. and use the pitchfork web-frontend to mpd to select music. this, obviously, only works with a normal size laptop. no way this would work with a simple remote. I can send you a zip of the java sources, if you like. I also tried to have a generic framework. what didn't you like on the exisint media centers? m. On 26.09.2008, at 11:52, Kristian L. Larsen wrote: > ... > > My idea for a media center is based on the fact that though i like > the once i've tried, i've never been completly satisfied. I've > always had ideas for changes or functions etc. > What i think i want is take whats best of MythTV, LMCE and perhaps > oxine. Then merge it into a framework. With that framework i hope > that i can build my perfect (for me) media-setup. And hopefully > others can use it for theirs. > > You said that you yourself wanted to build a media station, what is > your motivation/idea? > > /walker |
From: Matthias R. <mri...@in...> - 2008-09-26 10:37:06
|
my media center constraints. first, I failed to get MythTV and even Freevo to work. I found especially MythTV to complex. then, I first only had a projector. while this is perfect for watching movies, it is a no go for chooseing music. (you don't turn on the projector to select a music album). then, I bought a cheap 15", which I mounted inside a normal living room shelf (this one, but put horizontally: http://www.ikea.com/ch/de/catalog/products/00045560 ). I thought I could use this one to show a UI and only turn on the projector for movies. In the meantime, I dropped the dual-head support as it was too much trouble. So with this two screen approach, none of the existing media center software was adequate. also, I re-use my old hardware, e.g., an 20 year old amplifier with no form of remote control. so I use a power switch to turn it on and and off, a also 20 year old tuner where I wired to buttons of the 8 stations directly to the parallel port, etc.. :) and yes, what really bothered me, is how to have a good UI to pick one of several hundreds of music albums? I was not sure, if scrolling through a list of artists and then selecting the album is a good thing. I started sorting my music on the server in a one-folder-per- album fashion, similar to a classic cd collection. I did not get far with this. right now, I use a laptop to access a primitive PHP web site which allows to select the mode: radio, music, video. and use the pitchfork web-frontend to mpd to select music. this, obviously, only works with a normal size laptop. no way this would work with a simple remote. I can send you a zip of the java sources, if you like. I also tried to have a generic framework. what didn't you like on the exisint media centers? m. On 26.09.2008, at 11:52, Kristian L. Larsen wrote: > ... > > My idea for a media center is based on the fact that though i like > the once i've tried, i've never been completly satisfied. I've > always had ideas for changes or functions etc. > What i think i want is take whats best of MythTV, LMCE and perhaps > oxine. Then merge it into a framework. With that framework i hope > that i can build my perfect (for me) media-setup. And hopefully > others can use it for theirs. > > You said that you yourself wanted to build a media station, what is > your motivation/idea? > > /walker |
From: Matthias R. <mri...@in...> - 2008-09-26 08:54:55
|
Hi Kristian > I was very close to installing 32bit to get rid of the crashes, but on > the other hand, I thought i might give you some info on what was going > wrong, so you could fix the problem. You did that very fast, so no > problem :). thanks for your confidence. :) > I'm hoping to write some kind of wrap for container wrap for your > video > display, and a small framework of components for it. I hope to > create a > transparent way of creating components which can be used on > traditional > panels and as OSD component. > Something like: > > XineVideoContainer xvc = new XineAWTCanvasWrap(); > xvc.setLayout(new BorderLayout()); > xvc.add(new XButton("play")); > > ... or something. Haven't quite thought it through, but something to > make it easier and more (java)-intuitive to write UI's. hey, that sounds cool! we definitely need a OSD widget library. And, your toolkit approach could facilitate the development of UIs. The Xine{AWT,Swing,SWT}Canvas all provide mouse events, even in fullscreen mode. I could give you feedback on the architecture design, if you like. One thing to consider is the use of the color palette with 256 entries. In a PNG, the graphic tool would calculate the best set of colors to match the original image with the least difference. But, as you can imagine, this only helps as long as you only have a single image. When browsing the java classes for support for color palettes and image loading, I've found this: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#TYPE_BYTE_INDEXED BufferedImage uses a color palette where red, green, blue have a values from 0 to 5. this requires 6x6x6 = 216 colors and leaves 40 colors for general stuff and font-anti-aliasing. xine-lib uses 11 colors to draw an anti-aliased font. based on this, we could use a color resolution of about 2.58 bits per component (216), a gray scale of 6 levels, three different font colors (33) and a single completely transparent entry for the background. does this make sense? it would limit the image quality (a bit), but it is easy to manage. with the current XineOSD you can already try this out, although the image drawing does not work, yet. It works, but the colors are wrong, and the background gets green although it should just get BLACK (which is the first entry in the java color palette) . There must be something I did not understand yet. > anyway, nice work so far. If I were to develop directly in your java > source, how would you like me to suggest the changes to you? as > patches? I have not much experience with receiving and applying patches, but patches are commonly used for this, so let's try with patches first. cheers, matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-24 18:56:01
|
Matthias Ringwald skrev: > > On 24.09.2008, at 17:18, Kristian Lindemann Larsen wrote: > >> What i actualy was going for, was more like LinuxMCE. That has a >> navigation bar on the bottom, which throws up translucent menues over >> the video. > As long as you only use 256 colors, xine-lib can do it. :) > > >> I know LinuxMCE also uses xine, but i don't think it uses OSD >> though. > Do you know if LinuxMCE uses xine-lib when showint the flashy menue? > LinuxMCE is a even worse then MythTV, when you try to find out how it > works. > In the SVN, I can find at least 3 video player backends: xine, > VideoLan and MPlayer > >> Anyway, it isn't a vital feature in my media center idea, though it'd be >> cool. > let's figure out, how much xine can do. oxine looks quite decent to me > actually. > > matthias I asked on the LinuxMCE IRC once, and someone told me that i used xine to play the video... They also pretty much restricted to nvidia cards, when using the "nice" UI, because of alpha blending. I must admit, I don't know much about that stuff, but i took a look at oxine, and was supprised how nice it actualy looked at the screenshots. Yes, indeed. Let's see how much potential xine has with OSD, so far it looks good. /walker |
From: Matthias R. <mri...@in...> - 2008-09-24 18:45:37
|
On 24.09.2008, at 17:18, Kristian Lindemann Larsen wrote: > What i actualy was going for, was more like LinuxMCE. That has a > navigation bar on the bottom, which throws up translucent menues over > the video. As long as you only use 256 colors, xine-lib can do it. :) > I know LinuxMCE also uses xine, but i don't think it uses OSD > though. Do you know if LinuxMCE uses xine-lib when showint the flashy menue? LinuxMCE is a even worse then MythTV, when you try to find out how it works. In the SVN, I can find at least 3 video player backends: xine, VideoLan and MPlayer > Anyway, it isn't a vital feature in my media center idea, though > it'd be > cool. let's figure out, how much xine can do. oxine looks quite decent to me actually. matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-24 15:18:45
|
What i actualy was going for, was more like LinuxMCE. That has a navigation bar on the bottom, which throws up translucent menues over the video. I know LinuxMCE also uses xine, but i don't think it uses OSD though. That's why i was led to the idea of maybe look into some 3d libraries. Anyway, it isn't a vital feature in my media center idea, though it'd be cool. Matthias Ringwald skrev: > > On Sep 24, 2008, at 7:26 AM, Kristian Lindemann Larsen wrote: > >> Nice class. >> I've been trying to figure out something about coloring, but i'm pretty >> stuck. When drawing text i guess it's limited, but what about drawing >> lines and stuff? There's an integer argument to ex. drawline which >> defines color, but can't seem to figure out how to use it. I've tried >> differing values, but only gets translucent black to white. > As far as I understand the xine documentation, you can use a > palette of max 256 colors. the color integer in the draw* methods specify > the color index into the color table/palette. > To actually set the at color, the xine_osd_set_palette function is used > which I did not wrap yet, as it require to pass on pointers. Adding this > isn't hard but will probably require bits of native code. I will add that > in the next days. > >> Is it possible to draw advanced graphics on the OSD? > I guess this depends on your definition of "advanced". I don't know > if you show e.g. a album cover, but showing a volume control, > a slider for seeking, the time, some text will be fine. check out the > oxine project which uses xine for a media center and only uses > OSD for everything. http://oxine.sourceforge.net/ > now that I looked at it, too, I can see from their screenshots that > they even have album cover. Ok, I will have to look at the source > to see, if they use the standard xine mechanisms or do something else. > >> I'm planning to look in to JOGL (opengl bindings) you know if there's >> any issues or anything? > In addition to JOGL, also have a look at LWJGL http://www.lwjgl.org/ > anyway. no I don't think there are any issues with using JOGL or LWJGL > for doing OpenGL drawing... as long as you don't intend to show OpenGL > and videos in the same window... > Jokes aside, without changes to the internals of e.g. xine, they would > not > work togehter. what I can imagine is to use opengl for showing a 3d scene > and having a video playing on a "virtual" wall inside the 3d world. > both the xine opengl output plugin (used for x11) and the xine mac os x > video output plugin make use of open gl to just copy a video frame to > the screen by creating the frame in opengl texture. if the frame is a > texture > it can be copied anywhere into the 3d scene, in any shape. > however, I never tried this or have seen an example of this. > > > about the 64-bit stuff. a colleague of mine has an AMD64 ubuntu > installation > and is away, so I can check what's going on between libxine-java and the > native code. > > cheer,s > matthias |
From: Matthias R. <mri...@in...> - 2008-09-24 08:10:23
|
concerning the album cover in oxine: from their installation notes, I conclude that they reduce the number of color for a thumbnail to less than 255 and then let xineosd show it. > This library is necessary if you wish to display thumbnail or cover > images. Although it is also possible to use ImageMagick for this > purpose the higher speed of gdk-pixbuf (around factor 10 compared to > ImageMagick) makes it the better choic. > > Because gdk-puxbuf does not provide a method for reducing the number > of colors in an image and because the OSD of xine-lib only support > 256 colors oxine has to do the color reduction. This leads to a > slightly worse image-quality than when using ImageMagick. I still have to figure out, how the pass the thumbnail to the xine osd renderer, as there is only draw_bitmap which I thought would only use B/W images, but it should be possible. Loading images in Java is actually pretty easy, and even reducing the color space might even be already provided by standard Java libs. let's see. matthias |
From: Matthias R. <mri...@in...> - 2008-09-23 15:54:18
|
Hi Kristian thanks for detailed crash report. On 23.09.2008, at 16:55, Kristian Lindemann Larsen wrote: > > When trying to configure (currently trying r375) i get the following > error: > ---------------------------- > ./configure --prefix=/opt/jdk1.6.0_10 > ... > checking for jawt_md.h... yes > Cannot find libjawt, please specify --with-jni-lib-flags. > ---------------------------- > I fix this by inserting the following line at line 22255 in configure: > JNI_LIB="-L/opt/jdk1.6.0_10/jre/lib/amd64/" That's fine, I'll try to add the amd64 subfolder to the search location. Could you also send me your config.log (you can sent this to me directly for this, if you want) ? > Then when trying to compile (make) i get the following error: > ---------------------------- > libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1open': > libxine_wrap.c:1096: warning: cast to pointer from integer of > different size > libxine_wrap.c: In function > 'Java_org_libxine_XineLibJNI_xineJ_1create_1visual': > libxine_wrap.c:1116: warning: cast to pointer from integer of > different size > libxine_wrap.c: In function > 'Java_org_libxine_XineLibJNI_xineJ_1post_1init': > libxine_wrap.c:1181: warning: cast to pointer from integer of > different size > libxine_wrap.c: In function > 'Java_org_libxine_XineLibJNI_xine_1trick_1mode': > libxine_wrap.c:1533: warning: 'xine_trick_mode' is deprecated > (declared > at /usr/include/xine.h:261) > libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1vlog': > libxine_wrap.c:3297: error: incompatible types in assignment > make: *** [libxine_wrap.lo] Error 1 > ---------------------------- > i fix this by: > - arg4 = *argp4; > - xine_vlog(arg1,arg2,(char const *)arg3,arg4); > + xine_vlog(arg1,arg2,(char const *)arg3,*argp4); > > which makes it compile. Is this dangerous, and could this have > anything > to do with the crash? On my systems, there is only a single warning about xine_trick_mode beeing deprectated, no other warnings/error. I do belief that the warnings are a bad sign, and something goes wrong. I'll have to make me smart about 64-bit intel stuff and try to find a 64-bit intel machine for debugging. What happens is that on your platform each pointer is 64-bit wide and passing pointers between java and C is a bit tricky. Could you also sent me the generated libxine_warp.c? I don't think this is a hard problem, but it will requires beeing extra careful. Are all libarares on your system 64-bit wide? what's the output of e.g. file /usr/lib/libxine.so.1.24.0 ? Cheers, Matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-23 14:55:14
|
Okay. My CPU is an "AMD Turion(tm) 64 X2 Mobile Technology TL-56", so yes, it's 64 bit (64-bit kubuntu). Here's a new crash that i made, with the test-player that comes with the build: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f9423a9ec8d, pid=19716, tid=1090947408 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0-b15 mixed mode linux-amd64) # Problematic frame: # C [libxineJNI.so.0.0.0+0x21c8d] xineJ_create_visual+0x35 # # An error report file with more information is saved as: # /home/walker/libxine-java-r375/hs_err_pid19716.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted I've attached the /home/walker/libxine-java-r375/hs_err_pid19716.log file. When trying to configure (currently trying r375) i get the following error: ---------------------------- ./configure --prefix=/opt/jdk1.6.0_10 ... checking for jawt_md.h... yes Cannot find libjawt, please specify --with-jni-lib-flags. ---------------------------- I fix this by inserting the following line at line 22255 in configure: JNI_LIB="-L/opt/jdk1.6.0_10/jre/lib/amd64/" Then when trying to compile (make) i get the following error: ---------------------------- libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1open': libxine_wrap.c:1096: warning: cast to pointer from integer of different size libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1create_1visual': libxine_wrap.c:1116: warning: cast to pointer from integer of different size libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1post_1init': libxine_wrap.c:1181: warning: cast to pointer from integer of different size libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1trick_1mode': libxine_wrap.c:1533: warning: 'xine_trick_mode' is deprecated (declared at /usr/include/xine.h:261) libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1vlog': libxine_wrap.c:3297: error: incompatible types in assignment make: *** [libxine_wrap.lo] Error 1 ---------------------------- i fix this by: - arg4 = *argp4; - xine_vlog(arg1,arg2,(char const *)arg3,arg4); + xine_vlog(arg1,arg2,(char const *)arg3,*argp4); which makes it compile. Is this dangerous, and could this have anything to do with the crash? Thanx walker Matthias Ringwald skrev: > Hi Kristian > > that looks serious. I don't know what's failing. What CPU do you have? > In the log it says something about 64-bit. So far I did not have a > chance to test with 64-bit machines. > Could you sent me the crash log (/hs_err_pid32602.log), maybe it tells > us something. I have a standard Pentium 4 Ubuntu 8.04 for the linux > development and a slightly older Java VM there: > > java version "1.6.0_06" > Java(TM) SE Runtime Environment (build 1.6.0_06-b02) > Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing) > > Does the normal xine-ui (just xine on the command line) work fine on > your system (just trying to check everything) > > matthias > > > On Sep 23, 2008, at 7:18 AM, Kristian Lindemann Larsen wrote: > >> Hey >> I'm currently running kubuntu 8.04.1, manually installed jdk1.6.0_10 and >> developing in netbeans-6.1. >> When i try to run my program, the VM crashes aprox. 9/10 times when i >> try to bind the controller to the video canvas: >> >> engine.createController( video ); >> >> The vm dumps the following: >> >> # >> # An unexpected error has been detected by Java Runtime Environment: >> # >> # SIGSEGV (0xb) at pc=0x00007feebe8aca6d, pid=32602, tid=1097247056 >> # >> # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0-b15 mixed mode >> linux-amd64) >> # Problematic frame: >> # C [libxineJNI.so.0.0.0+0x1fa6d] xineJ_create_visual+0x35 >> # >> # An error report file with more information is saved as: >> # /home/walker/NetBeansProjects/TestVideo/hs_err_pid32602.log >> # >> # If you would like to submit a bug report, please visit: >> # http://java.sun.com/webapps/bugreport/crash.jsp >> # The crash happened outside the Java Virtual Machine in native code. >> # See problematic frame for where to report the bug. >> # >> Java Result: 134 > |
From: Matthias R. <mri...@in...> - 2008-09-23 05:48:00
|
Hi Kristian that looks serious. I don't know what's failing. What CPU do you have? In the log it says something about 64-bit. So far I did not have a chance to test with 64-bit machines. Could you sent me the crash log (/hs_err_pid32602.log), maybe it tells us something. I have a standard Pentium 4 Ubuntu 8.04 for the linux development and a slightly older Java VM there: java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing) Does the normal xine-ui (just xine on the command line) work fine on your system (just trying to check everything) matthias On Sep 23, 2008, at 7:18 AM, Kristian Lindemann Larsen wrote: > Hey > I'm currently running kubuntu 8.04.1, manually installed jdk1.6.0_10 > and > developing in netbeans-6.1. > When i try to run my program, the VM crashes aprox. 9/10 times when i > try to bind the controller to the video canvas: > > engine.createController( video ); > > The vm dumps the following: > > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x00007feebe8aca6d, pid=32602, tid=1097247056 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0-b15 mixed mode > linux-amd64) > # Problematic frame: > # C [libxineJNI.so.0.0.0+0x1fa6d] xineJ_create_visual+0x35 > # > # An error report file with more information is saved as: > # /home/walker/NetBeansProjects/TestVideo/hs_err_pid32602.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in native code. > # See problematic frame for where to report the bug. > # > Java Result: 134 |
From: Matthias R. <mri...@in...> - 2008-09-23 05:42:31
|
Hi Kristian On Sep 23, 2008, at 7:21 AM, Kristian Lindemann Larsen wrote: > Hey Matthias > Thanx, i'll try this out. I'll probably try to write some wrapper > classes for this. Hm.. maybe the next time. :) I added XineOSD yesterday (CET), but was temporarily lacking an SVN client to commit. Have a lookt at http://libxine-java.ringwald.ch/?n=Main.OSD > BTW: This is the first time i'm writing to mail-lists, so i hope i > send > the mails right. Everything's fine. Its also really low-traffic here anyway. Matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-23 05:21:19
|
Hey Matthias Thanx, i'll try this out. I'll probably try to write some wrapper classes for this. BTW: This is the first time i'm writing to mail-lists, so i hope i send the mails right. thanx walker Matthias Ringwald skrev: > Hi Kristian > > On Sep 22, 2008, at 8:43 PM, Kristian Lindemann Larsen wrote: > >> Hey. >> I'm thinking about trying to write a simple linux-based mediacenter in >> java. > That's the exact reason why I started libxine-java... > >> I've made some early tests with libxine-java, and made video play. > Fine. > >> What I was wondering is, if there is (or is planned) to be able to do >> OSD? > libxine-java basically wraps the complete xine-lib. xine-lib contains > support for OSD. See the section of their hacker guide > at http://xinehq.de/index.php/hackersguide#OSD > I just tried the example and it works both in a simple C application > and in Java (I never tried the OSD before). The only catch is that the > documented API is not available to user applications, but function > with similar exists as xine_osd_... For a quick test, just add this > code before calling controller.playOnce(): > > // xine.h constants not provided by libxine-java (yet) > final int TEXTPALETTE_WHITE_BLACK_TRANSPARENT = 0; > final int TEXTPALETTE_WHITE_NONE_TRANSLUCID = 3; > final int OSD_TEXT1 = 0 * 11; > final int OSD_TEXT2 = 1 * 11; > > // used in this example > final int width = 320; > final int height = 240; > > > > // get xine stream > SWIGTYPE_p_xine_stream_s stream = controller.getNativeStream(); > SWIGTYPE_p_xine_osd_s osd = XineLib.xine_osd_new(stream, 0, 0, > width, height); > > /* set sans serif 24 font */ > XineLib.xine_osd_set_font( osd, "sans", 24); > > > > /* copy pre-defined colors for white, black border, > transparent background to > starting at the index used by the first text palette */ > XineLib.xine_osd_set_text_palette(osd, > TEXTPALETTE_WHITE_BLACK_TRANSPARENT, OSD_TEXT1); > > > > /* copy pre-defined colors for white, no border, translucid > background to > starting at the index used by the second text palette */ > XineLib.xine_osd_set_text_palette(osd, > TEXTPALETTE_WHITE_NONE_TRANSLUCID, OSD_TEXT2); > > XineLib.xine_osd_draw_text(osd, 0, 100, "white text, black > border", OSD_TEXT1); > XineLib.xine_osd_draw_text(osd, 0, 130, "white text, no > border", OSD_TEXT2); > > XineLib.xine_osd_draw_line(osd, 0, 0, width-1, height-1, 10); > XineLib.xine_osd_draw_line(osd, width-1, 0, 0 , height-1, 10); > > > > XineLib.xine_osd_show(osd, 0); /* 0 stands for 'now' */ > > > As this works fine, I will add a org.libxine.OSD class that provide an > object-oriented API and makes the calls simpler, e.g., > XineLib.xine_osd_show(osd,..) -> osd.show(..) > > good luck with your project, > Matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-23 05:18:22
|
Hey I'm currently running kubuntu 8.04.1, manually installed jdk1.6.0_10 and developing in netbeans-6.1. When i try to run my program, the VM crashes aprox. 9/10 times when i try to bind the controller to the video canvas: engine.createController( video ); The vm dumps the following: # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007feebe8aca6d, pid=32602, tid=1097247056 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0-b15 mixed mode linux-amd64) # Problematic frame: # C [libxineJNI.so.0.0.0+0x1fa6d] xineJ_create_visual+0x35 # # An error report file with more information is saved as: # /home/walker/NetBeansProjects/TestVideo/hs_err_pid32602.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Java Result: 134 Any idea? Thanx walker |
From: Matthias R. <mri...@in...> - 2008-09-22 20:51:46
|
Hi Kristian On Sep 22, 2008, at 8:43 PM, Kristian Lindemann Larsen wrote: > Hey. > I'm thinking about trying to write a simple linux-based mediacenter in > java. That's the exact reason why I started libxine-java... > I've made some early tests with libxine-java, and made video play. Fine. > What I was wondering is, if there is (or is planned) to be able to > do OSD? libxine-java basically wraps the complete xine-lib. xine-lib contains support for OSD. See the section of their hacker guide at http://xinehq.de/index.php/hackersguide#OSD I just tried the example and it works both in a simple C application and in Java (I never tried the OSD before). The only catch is that the documented API is not available to user applications, but function with similar exists as xine_osd_... For a quick test, just add this code before calling controller.playOnce(): // xine.h constants not provided by libxine-java (yet) final int TEXTPALETTE_WHITE_BLACK_TRANSPARENT = 0; final int TEXTPALETTE_WHITE_NONE_TRANSLUCID = 3; final int OSD_TEXT1 = 0 * 11; final int OSD_TEXT2 = 1 * 11; // used in this example final int width = 320; final int height = 240; // get xine stream SWIGTYPE_p_xine_stream_s stream = controller.getNativeStream(); SWIGTYPE_p_xine_osd_s osd = XineLib.xine_osd_new(stream, 0, 0, width, height); /* set sans serif 24 font */ XineLib.xine_osd_set_font( osd, "sans", 24); /* copy pre-defined colors for white, black border, transparent background to starting at the index used by the first text palette */ XineLib.xine_osd_set_text_palette(osd, TEXTPALETTE_WHITE_BLACK_TRANSPARENT, OSD_TEXT1); /* copy pre-defined colors for white, no border, translucid background to starting at the index used by the second text palette */ XineLib.xine_osd_set_text_palette(osd, TEXTPALETTE_WHITE_NONE_TRANSLUCID, OSD_TEXT2); XineLib.xine_osd_draw_text(osd, 0, 100, "white text, black border", OSD_TEXT1); XineLib.xine_osd_draw_text(osd, 0, 130, "white text, no border", OSD_TEXT2); XineLib.xine_osd_draw_line(osd, 0, 0, width-1, height-1, 10); XineLib.xine_osd_draw_line(osd, width-1, 0, 0 , height-1, 10); XineLib.xine_osd_show(osd, 0); /* 0 stands for 'now' */ As this works fine, I will add a org.libxine.OSD class that provide an object-oriented API and makes the calls simpler, e.g., XineLib.xine_osd_show(osd,..) -> osd.show(..) good luck with your project, Matthias |
From: Kristian L. L. <wa...@pa...> - 2008-09-22 18:59:51
|
Hey. I'm thinking about trying to write a simple linux-based mediacenter in java. I've made some early tests with libxine-java, and made video play. What I was wondering is, if there is (or is planned) to be able to do OSD? /walker |
From: Matthias R. <mri...@in...> - 2008-09-09 09:08:41
|
Hi Rui I did not say that libxine-java does not work with older versions. I just said that I only tested on the command line with a 3.4 version. I would hope that it should work both with older versions and the eclipse. I just hope that you get at least on version to work quickly, so you can try whatever you wanted to do in the first place. I'm interested in all bugs that I can fix, though. :=) I'll also try to run MuXineSWT inside the current Eclipse at home (where the Ubuntu is..). I also hope that libxine-java did not cause your library mess. It only installs the libxine.jar and the libxineJNI.so* If you like, tell me when you get everything working or have to point to libxine-java.. :) cheers Matthias On 09.09.2008, at 00:22, Rui Fernandes wrote: > Hi, > > Thanks for your prompt reply. I have some fixing to do, after messing > about with the libraries installed on my system, not much is working. > I believe though that you are right, although in eclipse I had > selected SWT 3.4 I did not call explicitly call it in the java command > line and eclipse has and older version of SWT that it probably > defaults to. > > -Rui > > > On Sun, Sep 7, 2008 at 5:47 PM, Matthias Ringwald <mri...@in... > > wrote: >> Hi Rui >> >> On 07.09.2008, at 22:40, Rui Fernandes wrote: >> >>> Hi, >>> >>> I installed Libxine-java on my Ubuntu 8.04 machine. I can get the >>> Fullscreen, and Player examples working just fine but I can't seem >>> to >>> get the key events to work. >> What do you mean? In the player example, do the 'f' fullscreen and >> 'q' >> quit keys work? >> >>> Also when I run the MuXineSWT I get this >>> error message: >>> >>> Exception in thread "main" java.lang.IllegalAccessError: tried to >>> access method org.libxine.SWIGTYPE_p_void.getCPtr(Lorg/libxine/ >>> SWIGTYPE_p_void;)J >>> from class org.libxine.XineSWTCanvas >>> at org.libxine.XineSWTCanvas.tryActivate(XineSWTCanvas.java: >>> 147) >>> at >>> org.libxine.XineSWTCanvas.registerXineController(XineSWTCanvas.java: >>> 99) >>> at org.libxine.XineController.<init>(Unknown Source) >>> at org.libxine.Xine.createController(Unknown Source) >>> at example.MuXineSWT.main(MuXineSWT.java:28) >>> >>> BTW I am running eclipse 3.2 >>> >>> Any suggestions? Your help would be greatly appreciated. >> >> >> hm. haven't seen this before. I'm also using Ubuntu 8.04 on a normal >> 32-bit CPU for development. I've used the SWT 3.4 version. >> Can you try with the current SWT 3.4 jar and/or start from the >> command >> line, e.g. java -cp swt-3.4-gtk-linux-x86/swt.jar:build/ MuXineSWT >> Movie.mp4 >> >> regards, >> Matthias >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Libxine-java-devel mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libxine-java-devel >> |
From: Matthias R. <mri...@in...> - 2008-09-07 21:47:07
|
Hi Rui On 07.09.2008, at 22:40, Rui Fernandes wrote: > Hi, > > I installed Libxine-java on my Ubuntu 8.04 machine. I can get the > Fullscreen, and Player examples working just fine but I can't seem to > get the key events to work. What do you mean? In the player example, do the 'f' fullscreen and 'q' quit keys work? > Also when I run the MuXineSWT I get this > error message: > > Exception in thread "main" java.lang.IllegalAccessError: tried to > access method org.libxine.SWIGTYPE_p_void.getCPtr(Lorg/libxine/ > SWIGTYPE_p_void;)J > from class org.libxine.XineSWTCanvas > at org.libxine.XineSWTCanvas.tryActivate(XineSWTCanvas.java:147) > at > org.libxine.XineSWTCanvas.registerXineController(XineSWTCanvas.java: > 99) > at org.libxine.XineController.<init>(Unknown Source) > at org.libxine.Xine.createController(Unknown Source) > at example.MuXineSWT.main(MuXineSWT.java:28) > > BTW I am running eclipse 3.2 > > Any suggestions? Your help would be greatly appreciated. hm. haven't seen this before. I'm also using Ubuntu 8.04 on a normal 32-bit CPU for development. I've used the SWT 3.4 version. Can you try with the current SWT 3.4 jar and/or start from the command line, e.g. java -cp swt-3.4-gtk-linux-x86/swt.jar:build/ MuXineSWT Movie.mp4 regards, Matthias |
From: Rui F. <ru...@ru...> - 2008-09-07 20:40:20
|
Hi, I installed Libxine-java on my Ubuntu 8.04 machine. I can get the Fullscreen, and Player examples working just fine but I can't seem to get the key events to work. Also when I run the MuXineSWT I get this error message: Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.libxine.SWIGTYPE_p_void.getCPtr(Lorg/libxine/SWIGTYPE_p_void;)J from class org.libxine.XineSWTCanvas at org.libxine.XineSWTCanvas.tryActivate(XineSWTCanvas.java:147) at org.libxine.XineSWTCanvas.registerXineController(XineSWTCanvas.java:99) at org.libxine.XineController.<init>(Unknown Source) at org.libxine.Xine.createController(Unknown Source) at example.MuXineSWT.main(MuXineSWT.java:28) BTW I am running eclipse 3.2 Any suggestions? Your help would be greatly appreciated. Thanks, -Rui |