Adding custom metadata to videos using AVFoundation

I want to add some information (metadata) to the video. I found a way to get metadata, but did not find a solution to set or change metadata. I use AVURLAsset, AVAssetWritterand AVMutableCompositionto create a video.

+3
source share
4 answers

Use -[AVAssetWriter setMetadata:].

This is the value of NSArray AVMutableMetadataItems. Please note: you cannot set the value after recording starts.

Metadata keys and key spaces are listed in AVMetadataFormat.h.

+2
source

AVMutableComposition metadata AVAssetExportSession, , , ( ).

+1

"off line". id3taggenerator , .

: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html

, , : http://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/

If you want to add meta data to the application (since the user is recording video and adding their own metadata), I'm not sure.

0
source

Check out gusutils ==>

https://github.com/gpambrozio/GusUtils

There is an xcode project to create a static library that allows you to add metadata and geolocation information to your video, and then save it to the asset library.

-1
source

Source: https://habr.com/ru/post/1679129/


All Articles