• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 714 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.
    • S Offline
      shapley
      last edited by 21 Aug 2018, 11:57

      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 L 2 Replies Last reply 21 Aug 2018, 18:13 Reply Quote 0
      • D Online
        doniks @shapley
        last edited by 21 Aug 2018, 18:13

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

        Also, please use code tags in the forum

        S 1 Reply Last reply 4 Apr 2023, 11:10 Reply Quote 0
        • S Offline
          Shohag @doniks
          last edited by 4 Apr 2023, 11:10

          @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 4 Apr 2023, 11:19 Reply Quote 0
          • D Online
            doniks @Shohag
            last edited by 4 Apr 2023, 11:19

            @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
            • L Offline
              lduboeuf @shapley
              last edited by lduboeuf 4 Apr 2023, 15:54 4 Apr 2023, 15:50

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

              J 1 Reply Last reply 5 Apr 2023, 16:06 Reply Quote 0
              • J Offline
                jezek @lduboeuf
                last edited by 5 Apr 2023, 16:06

                @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
                • First post
                  Last post