Okay, here is my new question. I would like to import ViPER xml data
into Matlab. In theory, I could use Java calls from Matlab with the
ViPER api. Unfortunately, I am working in a Windows environment and I
assume that I will have to compile the specific Java in Windows for
this purpose - correct me if I am wrong. I have downloaded the full
source and so would like advice on the compilation process, in
Windows, for the api part of the code. To get a clue, I have had a
look at the make file in the api directory but don't understand it.
I have no Java experience but guess that my Visual Studio has hooks to
a Java compiler - it seems to recognise the Java source files.
Matlab supports native access to java, so you should be able to point
your copy of matlab to load all of the .jar files in the viper-light
distribution and access them that way. For an overview of how to add
java classes to your matlab instance, check out here:
You will have to add most of the .jar files in the viper-light package
available.
On the viper web site, there is some minimal documentation, for some
ideas about how to write scripts that read or write viper data files.
There are two formats, the .xgtf xml format, and an older,
easier-on-the-eyes plain text format (you can convert between the two
with the xml2gtf and gtf2xml tools). The main difference, other than
the way they look, is that the xml format supports describing multiple
media files from a single metadata file.
If you want to actually build the thing, I use Eclipse, IBM's free
java IDE. However, I'd suggest just munging with the files directly.
I'll see if I can upload a generated api documentation file somehow,
which would make it a lot easier to use the API for reading and
writing viper metadata files.
> Okay, here is my new question. I would like to import ViPER xml data
> into Matlab. In theory, I could use Java calls from Matlab with the
> ViPER api. Unfortunately, I am working in a Windows environment and I
> assume that I will have to compile the specific Java in Windows for
> this purpose - correct me if I am wrong. I have downloaded the full
> source and so would like advice on the compilation process, in
> Windows, for the api part of the code. To get a clue, I have had a
> look at the make file in the api directory but don't understand it.
> I have no Java experience but guess that my Visual Studio has hooks to
> a Java compiler - it seems to recognise the Java source files.
> Matlab supports native access to java, so you should be able to point
> your copy of matlab to load all of the .jar files in the viper-light
> distribution and access them that way. For an overview of how to add
> java classes to your matlab instance, check out here:
> You will have to add most of the .jar files in the viper-light package
> available.
> On the viper web site, there is some minimal documentation, for some
> ideas about how to write scripts that read or write viper data files.
> There are two formats, the .xgtf xml format, and an older,
> easier-on-the-eyes plain text format (you can convert between the two
> with the xml2gtf and gtf2xml tools). The main difference, other than
> the way they look, is that the xml format supports describing multiple
> media files from a single metadata file.
> If you want to actually build the thing, I use Eclipse, IBM's free
> java IDE. However, I'd suggest just munging with the files directly.
> I'll see if I can upload a generated api documentation file somehow,
> which would make it a lot easier to use the API for reading and
> writing viper metadata files.
> David Mihalcik
> On Fri, Sep 11, 2009 at 4:09 PM, Douglas <dug.armad...@googlemail.com> wrote:
> > Hi,
> > This is my third post in a row, but I promise that I am not trying to
> > dominate this mailing list.
> > Okay, here is my new question. I would like to import ViPER xml data
> > into Matlab. In theory, I could use Java calls from Matlab with the
> > ViPER api. Unfortunately, I am working in a Windows environment and I
> > assume that I will have to compile the specific Java in Windows for
> > this purpose - correct me if I am wrong. I have downloaded the full
> > source and so would like advice on the compilation process, in
> > Windows, for the api part of the code. To get a clue, I have had a
> > look at the make file in the api directory but don't understand it.
> > I have no Java experience but guess that my Visual Studio has hooks to
> > a Java compiler - it seems to recognise the Java source files.
> for (Descriptor d : newFile.getSourcefile
> ("yourFile.mpg").getDescriptors()) {
> // do something with the descriptor
> }
> I don't have a copy of matlab handy, and i don't quite remember how to
> translate java syntax into matlab syntax.
> On Sep 11, 11:51 pm, David Mihalcik <kraka...@gmail.com> wrote:
> > Matlab supports native access to java, so you should be able to point
> > your copy of matlab to load all of the .jar files in the viper-light
> > distribution and access them that way. For an overview of how to add
> > java classes to your matlab instance, check out here:
> > You will have to add most of the .jar files in the viper-light package
> > available.
> > On the viper web site, there is some minimal documentation, for some
> > ideas about how to write scripts that read or write viper data files.
> > There are two formats, the .xgtf xml format, and an older,
> > easier-on-the-eyes plain text format (you can convert between the two
> > with the xml2gtf and gtf2xml tools). The main difference, other than
> > the way they look, is that the xml format supports describing multiple
> > media files from a single metadata file.
> > If you want to actually build the thing, I use Eclipse, IBM's free
> > java IDE. However, I'd suggest just munging with the files directly.
> > I'll see if I can upload a generated api documentation file somehow,
> > which would make it a lot easier to use the API for reading and
> > writing viper metadata files.
> > David Mihalcik
> > On Fri, Sep 11, 2009 at 4:09 PM, Douglas <dug.armad...@googlemail.com> wrote:
> > > Hi,
> > > This is my third post in a row, but I promise that I am not trying to
> > > dominate this mailing list.
> > > Okay, here is my new question. I would like to import ViPER xml data
> > > into Matlab. In theory, I could use Java calls from Matlab with the
> > > ViPER api. Unfortunately, I am working in a Windows environment and I
> > > assume that I will have to compile the specific Java in Windows for
> > > this purpose - correct me if I am wrong. I have downloaded the full
> > > source and so would like advice on the compilation process, in
> > > Windows, for the api part of the code. To get a clue, I have had a
> > > look at the make file in the api directory but don't understand it.
> > > I have no Java experience but guess that my Visual Studio has hooks to
> > > a Java compiler - it seems to recognise the Java source files.