omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Sharing videos through Pythonista

    Pythonista
    3
    10
    5300
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • ihf
        ihf last edited by

        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.

        cvp 3 Replies Last reply Reply Quote 0
        • cvp
          cvp @ihf last edited by

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

          1 Reply Last reply Reply Quote 0
          • cvp
            cvp @ihf last edited by

            @ihf I know this solution is not using the share sheet but perhaps it can help

            photos.pick_asset()
            

            shows the .mov

            1 Reply Last reply Reply Quote 0
            • cvp
              cvp @ihf last edited by

              @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?

              1 Reply Last reply Reply Quote 0
              • brumm
                brumm last edited by

                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.

                cvp 1 Reply Last reply Reply Quote 0
                • cvp
                  cvp @brumm last edited by cvp

                  @brumm Agrée but needs to be first stored in Files before imported in Pythonista. I suppose that is not appreciated by @ihf

                  1 Reply Last reply Reply Quote 0
                  • ihf
                    ihf last edited by

                    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

                    cvp 1 Reply Last reply Reply Quote 0
                    • cvp
                      cvp @ihf last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • ihf
                        ihf last edited by

                        @cvp Thanks very much. I will try to get it working with scp.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB Forums | Contributors