从iOS上的mov文件中提取元数据

时间:2016-09-12 08:01:54

标签: ios objective-c swift react-native

我想知道是否可以从iOS上的mov文件中提取如下元数据。

我使用在线提取器获得的元数据:

content-type            application/mp4 
creation-date           2016-09-02T08:56:21Z
date                    2016-09-02T08:56:23Z 
dcterms:created         2016-09-02T08:56:21Z 
dcterms:modified        2016-09-02T08:56:23Z 
file name               IMG_0144.mov 
file size               4190689 
last-modified           2016-09-02T08:56:23Z 
last-save-date          2016-09-02T08:56:23Z
meta:creation-date      2016-09-02T08:56:21Z
meta:save-date          2016-09-02T08:56:23Z 
modified                2016-09-02T08:56:23Z 
tiff:imagelength        1080 
tiff:imagewidth         1920
xmpdm:audiosamplerate   600 
xmpdm:duration          1.88

1 个答案:

答案 0 :(得分:0)

didFinishPickingMediaWithInfo

写,

   NSLog(@"meta data : %@",info);

您将获得控制台中所有元数据的字典。

例如,

  - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {      

       NSLog(@"meta data : %@",info);

      // other code for picking media
   }