Read metadata

hello,
how can read the media's metadata in java ?
any example, please ?
Eric

use .getEncoding() on the tracks or control tracks, that will start you off

Similar Messages

  • How to read metadata from a pdf file

    hello
    i have got xmp sdk for windows.
    i want to read the metadata from a pdf file but i cannot
    find a way to do so.
    i cannot understand that which method to use to open the file whose metadata i want to read.
    if someone can tell me by an little code example then it would be great help.
    thanks

    The sample XAPDumper read metadata in a file (PDF or not) if it is valide. If you want to keep the XAPMeta object, don't delete this object in ProcessSubstring().

  • Bug: Keywords behave incorrectly after "Read Metadata from File"

    (Happens in LR3.4 RC and probably also in previous versions... but I am not sure if it happened in LR2)
    The problem seems tro be somthing like de-sync of database status and what we see on the screen.
    1) Let's say we have a photo with keyword "abc"
    2) Click in the Keyword List on the arrow around the "abc" keyword to show only photos with this keyword (single one), leave the filter on this settings
    2) Save Metadata to File
    3) Edit XMP in an external application, add new keyword "def"
    4) Read Metadate from File
    5) Now what happens is: The photos disappers from the screen as if it lost the "abc" keyword (weird), but if you look at the Keyword List, the "abc" keyword has still 1 photo attached to it. Also, if you release the filter and find the photo, it clearly has the "abc" and "def" keywords in the Keywording panel. And you can search for this keyword in the text filter (works correctly), but if you click on the arrow around the "abc" keyword, the photo is not shown.
    6) If you restart the Lightroom, it will work correctly again.
    I have an own application that is able to modify the XMP and the modifications may not be perfect, but in my opinion, this shouldn't happen when reading the metadata. If any developer is reading this, I can supply a file with original and changed metadata for debugging.
    It would be great it this could be resolved.
    Thanks!

    Please do report your find with the details you state (well done!) here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Thanks.........

  • Error: Could not read Metadata from Portal Database !

    Hi All!
    My problem is when i am trying to open the portal page (Oracle 10G)
    http://domain/portal/page?_pageid=6,1,6_13&_dad=portal&_schema=PORTAL
    then i have an Error: Could not read Metadata from Portal Database.
    And i do not know why because everything is up and running. I can connect and browse my database schema with portal user. I can connect to pls/orasso and where ever i want.
    [07/Feb/2006:00:57:23 +0100] "GET /pls/portal/htp.p?cbuf=Test HTTP/1.1" 200 5
    plz help i am trying to fix this in the last 2 weeks :)
    thx kEndE

    Hi Andreas,
    I've changed the permissions to 775 and changed the ownership of /sapcd (volume name) to orasid:dba (including all files within the staging area /sapcd/ora-patch).
    So the permissions and ownership seems to be fine.
    I've also ran your suggested commands but the issue still exists.
    I'm now liasing with our UNIX guy to check if there is any underlying permission issues on the volume (sapcd) that may be causing this problem.
    In the mean time, let me know if you have any further thoughts.
    Thanks,
    Chris

  • Reading metadata with exiftool

    OK, let's bounce this one around and see if anyone has an elegant solution!
    I'd like to read metadata that is in images/sidecars, but which LR doesn't display, and put the information into custom fields. While it would be great to have direct access - ie the SDK should let you read XMP data from files or from the Additional_metadata SQL table - in in its absence I am using Exiftool to extract that information. Where I hit a roadblock is that LRTasks can send the correct command line, but LRTasks.execute only returns a 0 or 1, the OS exit message, and not the Exiftool string.
    So I'm forced to look at alternatives. One would be to make Exiftool generate a temporary file, and then attempt to read that. Any other ideas - or support for the above feature request ?
    John

    Hmmm, I responded via email 8 hours ago yet it hasn't shown up. This response might be duplicated if there's just a big latency:
    John - Yes, it's frustrating knowing how much powerful functionality is sitting there but not accessible to us. I hope the SDK opens up much more in upcoming versions.
    Let me know when/if you proceed with this particular idea. I have a project I'm going to need this for in about a month or so and it'd be nice to not reinvent the wheel. If you won't need it until after that, I'll get it going and then we can compare notes when you're ready. Plus, I'm on Windows and would need a Mac user to verify things are working - I assume you'll need the reverse (?).
    db

  • MFT-5031_Error occurred while reading metadata of file

    Am facing the error below while using OMFT to transfer files to a remote FTP server.
    Error occurred while reading metadata of file.
    Action
    Check the adapter properties and try again. If the problem persists, contact Oracle Support Services.
    Error Description
    MFTException [threadName=JCA-work-instance:JMSAdapter-0, errorID=a4322627-8aa5-4796-ae77-3e1576f2e3dc, errorDesc=MFT-5031_Error occurred while reading metadata of file [KE03122014FTSAF26336.AD2] from endpoint [FTPEndPoint: Host:[KRATESTSVR], Port:[5454], User:[Safcom], Folder:[/Files]]., cause=oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: file://wsdl/FileListing_ptt.wsdl [ FileListing_ptt::FileListing(part,part) ] - WSIF JCA Execute of operation 'FileListing' failed due to: Error in listing files in the remote directory. Error in listing files in the remote directory. Unable to list file in remote directory. ; nested exception is: BINDING.JCA-11430 Error in listing files in the remote directory. Error in listing files in the remote directory. Unable to list file in remote directory. Please make sure that the ftp server settings are correct. ]
    Error Text
    Error occurred while reading metadata of file [KE03122014FTSAF26336.AD2] from endpoint [FTPEndPoint: Host:[KRATESTSVR], Port:[5454], User:[Safcom], Folder:[/Files]].

    Yes i am also running with same version 7.0(1) SR5 but
    this error is showing me when i am configuring resources to a new agent if i go directly from RMCM it works fine
    please let me know if some has solution on this.
    Waiting for your replys.
    Thanks & Regards

  • What is([103]) xcscredd(103) deny file-read-metadata /Users

    Hi all, Recently I found that after installed Mac OSX Server and some VPN server , on system monitor recorded many messages about :
    ([103]) xcscredd(103) deny file-read-metadata /Users , and gen many report on
    file:///var/log/asl/AUX.2014.02.20/383655
    do any member know what is these happened ? and how to stop it.
    I set OSX server on private network ,  success connect iPhone to OSX VPN server but cannot access internet from it. Oh....
    not user frirendly to operate OSX Server...
    any helps to slove these 2 problem ?

    1. Open the terminal
    2. type
    sudo vim /Applications/Server.app/Contents/ServerRoot/System/Library/Sandbox/Profiles/xcscredd.sb
    3. enter
    (deny file-read*    (subpath "/Users")    (with no-log) )
    into the file
    To edit the file you have to press i.
    4. The press ESC and then :wq (Enter)
    But you shouldn't do things like this, if even don't know how to change a text file.
    It's on your own risk.

  • How do I get Bridge and Lightroom to respect - read - metadata changes?

    I cull my wedding images in Bridge (CS 6) and then export them into LR 4.  I typically rate images as I'm culling, but when I import those images into LR, the ratings don't carry over.  Likewise, when I label images in LR and export them, Bridge shows all the color labels as white - regardless of which label was actually assigned. 

    Lr saves all edits and any other metadata changes in its database (= the catalog).
    Additionally to the catalog you can <save to file>,i.e. to a xmp-file (in case of a Raw photo), or in the header (but not in the image pixels!) of a JPG, TIFF, or PSD.
    Saving to file is done by
    _ either checking the box <Automatically save changes to xmp> in >Edit >Catalog Settings >metadata tab, or manually
    _ by going >Metadata >Save metadata to file (in Lr Library Module), or
    _ by going >Photo >Save metadata to file (in Develop Module.
    When you save manually to file you can select multiple photos in the Grid Mode and do <Save metadata to file>.
    This saving to file is necessary in order that Bridge can read and display the Lr edits because Bridge cannot read the Lr catalog.
    Bridge saves to file automatically (there is no option of deselecting it) and Lr will read the metadata from Bridge when you import the image into Lr.
    In case of an image that is already in Lr you have to select >Metadata >Read metadata from file (in Lr Library Module), or 
    by going >Photo >Read metadata from file (in Develop Module). Without this <Read metadata from file>, Lr will not display any changes made in Bridge after the import  into Lr. Since this <read metadata from file> would overwrite any different edits you may have done in Lr, it is best to do this before you do further edits in Lr.
    The rating stars should transfer from Bridge to Lr and vice versa without problems.
    For the color labels to transfer correctly you have to make the textual descriptions for the individual colors identical in Lr and in Bridge - down to upper/lower case, commas, hyphens, underscores, etc.
    Having said this:
    I would recommend that you do not use Bridge for culling your images. You can do the culling just as easy in Lr. When you manage photos in Bridge and in Lr, you will always have the problem of synchronizing the metadata. This can be done but it needs a meticulous workflow that is adhered to strictly.
    There is nothing in Bridge that Lr cannot do *). Make your life easier and choose Lr as your only image management and editing tool, except for CS6 itself (I mean Photoshop itself, not the ACR ).
    *) Well there is one thing: Since Lr is not a browser-based program it does not automatically "see" what is on a hard drive. Photos need to be imported in order that Lr will "see" them.
    Bridge is browser-based. Whatever photo is on a hard drive - irrespective of which program put it there - it will be "seen" by Bridge.
    So Bridge is a valuable tool if a photo is not displayed in Lr and you want to check if it is in a particular folder.

  • Gallery: read Metadata tags

    Hello,
    LR-WEB-Gallery provides options to read metadata tags and insert them into WEB-pages by means of this code:
    ["perImageSetting.keywords"] = {
      enabled = true,
      value = "{{com.adobe.keywords}}",
      title = LOC "$$$/WPG/HTML/CSS/properties/ImageKeywords=Keywords",
    and then using the selector and the template text editor in the WEB-UI.
    This method is a bit cumbersome.
    On the other hand some tags can be inserted directly into the details.html like so:
    <p>$image.metadata.keywords</p>
    I prefer this method as it allows to place the desired tags indivdually on the grid.html or details.html.
    I am now curious to learn about a list of the tags that can be read that way because I found that many very common tags are not read that way.
    A list of tags is in the SDK 3.0 but I can't get it to work for most of the tags (not all).
    The values for all these tags are in database (Library Module) and the data has been saved to xmp-sidecar files.
    Still, the data is not read and results as 'nil'.
    Hopefully this is only a syntax issue only.
    Below some examples of common tags not being read:
    $image.metadata.title
    $image.metadata.copyright
    $image.metadata.location
    $image.metadata.isoCountryCode
    $image.metadata.city
    $image.metadata.state
    $image.metadata.country
    ...results
    Location:nil
    ISO Country Code:nil
    City:nil
    Thanks for replies.

    Hi,
    I'm referring to the "TAGS" field.
    I know they appear, but do they serve any purpose beyond simply appearing there? It seems redundant with the DESCRIPTION field. We were told the TAGS field would server some other, more sophisticated purpose, and I wanted to know if that purpose had ever been implemented. Our editorial team doesn't see any value in creating the content for the TAGS field if all it does is display in the browse mode. And I tend to agree. The TAGS field is not searchable as far as I know, or is it???
    Kindest regards,
    Brad

  • Will LR4 read metadata from NX2 NEFs

    Hello, I can't seem to find an answer to this, so perhaps someone can assist:
    I have just bought a refurb' imac 27" and have imported my photos to the imac, inside a folder I have created inside picture called 'Lightroom 4 photos'
    The photos were originally NEFs on my windows laptop, and were imported/edited originally using the Nikon programs transfer, view nx and capture nxw,  They all contain my copyright info etc, and have been keyworded. I am about to import them into LR4, but a little niggle is stopping me. I understand that LR4 won't read my NX2 edits, but can't find out whether a) LR will read the existing metadata so I have to do nothing, or b)I will have to enter all metadata again into lightroom.
    I have about 800 photos, so wouldn't be a huge problem if I needed to re-enter
    I would appreciate any help, and further comments, Thanks
    Roy Kaye

    Hi finesse99,
    NxToo was designed primarily to be able to use NX2 as editor in a Lightroom-centric workflow. Where Lightroom-centric means, among other things: Lightroom is for metadata, NX2 can be used for develop edits.
    To make a longer story shorter, there is no specific feature to transfer metadata (e.g. keywords and ratings) from NEFs, as written by NX2, to NEFs in Lightroom (catalog).
    There is a way to do this, which should be fine for a one-time shot (not optimal for a convenient ongoing workflow), e.g.
    * transfer metadata to xmp using exiftool command:
    exiftool -xmp -b {filename}.nef > {filename}.xmp
    Note: this will overwrite all of your existing xmp files.
    (consider puting this in a batch file, or just change the filename of an exiftool executable to implement batch mode, for example - this filename will do it: 'exiftool (-xmp -b -o %d%f.xmp).exe', but *won't* overwrite existing xmp files, so you'll need to pre-delete them)
    (another option is to use a shortcut to pass parameters - documentation on exiftool website...)
    Drop all of your nefs on the exiftool executable, shortcut, or batch file, then read metadata in Lightroom.
    Lightroom will incorporate the part it understands (e.g. ratings and keywords) and leave the rest, so it's a fairly safe operation, although *do* backup your catalog first just in case.
    Consider re-saving xmp of all nefs afterward, in Lightroom, so xmp files are re-populated with all Lr-supported metadata, if you like having the xmp sidecars around and up2date. Otherwise, all xmp files can be deleted, since NX2 metadata will be now be in Lr catalog.
    The other option I mentioned previously (extract jpeg previews from the NEFs in Lr so NxToo transfers metadata to the jpegs, then sync the jpegs back to the nefs using RawPlusJpeg or Syncomatic) will not work, since Lr metadata will take priority over NX2 metadata. (one could easily modify the code to change this behavior, but that would take lua coding know-how).
    If you need help with the my plugin(s), please contact me outside the forum. help with exiftool can be done in-forum since people don't get so irked when I help other people with software that wasn't written by me personally .
    Rob

  • Bug: "Read metadata from file"

    When I add GPS coordinates to a file (with the program Geotagger) and select "read metadata from file" to import the new metadata, a color adjustment badge appears on the thumbnail (even though I didn't adjust any colors). This only happens with files that have a cropping applied to them in Lightroom. If the file doesn't have a custom cropping the color adjustment badge doesn't appear. It happens with both JPG and CR2 files. Seams like a bug to me.
    I'm on a 24" iMac 2.8 with 4 GB and OSX 10.5.5 / Lightroom 2.1

    It also happens with DNG. Anyway, I don't think it has anything to do with the GPS, but the issue has been around right back through version 1.x Try the following:
    1. Select an image that has no crops or develop adjustments
    2. Switch to Develop module
    3. Apply a crop
    4. Save metadata to file (Cmd+S)
    5. Read metadata back from file (Metadata menu - "Read Metadata from file"
    Please report what happens?
    At my end the Crop badge remains but a Develop Adjustment badge also appears - IMO it shouldn't, but as stated above it has for a VERY long time. I'll bug it again and see what happens.

  • Batch read metadata from file

    Hi Everybody,
    I wonder if Lightroom 3 offers a function that lets me read metadata from file for multiple images in a batch process. The reason is that I have changed the GPS information for quite a couple of my pics using the Geoencoding Support pluging from Jeffrey Friedl and let it write back into the DNG-file. Since I also flushed the shadow data I can't see any GPS information in my metadata table in Lightrrom even though the data are present in the DNG. Now the real question is: Is there a better way to get my GPS data into Lightroom than emptying the Library and reimport all of my pics?
    Oh, and before I forget it: Yes, I have searched this forum - and a couple of others as well - and I found stuff about batch processing date/time information. However, the method presented there apparently does not apply to my problem.
    Thanks for any information.
    Have a nice day,
    f.

    In Library Module, select Grid Mode. Select all images you wish to read metadata from. Go to Metadata>Read Metadata from Files
    Similarly, you can edit time for time zone/ AM-PM issues, etc by going to Metadata>Edit Capture Time

  • Reading Metadata From File Resets the Setting

    I am using Lightroom 4 on MAC OS X Yosemite. I have done some editing on a picture in DNG format and then clicked "Save Metadata to File".  I checked the XMP file with textedit and found that the change is indeed saved. But when I click "Read Metadata From File", it resets the pictures before any editing. Please, I need help to fix this problem.

    jinsheng wrote:
    I have done some editing on a picture in DNG format and then clicked "Save Metadata to File".  I checked the XMP file with textedit and found that the change is indeed saved.
    I'm confused - I'm pretty-sure Lightroom 4 will not save changes to an xmp file (even if DNG is read-only, unlike Bridge) - it embeds the metadata in the DNG file. Did you mean you edited the DNG file with a text editor? Anyway, if you do have a .xmp sidecars to your DNG, I recommend deleting them, or renaming them (until you figure out what's going on anyway), then retry - any difference?
    PS - last I checked, Lr will generate an error when saving metadata if DNG is read-only, but since you're having a strange problem, I'd definitely make sure they are not read-only.
    Note: Lr WILL read metadata from an xmp sidecar, *iff* it seems newer than what is embedded. So, IF you have xmp sidecars that have a recent modification date, or *maybe* (I don't really know) if Lr was NOT able to successfully embed metadata into your DNG, it could be reading some incompatible metadata from the xmp sidecar - thus the reason to get it out of the way to test..

  • Looking for pure Java API to read metadata from an MP4 file.

    Hi, I am looking for a pure Java api that can read MP4 metadata. I have been trying to look online for one but have not found anything
    suitable. If there are no good api's, can someone point me to resources on how to parse metadata from an MP4, tutorials would be great
    as well. I have looked online for that as well but have not found much. Any help would be greatly appreciated.

    Cross posted
    http://www.java-forums.org/new-java/59652-looking-pure-java-api-read-metadata-mp4-file.html
    http://www.coderanch.com/t/580833/Streams/java/Looking-pure-Java-API-read
    http://stackoverflow.com/questions/10568588/looking-for-pure-java-api-to-read-metadata-from-an-mp4-file
    db

  • Read metadata from file cancel modifications !

    Hi,
    I use Lightroom 1.1 in french. I made some photo (in raw but in jpeg the result is the same) and import them in Lightroom with conversion in DNG. In Lightroom, in develop module, I crop, change contrast and som others.
    After that, I geotag my DNG files with HoudahGeo. HoudahGeo write geotag in the file. So back in Lightroom, I make a 'Read metadata from file' ('Lire les métadonnées depuis les fichiers' in french) for having geotag in Lightroom.
    Geotag are now in Lightoom, nice, but in develop history, I have a new line 'Rénitialiser les paramètres' !!! So I can't see all my modifications... Is it normal ?
    Thank you
    PS: Sorry for my english...

    I think you should test this with one or two pictures - import/convert, save metadata to file, geotag, read metadata. Also try import/convert, make small adjustment, save metadata to file, geotag, read metadata. In iView I often write metadata to DNG's that have been adjusted, then read the metadata in Lightroom - sometimes I add more data in iView and do more adjustments.
    I have seen the problem you describe, but it has been with raw files which I have adjusted in Lightroom but haven't saved out the metadata. I have then created an xmp sidecar in iView, and read the metadata in LR. So the sidecar had no ACR/LR instructions. The result was that my adjustments were wiped out. What I suspect is that something similar is happening with your DNGs - that conversion creates them but doesn't write the ACR/LR fields.
    So try a few alternative sequences.
    John

  • Read Metadata from TIFF-file

    Hi All!
    I try to get metadata from a TIFF-file. I tried to do this with this code. Everytime i get the same error. Anyone can help me?
    int imageIndex = 0;
    File f = new File(sourceFile);
    ImageInputStream stream = ImageIO.createImageInputStream(f);
    Iterator iter = ImageIO.getImageReaders(stream);
    ImageReader reader = (ImageReader)iter.next();
    reader.setInput(stream);
    IIOMetadata m = reader.getImageMetadata(imageIndex);
    Errormessage:
    run-single:
    Exception in thread "main" javax.imageio.IIOException: I/O error reading image metadata!
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.readMetadata(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.seekToImage(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.getImageMetadata(Unknown Source)
    at tiffmetadatabug.Main.main(Main.java:80)
    Caused by: java.io.EOFException
    at javax.imageio.stream.ImageInputStreamImpl.readShort(ImageInputStreamImpl.java:211)
    at javax.imageio.stream.ImageInputStreamImpl.readUnsignedShort(ImageInputStreamImpl.java:222)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFIFD.initialize(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFIFD.initialize(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageMetadata.initializeFromStream(Unknown Source)
    ... 4 more
    Java Result: 1

    I think you should test this with one or two pictures - import/convert, save metadata to file, geotag, read metadata. Also try import/convert, make small adjustment, save metadata to file, geotag, read metadata. In iView I often write metadata to DNG's that have been adjusted, then read the metadata in Lightroom - sometimes I add more data in iView and do more adjustments.
    I have seen the problem you describe, but it has been with raw files which I have adjusted in Lightroom but haven't saved out the metadata. I have then created an xmp sidecar in iView, and read the metadata in LR. So the sidecar had no ACR/LR instructions. The result was that my adjustments were wiped out. What I suspect is that something similar is happening with your DNGs - that conversion creates them but doesn't write the ACR/LR fields.
    So try a few alternative sequences.
    John

Maybe you are looking for

  • Add to computer

    I have a new lap top and i'm trying to add my printer to it but don't know how it don't have a CD drive and it don't have window it is a acer chromebook how do i fine drive this

  • Connecting G3 OS 8.6 via Ethernet to AEBS

    Have been using an old D-Link router to connect G4 10.5.8 via airport, Macbook 10.5.8 via airport, Windows laptop XP via wireless and G3 OS 8.6 via ethernet. The G3 because it seems to be the only option for an old, slow but still nice quality printi

  • How to remove the 0 that is added to the formula result

    Hi,        I have a formula field. i placed the formula field in the group footer. zero (0) is added to the formula result. if the formula result is 8 then i am getting 0.00 and 8 as data when i select the browse field data of that field . how to rem

  • Making link to external swf stop

    Using flash 8.  Inserted a link to a 2:15 second swf on the internet (get URL xxx.swf) at the beginning of my fla file, it plays fine but when the swf is over, how can I make it go away, in order to continue on with my presentation? 

  • Program with 2 dynamic i_tabs (cl_alv_table_create= create_dynamic_table)

    Dear Expers I created a ABAP with dynamic internal table using cl_alv_table_create=>create_dynamic_table more or less according to this example here: cl_alv_table_create=>create_dynamic_table error Now I need a second dynamic internal table in the sa