Coder Social home page Coder Social logo

pac's Introduction

PAC - Portals Across Computers

Pac logo

Prerequisite

  • CMake
  • Ninja or Visual Studio 2019
  • g++ or Visual Studio 2019

Dependencies

Windows & Linux
  • Downloaded, built, linked by CMake, view dependencies/CMakeLists.txt
  • Gstreamer dev + runtime (gstreamer-good, gstreamer-bad)
Linux
  • libxtst
  • libxtst-dev

Building

Client and Server

cd build

Debug

Windows
cmake -G "Visual Studio 16 2019" -A x64 -S ../ -B "build64"
cmake --build "build64" --config Debug
Linux
cmake -G "Ninja" -S ../ -B "build64/Debug" -D CMAKE_BUILD_TYPE=Debug
cmake --build "build64/Debug"

Release

Windows
cmake -G "Visual Studio 16 2019" -A x64 -S ../ -B "build64"
cmake --build "build64" --config Release
Linux:
cmake -G "Ninja" -S ../ -B "build64/Release" -D CMAKE_BUILD_TYPE=Release
cmake --build "build64/Release"

Gstreamer screen capture

  • Windows: gst-launch-1.0 dxgiscreencapsrc cursor=true ! video/x-raw,framerate=60/1 ! videoscale method=0 ! videoconvert ! autovideosink sync=false

  • Linux: gst-launch-1.0 ximagesrc startx=0 starty=0 use-damage=0 xid=83886082 ! video/x-raw,framerate=60/1 ! videoscale method=0 ! video/x-raw,width=1920,height=1080 ! autovideosink sync=false

  • h264 recorder: gst-launch-1.0.exe dx9screencapsrc ! video/x-raw,framerate=60/1 ! videoconvert ! nvh264enc preset=low-latency-hp max-bitrate=2000 ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=9996

  • h264 receiver: gst-launch-1.0.exe udpsrc port=9996 caps="application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtph264depay ! queue ! decodebin ! videoconvert ! autovideosink

Demo

Note that the video was encoded with a very low bit rate. The raw capture with PAC is in much better quality.

THPS4_Pac_Demo.mp4

FAQ

Q: Pac-server cannot record / find monitor X
A: Your are most likely using a hybrid graphics system (integrated gpu + external gpu). You need to set the Graphics performance preference to "low power (integrated gpu)" for pac-server.exe Graphics Settings Windows

pac's People

Contributors

tris790 avatar mystack555 avatar minicarter avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.