Post

Replies

Boosts

Views

Activity

Reply to Writing MP4 metadata with AVFoundation
the AVMetadataItem writing indeed seems fraught with peril. i tried a bunch of examples with basic stuff like title and description in the "common" metadata family, and none of them seem to write data to the file using AVAssetWriter for mp4 files. checked by mpls command line. does anyone know the difference between the .key and the .identifier ? i see examples with .key and examples with .identifier. why we should use one over the other = ?
Topic: Media Technologies SubTopic: Audio Tags:
Feb ’22
Reply to sometimes file stat fails for media files / iOS 14.2 and up
continued: this is the error we get fairly often (same file works other times). this is a file from the photos folder. Error Domain=NSCocoaErrorDomain Code=260 "The file “IMG_2685.mp4” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/mobile/Media/DCIM/102APPLE/IMG_2685.mp4, NSUnderlyingError=0x281af1cb0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to AVAssetExportSession fails part way thru for long videos
hi, thanks for the response. the problem seems to be at some low level. example case is: get a movie longer than 1 hour into your camera roll. try to clip it to 1 hour with the built-in video tools in the iOS photo app. it clips it to something like 43 minutes instead of 1 hour. we have temporarily worked around the problem by only allowing 40 minute videos max in our app. it is interesting that you say there might be a problem w/ the video, i will try other videos when we get back to this issue.
Topic: Media Technologies SubTopic: Audio Tags:
Apr ’21
Reply to iphone has denied the launch request
if anyone else is running into this error, just ran into this in Feb 2021, i found a clue that helped me solve it via this other forum post https://developer.apple.com/forums/thread/662300 when i would go to the keychain app on mac and click on the auto-generated developer certificate (not provisioning profile, but certificate), keychain was showing a message about the certificate being "not trusted" delete that cert, it seems to be bad. this led me to the above link, which tells you to re-download an intermediate certificate. then do the automatic provisioning in apple xcode as usual (like unclick automatic button and reclick it). then try to run on device. works, finally first time in a couple weeks i got this to work. what a terrible error message it gives for this problem. why not just say the intermedidate certificate is untrusted, so get a new one from this link here?
Feb ’21