@cvp Thanks for the reply. I’m a bit out of my depth trying to solve this. I haven’t used ctypes before and can’t work out how to call the swift “image(at:)“ function as you’ve suggested.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by Pythonised
-
RE: video edition
-
RE: video edition
Hi. Thanks for the reply.
Yea I did. It has a similar result with a transparent view and not able to see any images. I’ve started going through your code line by line but I’ve only just starting to use objc_util and there are other things you are doing that are new to me.
My concern is that it isn’t possible anymore and I’m going down the wrong path.
-
RE: video edition
I'd like to be able to get a video from the photos module or a local .mov file and show a given frame in the console.
There seems to be 2 ways to do this but neither is working for me yet.
I tried running this:
https://github.com/jsbain/objc_hacks/blob/master/getframes.py
But the resulting view is just a transparent overlay.
It seems to me that this returns a 'NoneType' object.
cgimage_obj=generator.copyCGImageAtTime_actualTime_error_(t,byref(tactual),None,restype=c_void_p,argtypes=[CMTime,POINTER(CMTime),POINTER(c_void_p)])
type(cgimage_obj)
<class 'NoneType'>It also looks like the photos module has a .seek function I am unable to get that to show me anything other than frame 1 using get_image().
Are there any working examples of this?
Thanks so much for your help.
-
RE: permission error on ipad but not on iPhone with getcwd().
Thanks @cvp I added the root of my icloud to external files as you sugeated and voila. I dont understand how this stopped working but I'm happy to have a simple solution.
-
permission error on ipad but not on iPhone with getcwd().
import os print(os.getcwd())
Running that code in a file is giving me a permission error.
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documents/com LoudDocs/_test/test_function.py", Line 3, in <module> print (os.getcwd())
PermissionError: [Errno 3] Operation not permittedI can run the same code/file on my iphone and it works. how have i changed ios permissions on my iPad.