Questions tagged [avmetadataitem]

An AVMetadataItem object represents an item of metadata associated with an audiovisual asset or with one of its tracks. To create metadata items for your own assets, you use the mutable subclass, AVMutableMetadataItem.

From the iOS Developer Library:

An AVMetadataItem object represents an item of metadata associated with an audiovisual asset or with one of its tracks. To create metadata items for your own assets, you use the mutable subclass, AVMutableMetadataItem.

Metadata items have keys that accord with the specification of the container format from which they’re drawn. Full details of the metadata formats, metadata keys, and metadata key spaces supported by AV Foundation are available among the defines in AVMetadataFormat.h.

You can load values of a metadata item “lazily” using the methods from the AVAsynchronousKeyValueLoading protocol (see “Asynchronous Loading”). The AVAsset class and other classes in turn provide their metadata lazily so that you can obtain objects from those arrays without incurring overhead for items you don’t ultimately inspect.

You can filter arrays of metadata items using the methods of this class. For example, you can filter by key and key space, by locale, and by preferred language.

30 questions
8
votes
1 answer

How can I extract metadata from mp3 file in ios development

I am working on an ios music player with cloud storage. I need to extract the music information such as title, artist, artwork. I have an action called playit which plays and pauses the mp3 file. It should also populate some UILables and UIImage…
user951297
6
votes
1 answer

Change AVMetadataItem

I have some files, -m4a -mp4 -mp3 etc. I want to change these details AVMetadataItem AVMetadataCommonKeyArtwork AVMetadataCommonKeyArtist I can do with AVAssetExportSession, But I need to change the directory. Is there a way I can write…
5
votes
1 answer

How to add metaData in video(.mov) in iOS

I already capture video via phone's camera with AVCaptureMovieFileOutput Object, I want to add new meta data into file, I try to use AVAssetExportSession to do it, it works ! BUT it cost a lot of time, I guess, this method has re-encode the file, I…
Devin
  • 286
  • 1
  • 5
  • 14
5
votes
1 answer

Writing ID3 tags via AVMetaDataItem

I'm writing ID3 tags to a file using AVMetaDataItem var soundFileMetadata = [AVMetadataItem]() soundFileMetadata.append(createMetadata(AVMetadataiTunesMetadataKeyArtist,…
Teejay
  • 7,210
  • 10
  • 45
  • 76
4
votes
4 answers

Encoding of AVMetadataItem

I have a AVMetadataItem which has fields encoded in CP1251 (Cyrillic). After reading item.stringValue I get garbage - incorrectly encoded string. I've tried converting that string to raw UTF8 and then creating a new string using the CP1251 encoding…
reflog
  • 7,587
  • 1
  • 42
  • 47
4
votes
0 answers

Metadata when Remuxing MP3 Audiobooks into Apple-friendly MP4 with FFmpeg

Since there is apparently no way to tell iTunes or iOS that MP3s contain an audiobook (or radioplay) by ID3 tag or file extension, I would like to remux them into MPEG-4 Part 14 containers with an .m4b file extension (without converting, i.e.…
Crissov
  • 947
  • 11
  • 16
4
votes
1 answer

AVMetadataObjectTypePDF417Code not able to read Maryland drivers license

I have been shipping an app for some time that uses AVFoundation Framwork to read the PDF417 barcode on a driver's license in order to capture data. Works great with a number of different state drivers' licenses. However, I have been unable to get…
Chuck Krutsinger
  • 2,830
  • 4
  • 28
  • 50
3
votes
1 answer

How to set the identifier of AVMetadataItem in swift3?

Description: I'm attempting to set the identifier of AVMetadataItem in swift3, like mentioned in this apple video. However, the video is pre-swift3. In swift2 it would look something like this: let metadataItem = AVMetadataItem(identifier:…
kemicofa ghost
  • 16,349
  • 8
  • 82
  • 131
3
votes
1 answer

Xcode AVCapturesession scan Barcode in specific frame (rectOfInterest is not working)

I am trying to design a barcode scanner for an App i am currently working on. I want the scanner preview to fill the whole screen of the device and provide a smaller frame to point at barcodes. All is working how i want it but i can not get the…
Thomson
  • 181
  • 2
  • 12
2
votes
1 answer

How to get all associated data or metadata from podcast using Swift?

I'm currently using Swift 3 to create a podcast player and I am having problems accessing all the 'hidden' data (metadata) associated with a podcast file. Specifically, in Apple's Podcast app they show 'comments' or rather a detailed description.…
wayneh
  • 4,393
  • 9
  • 35
  • 70
2
votes
1 answer

timedMetaData value has wrong encoding

I'm developing a radio app for iOS and need to be able to parse metadata from an audio stream with an encoding that supports Norwegian characters "ÆØÅ". Using timedMetaData on an AVPlayerItem these three characters are displayed as "ÃÃÃ". Does…
tomen
  • 31
  • 4
2
votes
1 answer

Using Barcode Corners to Create CGRect?

I'm trying to draw a red rectangle over a detected barcode, using iOS 7's newest barcode api's. I've managed to pull in the bounds and corners, but I don't quite know how to take that information and apply it to my view. In the viewDidLoad Method I…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
2
votes
2 answers

QR code ios 7 AVMetadataObject

I Have problem with detect where is qr code. I need draw border around it. I use AVMetadataObject bezierpath, but it dont work. Please help me. - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:(NSArray…
Unmerciful
  • 1,325
  • 4
  • 21
  • 38
2
votes
2 answers

How do you create an AVMutableMetadataItem for AVMetadataFormatiTunesMetadata

I am trying to update the track number of files using AVMutableMetadataItem's. I have been having some success except for AVMetadataFormatiTunesMetadata. I cannot seem to figure out what I need to set as the value to get this to work. I have tried…
xizor
  • 1,554
  • 2
  • 16
  • 35
1
vote
1 answer

why do other properties need nullability type specifier

I am getting the date when a photo was created using @property(nonatomic, readonly, nullable) AVMetadataItem *creationDate; in my .h file. Then I get the value of the AVMetadataItem of my video asset. This works fine however when I add this to my…
1
2