Skip to content

[Enhancement] Add support for capturing images to Photo Library #472

@CosmicBen

Description

@CosmicBen

AVPro Movie Capture Version

5.3.4-trial

Which platform is your question for?

iOS

Your question

I'm attempting to take a screen capture on iOS and upload the final image to the Photo Library. To do this I call a GameObject with the CaptureFromScreen component attached set to automatically stop recoriding after 1 frame. Its output target is a PNG image sequence set to be stored in the Photo Library. When I try to take the screen capture I get the following error in XCode

(MovieCapture.m:416) Cannot create recorder, unsupported path: avpmc-photolibrary:///Captures/Image_2025-07-17_20-41-25_2048x2732/frame-%2502d.png

I believe I have all the correct permissions setup since just before this screen capture I also record a short 5 second video using a different CaptureFromScreen.

[AVProMovieCapture] Start File Capture: 2048x2732 @ 30.00fps [RGBA32] vcodec:'H264' to file: 'avpmc-photolibrary:///Captures/MovieCapture_2025-07-17_20-41-16_2048x2732.mp4'

The video works fine but the screen shot does not. I did however notice that the saved videos do not automatically upload to iCloud even if they are in the photo library but I don't think this is related (although if you know how to fix it I would appreciate that to).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions