UnityPlugin-AVProMovieCapture icon indicating copy to clipboard operation
UnityPlugin-AVProMovieCapture copied to clipboard

[Enhancement] Add support for capturing images to Photo Library

Open CosmicBen opened this issue 5 months ago • 3 comments

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).

CosmicBen avatar Jul 17 '25 12:07 CosmicBen

Photo library is not supported for images at the moment, but its something that we can look into adding.

Chris-RH avatar Jul 17 '25 17:07 Chris-RH

Hey Chris, long time no see, thank you for the response. Is there a way I can temporarily work around this restriction? I'd like to use this plugin for both videos and images for an installation in August. I can probably find another plugin for just the images of I have too but I was really hoping to consolidate both features to a single plugin.

Benjamin Danger Johnson Director of Technology Cosmic Lab Ltd., http://www.cosmiclab.jp | 2-3-9 Universe Bld. 2F Sennichimae, Chuo-ku, Osaka, Japan 542-0074

On Fri, Jul 18, 2025, 02:34 Chris-RH @.***> wrote:

Chris-RH left a comment (RenderHeads/UnityPlugin-AVProMovieCapture#472) https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/issues/472#issuecomment-3084888503

Photo library is not supported for images https://renderheads.com/content/docs/AVProMovieCapture/articles/usage-photo-library.html at the moment, but its something that we can look into adding.

— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/issues/472#issuecomment-3084888503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTLHELPQPE4UXZKGPEAKDT3I7NB3AVCNFSM6AAAAACBXT6ASKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOBUHA4DQNJQGM . You are receiving this because you authored the thread.Message ID: @.*** com>

CosmicBen avatar Jul 18 '25 01:07 CosmicBen

Sadly that is extremely unlikely, as the majority of the team are on holiday from the middle of next week, for most of August.

Chris-RH avatar Jul 18 '25 12:07 Chris-RH