Sharing videos through Pythonista
-
I would like to be able to use the sharing sheet to send a video from the camera roll to Pythonista and use a script to scp the file to a server. I find that if I select a jpg, the sharing sheet lists Pythonista as a destination but if I select a video file it does not. Is there a way to do this? already done by someone?
-
Could someone please verify that .mp4 and .mov files cannot be shared using the sharing sheet (Pythonista disappears as an option when they are selected). Is there a workaround? Thanks.
-
@ihf you're right, I've tried with .mov, Pythonista is not in the proposed apps when you try to share the file.
And in Pythonista it-self, the import photo does not show the videos.
-
@ihf I know this solution is not using the share sheet but perhaps it can help
photos.pick_asset()
shows the .mov
-
@ihf If you copy the .mov from the camera roll to Files (via the share sheet), and then you share this file, you'll now see Pythonista in its share sheet, strange isn't?
-
Yes, there is a workaround. Select the video in the Files app and run the import file script. Don't know if there's a size limit, just tested it with a small one.
-
@brumm Agrée but needs to be first stored in Files before imported in Pythonista. I suppose that is not appreciated by @ihf
-
Thanks for the replies. I have tested moving a video file to the Files app and then sharing it with a Pythonista script that does an SCP using Paramiko to a server. It all works. Of course I would rather not go through the extra step of moving the file to another application first but there doesn’t seem to be any other way to get around this. Perhaps this will be fixed in a future release
-
@ihf If you agree, instead of sharing/copying your videos to Files, to pick them, you can
see here.
I've modified the script, for testing only, to copy them locally instead or scp/ftp, and that works (as usual with @JonB scripts 😇).
-
@cvp Thanks very much. I will try to get it working with scp.