Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QScreenCapture and X11 virtual framebuffer
Forum Updated to NodeBB v4.3 + New Features

QScreenCapture and X11 virtual framebuffer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 108 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RobertB
    wrote on last edited by RobertB
    #1

    Exotic question time :D

    On X11, Xvfb is a tool you can use to start a virtual framebuffer. Within this new display, you can run applications.

    sudo xvfb-run --listen-tcp --server-num 99 -s "-nocursor -ac -screen 0 1280x720x24" firefox -kiosk "https://qt.io"

    Then, for example, with ffmpeg you could record this by pointing it to DISPLAY 99:

    ffmpeg -y -f pulse -framerate 30 -f x11grab -video_size 1280x720 -draw_mouse 0 -i :99 -pix_fmt yuv420p -vcodec libx264 -crf 24 -acodec aac -b:a 128k -movflags +faststart test.mp4

    My question is, can we use QScreenCapture to capture DISPLAY 99?

    I know QScreenCapture uses QScreen to capture from, but from a quick glance at the documentation, I could not determine how to do the equivalent of ffmpeg's 'x11grab'.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Interesting one !
      As is, I don't think so, at least from an "external application" recording point of view.
      I think it should work if the application is started on the virtual frame buffer.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved