metadata

Extract duration of video file without external process in python

大兔子大兔子 提交于 2019-12-11 03:41:57
问题 Is there a way to extract the duration information from a video file's metadata (or maybe calculate the duration some other way) in python without invoking an external process. I've found a number of answers that reference using ffprobe but that isn't an option for me. I need this to be all self contained within the python app. The file formats I need to process are .mp4 , .mov , .mxf and preferably as many other common video file formats as possible. Edit: I am using python 3.x so

SAS Folder Path for Metadata tables

隐身守侯 提交于 2019-12-11 03:24:18
问题 I'm wondering if anyone knows how to retrieve the sas folder path for metadata tables? I would like to list the folder path for each tables located on metadata. Example: Table FactPortfolio is under the following fodler structure in management console: Commerc-->Sweden-->Portfolios-->Resources-->Tables In metadata browser in sas, I can find the folder path if I click on tables and trees and parent trees until i reach the top hierarchy. However, I would like to retrieve it with metadata data

Exception while parsing metadata in BreezeJS client

依然范特西╮ 提交于 2019-12-11 03:12:33
问题 Prequel and version info: BreezeJS client version: 1.5.2 Metadata generated on custom server via design-time EntityFramework model (6.1.2) BreezeLabs EdmBuilder (1.0.5) Had problems generating metadata also which can be read here: How to generate valid metadata from EF DBContext via EdmBuilder for OData v3/BreezeJS Question/Problem: Now the breeze client is throwing an error while interpreting the metadata. Unable to process returned metadata: A nonnullable DataProperty cannot have a null

Why No android.content.SyncAdapter meta-data registering sync-adapter?

家住魔仙堡 提交于 2019-12-11 02:52:54
问题 I am following the SampleSyncAdapter and upon startup, it appears that my SyncAdapter is not configured correctly. It reports an error trying to load its meta-data. How can I isolate the problem? You can see the other accounts in the system that register correctly. Logcat: 12-21 17:10:50.667 W/PackageManager( 121): Unable to load service info ResolveInfo{4605dcd0 com.myapp.syncadapter.MySyncAdapter p=0 o=0 m=0x108000} 12-21 17:10:50.667 W/PackageManager( 121): org.xmlpull.v1

Adding 8BIM profile metadata to a tiff image file

梦想与她 提交于 2019-12-11 02:48:25
问题 I'm working on a program which requires 8BIM profile information to be present in the tiff file for the processing to continue. The sample tiff file (which does not contain the 8BIM profile information) when opened and saved in Adobe Photoshop gets this metadata information. I'm clueless as to how to approach this problem. The target framework is .net 2.0. Any information related to this would be helpful. 回答1: No idea why you need the 8BIM to be present in your TIFF file. I will just give

Get image create date in PHP GD

我的梦境 提交于 2019-12-11 02:47:39
问题 I have a case: I took a photo. Now I want to read date of the created photo (the shooting photo date) using GD. Is it possible to get this date created from the image metadata? 回答1: Use exif_read_data() function instead, you will get everything you'd need :) http://php.net/manual/en/function.exif-read-data.php Look for the particular Exif data with a key DateTimeOriginal. Make sure that the software you are using are not stripping the actual exif. For example if you are using Photoshop, doing

zf2 + doctrine2 and No Metadata Classes to process

大城市里の小女人 提交于 2019-12-11 02:23:45
问题 I'm using tutorial http://www.nuvolia.com/2013/03/09/zend_framework_doctrine_install/. The module Application fork fine with Doctrine ORM but when i'm tring to connect in another module i'm reciving error: d:\Aptana Studio\Projects\app01>vendor\bin\doctrine-module orm:schema-tool:create Deprecated: "Symfony\Component\Console\Helper\DialogHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\Qu estionHelper" instead. in D:\Aptana Studio

Attaching simple metadata to a MySQL database

≯℡__Kan透↙ 提交于 2019-12-11 02:20:46
问题 Is there a way to attach a piece of metadata to a MySQL database? I'm trying to write code to automatically update the database schema whenever a code upgrade requires it. This requires the storage of a single integer value -- the schema version. I could of course create a whole table for it, but that seems like overkill for just a simple number. 回答1: You can use table comments to store the version: ALTER TABLE table1 COMMENT = '1.4'; You'll have to regex to get the comment from this: SHOW

How to query item's metadata from Couchbase?

廉价感情. 提交于 2019-12-11 01:49:14
问题 I put some data to CouchBase 1.8.1,and get it successful.But I want to query its metadata,as expiration and att_reason(non-json or json).In some document,it list the metadata with json format,for example: { "_id" : "contact_475", "_rev" : "1-AB9087AD0977F089", "_bin" : "...", "$flags" : 0, "$expiration" : 0, "name" : "Fred Bloggs", } How can I query item's metadata? 回答1: As Pavel the most common way to access metadata in Couchbase (2.0) is using Views. You can also use the internal TAP

Hibernate 5.2 get natural id properties from metamodel

醉酒当歌 提交于 2019-12-11 01:49:00
问题 Since SessionFactory#getClassMetadata(java.lang.Class) was deprecated, I am not able to use ClassMetadata. I would like to access to the following methods: org.hibernate.metadata.ClassMetadata#getNaturalIdentifierProperties org.hibernate.metadata.ClassMetadata#hasNaturalIdentifier According to the documentation, I should replace getClassMetada with EntityManagerFactory.getMetamodel(). However, the metamodel does not contain methods to get natural-id. I am using xml mapping for natural-id and