metadata

How can I embed metadata into a custom XMP field with exiftool?

让人想犯罪 __ 提交于 2019-12-05 02:20:23
问题 Can someone please explain how to embed metadata into a custom metadata field in an MP4 file with exiftool? I've searched all the docs and it seems to be related to the config file that needs to be created. Here is what I'm working with. (I know this isnt even close, as its not doing XMP fields, but I havent found a single working example with XMP fields yet. %Image::ExifTool::UserDefined = ( 'Image::ExifTool::Exif::Main' => { 0xd001 => { Name => 'Show', Writable => 'string', WriteGroup =>

Writing XMP Metadata in jpeg (with PHP) - Using Single or Multiple rdf:Description blocks

▼魔方 西西 提交于 2019-12-05 02:06:24
问题 I am attempting to modify the code from PHP_JPEG_Metadata_Toolkit so that I can read and write XMP data correctly for jpeg files using PHP. Currently, the jpeg files (when saved by the Toolkit) give errors with Adobe Photoshop & Bridge because of the XMP block. There are two ways I'm seeing the XMP RDF schema used by Photoshop. The first is what Photoshop is actually saving in the jpg and which I am importing. Photoshop uses a single rdf:Description block for everything. It throws many schema

How to read PDF metadata from R

吃可爱长大的小学妹 提交于 2019-12-05 01:32:26
Our of curiosity, is there a way to read PDF metadata -- such as the information shown below -- from R? I could not anything about that by searching from [r] pdf metadata in the current question base. Any pointers very welcome! I can't think of a pure R way to do this, but you can probably install your favorite PDF command-line tool (for example, the PDF toolkit, PDFtk and use that to get at least some of the data you are looking for. The following is a basic example using PDFtk. It assumes that pdftk is accessible in your path. x <- getwd() ## I'll run this example in a tempdir to keep things

Boto s3 get_metadata

无人久伴 提交于 2019-12-05 01:08:55
Trying to get meta_data that i have set on all my items in an s3 bucket. Which can be seen in the screenshot and below is the code I'm using. The two get_metadata calls return None. Any idea's boto.Version '2.5.2' amazon_connection = S3Connection(ec2_key, ec2_secret) bucket = amazon_connection.get_bucket('test') for key in bucket.list(): print " Key %s " % (key) print key.get_metadata("company") print key.get_metadata("x-amz-meta-company") bucket.list() does not return metadata. try this instead: for key in bucket.list(): akey = bucket.get_key(key.name) print akey.get_metadata("company") 来源:

Hadoop Namenode Metadata - fsimage and edit logs

落爺英雄遲暮 提交于 2019-12-05 00:14:20
问题 I understand that the fsimage is loaded into the memory on startup and any further transactions are added to the edit log rather than to the fsimage for performance reasons. The fsimage in memory gets refreshed when the namenode is restarted. For efficiency, secondary name node periodically does a checkpoint to update the fsimage so that the namenode recovery is faster. All these are fine. But one point which i fail to understand is this, Lets say that a file already exists and the info about

Writing EXIF metadata to images in Android

一笑奈何 提交于 2019-12-04 23:36:35
I want to store some metadata in images. My camera application gives me a bitmap, which I store in the storage (MediaStore) device. In addition to this, I want to add a few tags to the picture in its metadata. I think EXIF is a good way of doing this. But I couldn't find good references on how to do this. If there are some tools to achieve this task in Android programming, please let me know. Thanks Ok, Somebody (offline) pointed me to a useful resource. The ExifInterface looks like what I was searching for. Android-er has a post demonstrating how to read EXIF metadata in Android and I think

How do I dynamically find metadata for a Clojure function?

橙三吉。 提交于 2019-12-04 22:47:21
Say I have the following code: (defn ^{:graph-title "Function 1"} func-1 [x] (do-something-with x)) (defn get-graph-title [func] (str ((meta func) :graph-title))) I expect this to return "Function 1", but it returns nil. I think this stems from the following difference, which I don't totally comprehend: (meta func-1) => {:ns some-ns-info, :name func-1} (meta #'func-1) => {:ns some-ns-info, :name func-1, :graph-title "Function 1"} Can someone explain this to me? The metadata is attached to the var, not to the function. Thus, to get the graph title, you have to get the entry :graph-title from

Should I resubmit the binary after replying to a metadata rejection?

若如初见. 提交于 2019-12-04 22:18:31
I have received a metadata rejection for my application requesting some clarification about my application Information Needed Your iTunes Connect settings indicate that your app serves third-party advertisements. However, we were unable to locate ads in your app. Please reply to this message to provide the steps for locating third-party ads in your app. When we hear back from you, we will continue the review. *** Additionally, we have begun the review of your app but aren't able to continue because we need additional information about your app. At your earliest opportunity, please review the

How to get the last modified date and time of a directory in java

两盒软妹~` 提交于 2019-12-04 21:57:14
问题 See, the problem is that in Java, we can get lastmodified date by filename.lastModified() . But in Windows, what is happening is that whenever a file is modifed, only that file's date and time are getting modified, not the whole folder's. So I want to know when was the last time even one single file was modified in that folder, using Java? 回答1: Find the latest (largest) lastModified() in the directory's files, or if there are none use the directory's itself: public static Date getLastModified

How to write metadata to mp4 file using mp4parser?

允我心安 提交于 2019-12-04 21:42:09
I'm using mp4parser to mux h264 and aac file which are re-encoded from orginal video file,how can I write the metadata of the original video to the new mp4 file? Or is there a common method to write metadata to mp4 file? metadata and MP4 is a really problem. There is no generally supported specification. But this is only one part of the problem. Prob (1): When to write metadata Prob (2): What to write Prob (1) is relatively easy to solve: Just extend the DefaultMp4Builder or the FragmentedMp4Builder on your own and override the protected ParsableBox createUdta(Movie movie) { return null; }