I have a 3d camera app that I'm working on and I am wondering how to put the two videos side-by-side to save to Photos as one video using this delegate method: func fileOutput(_ output: AVCaptureFileOutput,
didFinishRecordingTo outputFileURL: URL,
from connections: [AVCaptureConnection],
error: Error?) {
Thank You!
Post not yet marked as solved
So my timeline is this:
Got MBP 16' in March with graphics options:
AMD Radeon Pro 5500M 4 GB
Intel UHD Graphics 630 1536 MB
Up until 10.15.5 came out, I had zero problems/crashes and I always have the laptop closed and an external display connected with an official Apple A/V adapter using HDMI. As soon as I installed 10.15.5 the panics started happening.
Reason:					 (1 monitored services unresponsive): checkin with service: WindowServer returned not alive with context: unresponsive work processor(s): WindowServer main thread	40 seconds since last successful checkin
Literally after the update ended, I didn't touch the laptop for some time, the external monitor went to sleep and the laptop panic'ed and rebooted. I installed apps like Caffeine to prevent the external monitor from going to sleep and managed to continue working.
Some days after this the crashes started happening even when the monitor was not going to sleep. Usually when using apps that put some strain on the video such as video conferencing apps. These crashes started to become more frequent. The display froze, for about 2 minutes, the laptop started getting very warm and the fans would not go faster, then after 2 minutes the fans go into turbo mode for about 1 second and the laptop reboots.
After this I reverted to 10.15.4 and reset SMC, etc, and the panics when the display goes to sleep are gone, but the crashes when I'm using the computer continue. I tried ditching the adapter and using a usb-c displayport cable but the problem remained.
As a final test, I unplugged everything from the laptop and disabled "automatic graphics switching" to force the AMD to be used even with no external display. Sure enough, I was able to reproduce the issue. So it seems not related to an external display, but the AMD card itself (which is always used when an external display is connected).
Sad times.
Post not yet marked as solved
How to get a Video, like .mp4 or .mov converted or placed into USDZ File?
Post not yet marked as solved
Is there a way to disable the default video controls (play/pause/scrubber/etc) on the new SwiftUI VideoPlayer in iOS14, so I could create a custom one?
Post not yet marked as solved
I have the new iOS 14 VideoPlayer:
private let player = AVPlayer(url: Bundle.main.url(forResource: "TL20_06_Shoba3_4k", withExtension: "mp4")!)
		var body: some View {
								VideoPlayer(player: player)
								.aspectRatio(contentMode: .fill)
...
This player setup can not display 4:3 video on 16:9 screen of tv without black stripes. Modifier aspectRatio does not work on VideoPlayer.
How can I set videoGravity of existed AVPlayerLayer to resizeAspectFill via SwiftUI API?
Post not yet marked as solved
Can you apply face tracking to pre-recorded video from your iPhone 11 with ARKit? What format would you need to record? I assume you’d need the depth data from your camera as well.
Post not yet marked as solved
I'm currently trying to record HTML5 video using the <input> tag.
The way I'm doing this is as so:
<input id="videoFile" type="file" accept="video/*" capture="user"/>
This works, but the video is always in 360x480 resolution. I wish to know if there is a way to increase this.
I've tried going into the camera settings of my iPhone XR, but none of the 6 options there make any difference to the recorded video.
A source I found from 2016 said that 1080p 60fps would work, and the rest would not. I think this may have changed since.
If this is a duplicate question/issue, I apologise as I have not found it.
Thanks for any help!
Post not yet marked as solved
I'm trying to move a video I create from images within my app from a temporary path to the photo library.
I've verified that the movie exists by downloading the app data via devices/xcode and the movie then plays fine on my macbook.
I've tried:
UISaveVideoAtPathToSavedPhotosAlbum(
videoPath,
self,
#selector(self.video(_:didFinishSavingWithError:contextInfo:)),
nil)
with Error:
Optional(Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x283684570 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x283681860 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x28366e490 {Error Domain=com.apple.photos.error Code=42001 "(null)"}}}}}})
and
PHPhotoLibrary.requestAuthorization { status in
// Return if unauthorized
guard status == .authorized else {
print("Error saving video: unauthorized access")
return
}
PHPhotoLibrary.shared().performChanges({
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL as URL)
}) { success, error in
if !success {
print("Error saving video: \(String(describing: error))")
}
}
}
with Error:
Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo= ...... {Error Domain=com.apple.photos.error Code=42001 "(null)"
both compile fine and are called, but end up giving me errors that do not help in the slightest.
I have a full help request on StackOverflow with a link to the project (that it does not let me post here): https://stackoverflow.com/questions/63575539/swift-ios-save-video-to-library
Anyone else having problems to play youtube videos within Safari in the Big Sur Beta 10?
No matter what video I choose, it always states an error occured. Only happens since Beta 10.
Post not yet marked as solved
I have been developing an app that uses Youtube Content which I am fetching from Youtube Data API which is publicly provided by Youtube itself.
Basically, my app shows a list of Youtube Videos and playlist fetched from Youtube API in the user interface and the user can play video
The app I am developing is not enabling users to "save, convert, or download" any videos directly or indirectly
App Store Review Guidelines mentions two points
1 > 5.2.2 points states that "Authorization must be provided upon request"
2> 5.2.3 states that "Documentation must be provided upon request"
so my question is that is there any chance of my app may face app store rejection? if yes then what can I do in order to pass the app store review process?
if my app receives app store rejection then how can I get "Authorization" or "Documentation" from Youtube because as far as I read on Youtube API Documentation Youtube is not providing neither "Authorization" nor "Documentation". Youtube only lets you register your app on their console and gives you API key using which you can get data
Post not yet marked as solved
Does AppleTV 4K support HLG in any configuration? When I connect my AppleTV 4K to a Samsung TV with HLG support via HDMI
AVPlayer.availableHDRModes.contains(.hlg) returns false
However
AVPlayer.availableHDRModes.contains(.hdr10) returns true
https://support.apple.com/en-us/HT208074 only mentions HDR10 and Dolby Vision support.
Is there any way to play HLG video on AppleTV 4K similar to how it works on newer iPhones and iPads?
Post not yet marked as solved
Hello
I'm facing a problem on new Video Player view from iOS 14
Now, I'm trying to use Video Player introduced on iOS 14+ in a View routed from Navigation Link.
I have set up navigationBarBackButtonHidden -> true
navigationBarHidden -> true
navigationBarTitle("", displayMode: .inline)
statusBar -> hidden: true
edgesIgnoringSafeArea -> all
However, when VideoPlayer's mp4 video will start to be played, NavigationBar will be shown. To narrow down the issue, I tried to put Colored Rectangle on the area for VideoPlayer instead. Then, NavigationBar won't be shown.
I suspect that this issue is VideoPlayer View's bug, but I hope this is not a bug.
Does anyone know correct way or how to avoid Navigation Bay display when using VideoPlayer ?
This issue happens on both simulator and iPad device.
Best regards,
Post not yet marked as solved
Hi~ I have got the error below, when I tried to export the video from iphone to my project using
exportAsynchronously of AVAssetExportSession.
MediaPickerError: nsError : Error Domain=AVFoundationErrorDomain Code=-11800 "这项操作无法完成" UserInfo={NSLocalizedFailureReason=发生未知错误(-17507), NSLocalizedDescription=这项操作无法完成, NSUnderlyingError=0x2806f3870 {Error Domain=NSOSStatusErrorDomain Code=-17507 "(null)"}}
Can I get more information for this error?
And how can I fix it? ^_^
Post not yet marked as solved
Hi here,
i have set the video attributes x-webkit-wirelessvideoplaybackdisabled, x-webkit-airplay="deny", disableremoteplayback according to apple's documentation so as to opt out from airplay on my video player. For Safari versions <=12 the airplay button correctly does not appear. But for versions greater than 12 it appears! Can you please give an update/guidance on that?
Post not yet marked as solved
WebRTC getUserMedia support was added in iOS 14.3.
On the first launch of my app I show a WebView pointing to my URL and request getUserMedia inside it when the user clicks a button. The app then brings up a permissions dialog with the request for the app. Upon selecting accept the application crashes. Subsequent launches of the app bring up the dialog, but with the address of the page being the requestor and it succeeds. Looking at the permissions, the application permission for Camera was already accepted.
I don't see my code in the backtrace. Any ideas on where I should look more?
Last Exception Backtrace:
0 CoreFoundation 0x1966fd86c _exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x1ab66cc50 objcexceptionthrow + 60 (objc-exception.mm:565)
2 CoreFoundation 0x196603000 +[NSException raise:format:arguments:] + 100 (NSException.m:146)
3 Foundation 0x19799791c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 132 (NSException.m:231)
4 UIKitCore 0x198607368 -[UISimpleFenceProvider trackSystemAnimationFence:] + 224 (UISimpleFenceProvider.m:51)
5 UIKitCore 0x1990ace28 -[UIApplication trackSystemAnimationFence:] + 88 (UIApplication.m:2167)
6 UIKitCore 0x199100988 +[UIWindow synchronizeDrawingWithFence:preCommitHandler:] + 92 (UIWindow.m:4928)
7 UIKitCore 0x198536104 -[UIScene synchronizeDrawingWithFence:] + 76 (UIScene.m:643)
8 UIKitCore 0x198ee76e8 -[UIRemoteKeyboards prepareToMoveKeyboard:withIAV:isIAVRelevant:showing:notifyRemote:forScene:] + 940 (UIRemoteKeyboards.m:1702)
9 UIKitCore 0x198afc48c -[UIInputResponderController prepareToMoveKeyboardForInputViewSet:animationStyle:] + 488 (UIInputResponderController.m:1624)
10 UIKitCore 0x198afa7a4 -[UIInputResponderController setKeyWindowSceneInputViews:animationStyle:] + 684 (UIInputResponderController.m:1432)
11 UIKitCore 0x198afa4c4 -[UIInputResponderController setInputViews:animationStyle:] + 236 (UIInputResponderController.m:0)
12 UIKitCore 0x198afba20 -[UIInputResponderController setInputViews:animated:] + 100 (UIInputResponderController.m:1539)
13 UIKitCore 0x198afba9c -[UIInputResponderController setInputViews:] + 80 (UIInputResponderController.m:1544)
14 UIKitCore 0x198af9330 _74-[UIInputResponderController reloadInputViewsForKeyWindowSceneResponder:]blockinvoke.666 + 40 (UIInputResponderController.m:1055)
15 UIKitCore 0x198af8e0c -[UIInputResponderController reloadInputViewsForKeyWindowSceneResponder:] + 3972 (UIInputResponderController.m:1091)
16 UIKitCore 0x198af7e5c -[UIInputResponderController reloadInputViewsForResponder:] + 164 (UIInputResponderController.m:0)
17 UIKitCore 0x198afe834 -[UIInputResponderController preserveInputViewsWithId:animated:reset:] + 132 (UIInputResponderController.m:2102)
18 UIKitCore 0x19899c730 -[UIViewController presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:] + 1292 (UIViewController.m:7215)
19 UIKitCore 0x19899fdbc -[UIViewController presentViewController:withAnimationController:completion:] + 4368 (UIViewController.m:7598)
20 UIKitCore 0x1989a0d40 63-[UIViewController presentViewController:animated:completion:]blockinvoke + 108 (UIViewController.m:7956)
21 UIKitCore 0x1989a10a0 -[UIViewController performCoordinatedPresentOrDismiss:animated:] + 536 (UIViewController.m:8096)
22 UIKitCore 0x1989a0c8c -[UIViewController presentViewController:animated:completion:] + 216 (UIViewController.m:7963)
23 UIKitCore 0x1989a117c -[UIViewController presentViewController:animated:completion:] + 188 (UIViewController.m:8040)
24 WebKit 0x1a2ec7400 WebKit::UserMediaPermissionRequestProxy::doDefaultAction() + 1056 (UserMediaPermissionRequestProxy.mm:115)
25 WebKit 0x1a2f0e290 *::Detail::CallableWrapper<WebKit::UserMediaPermissionRequestManagerProxy::processUserMediaPermissionValidRequest(*::Vector<WebCore::CaptureDevice, 0ul, *::CrashOnOverflow, 16ul, *::FastMal... + 260 (UserMediaPermissionRequestManagerProxy.cpp:584)
26 WebKit 0x1a2cdd714 *::CompletionHandler<void (bool)>::operator()(bool) + 44 (Function.h:83)
27 JavaScriptCore 0x1a094e504 *::RunLoop::performWork() + 484 (Function.h:83)
28 JavaScriptCore 0x1a094f1ec ***::RunLoop::performWork(void*) + 36 (RunLoopCF.cpp:46)
29 CoreFoundation 0x19667976c CFRUNLOOPISCALLINGOUTTOASOURCE0PERFORMFUNCTION + 28 (CFRunLoop.c:1967)
30 CoreFoundation 0x196679668 _CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011)
31 CoreFoundation 0x196678960 CFRunLoopDoSources0 + 268 (CFRunLoop.c:2048)
32 CoreFoundation 0x196672a8c CFRunLoopRun + 824 (CFRunLoop.c:2925)
33 CoreFoundation 0x19667221c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
34 WebCore 0x1a41ccccc RunWebThread(void*) + 656 (WebCoreThread.mm:652)
35 libsystempthread.dylib 0x1e1ecdb40 pthreadstart + 320 (pthread.c:881)
36 libsystempthread.dylib 0x1e1ed6768 threadstart + 8
Post not yet marked as solved
Hi All,
Back to scripting Quicktime with Applescript, I assess the following line now fails :
open image sequence seq1 frames per second 24
What I want it to automate .mov generation form numerous and large jpeg image sets, in Quicktime, through pure Applescript or Automate.
I have spent hours on Google to sort it out and it seems there are no recent talks on such an issue.
What is the issue ?
Any helps or scriptlet will be much appreciated
Post not yet marked as solved
Regarding the new SwiftUI VideoPlayer in iOS14, I have the following questions, pls help me:
How can I change the play speed rate?
How to pause/stop the video?
How to listenson the event when finishing playing the video, and fire an action once the video playing is finished?
How to get the more information about such new VideoPlayer control -- so far the infomation on the web is very limited.
Thanks in advance.
Post not yet marked as solved
Hello,
I would like to share a video clip from my app to various networks.
But I am constrained not to share the actual video, but a download link.
Is there an API / library that enables sharing a link to those networks? Could not find one
clarification: I am not referring to a link to put on WhatsApp or iMessage, but directly to those specific networks
Thanks,
Post not yet marked as solved
Hi Team, I’m just bought my new 12 mini but experienced lagging during any game or video making or just FB surfing. Has Anyone else met such issue? It is very annoying and disappointing!
Post not yet marked as solved
I wish to know ho can i implement the widevine content protection in an ios application.
At present time I have the application working using the native ios player (AvPlayer).
As far I understand, I have to get the Widevine's CDM.
Is there any sdk?
Where ca I find documentation and/or example codes / tutorials?
Thank you very much for any help as it's hard to find informations about this.
Sergio