UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    mirscreencast adb exec-out

    Scheduled Pinned Locked Moved Support
    6 Posts 5 Posters 1.2k Views 2 Watching
    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.
      • shapleyS Offline
        shapley
        last edited by

        Hi All,

        Been testing 'mirscreencast' to obtain some nice videos of ubuntu-touch in action but not sure if the video output anything at all..if so...where did it get saved to. Is the footage meant to open in mplayer? Here is the cl output:-

        ~$ adb exec-out timeout 120 mirscreencast -m /run/mir_socket --stdout --cap-interval 2 -s 384 640 | mplayer -demuxer rawvideo -rawvideo w=384:h=640:format=rgba -
        MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
        do_connect: could not connect to socket
        connect: No such file or directory
        Failed to open LIRC support. You will not be able to use your remote control.

        Playing -.
        Reading from stdin...
        rawvideo file format detected.
        Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
        [vdpau] Error when calling vdp_device_create_x11: 1

        Opening video decoder: [raw] RAW Uncompressed Video
        Could not find matching colorspace - retrying with -vf scale...
        Opening video filter: [scale]
        Movie-Aspect is undefined - no prescaling applied.
        [swscaler @ 0x560feb68f1e0] bicubic scaler, from rgba to yuv420p using MMXEXT
        VO: [xv] 384x640 => 384x640 Planar YV12
        Selected video codec: [rawrgb32] vfm: raw (RAW RGB32)

        Load subtitles in ./
        Audio: no sound
        Starting playback...
        V: 38.2 955/955 0% 2% 0.0% 0 0

        Exiting... (End of file)

        D lduboeufL 2 Replies Last reply Reply Quote 0
        • D Offline
          doniks @shapley
          last edited by

          @shapley try replacing | mplayer and everything after it with > screen.avi

          Also, please use code tags in the forum

          ShohagS 1 Reply Last reply Reply Quote 0
          • ShohagS Offline
            Shohag @doniks
            last edited by

            @doniks That doesn't work either. Tried saving it to file like this, also doesn't work.

            nc -l -p 1234 | gzip -dc | mencoder -demuxer rawvideo -rawvideo fps=60:w=384:h=640:format=rgba -ovc x264 -o out.avi -
            
            D 1 Reply Last reply Reply Quote 0
            • D Offline
              doniks @Shohag
              last edited by

              @Shohag blast from the past 🙂 what exactly does "doesn't work" mean? what's the output you get?

              1 Reply Last reply Reply Quote 0
              • lduboeufL Offline
                lduboeuf @shapley
                last edited by lduboeuf

                @shapley Just tested adb exec-out timeout 120 mirscreencast -m /run/mir_socket --stdout --cap-interval 2 -s 384 640 | mplayer -demuxer rawvideo -rawvideo w=384:h=640:format=rgba -
                And it works.
                Same logs as you, so there should be mplayer displayed.

                That command does only forward to mplayer reader, not save it. ( You can still use a screen recorder on your PC )

                jezekJ 1 Reply Last reply Reply Quote 0
                • jezekJ Offline
                  jezek @lduboeuf
                  last edited by

                  @lduboeuf wow, it even works with ssh 😄 thanx

                  ssh phablet@ip.addr exec 'mirscreencast -m /run/mir_socket --stdout --cap-interval 2 -s  384 640' | mplayer -demuxer rawvideo -rawvideo w=384:h=640:format=rgba -
                  

                  Note: use your IP address instead of ip.addr in the command

                  jEzEk

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post