steveseguin / electroncapture

Playback video in a frameless electron app for screen-sharing and window capture
GNU General Public License v3.0
330 stars 40 forks source link

Please add Quadrant function #85

Open DeeJayMX opened 1 year ago

DeeJayMX commented 1 year ago

Is it possible to start four instance of electron app, directly moved in 4 cells of the desktop: as a full desktop of 3840x2160, 4 windows of 1920x1080, directly put in a 4 cells tab.

I need that to output four windows at once and dispatch it trough SDI, with that type of box: http://decimator.com/Products/MiniConverters/12G-CROSS/12G-CROSS.html

Thanks a lot for all that wonderful solution.

DeeJayMX commented 1 year ago

as a SQD Signal, but dispatched in 4 SDI:

image

steveseguin commented 1 year ago

If you create a file called start.bat, and put it in the same folder as the elecap.exe portable file, I think it would work.

start elecap.exe -t feed1 -w 1920 -h 1080 --x 0 --y 0 -u https://vdo.ninja/?scene^&fakeguests=1^&room=SOMETHINGTEST123
timeout /T 1
start elecap.exe -t feed2 -w 1920 -h 1080 --x 1920 --y 0 -u https://vdo.ninja/?scene^&fakeguests=1^&room=SOMETHINGTEST123
timeout /T 1
start elecap.exe -t feed3 -w 1920 -h 1080 --x 0 --y 1080 -u https://vdo.ninja/?scene^&fakeguests=1^&room=SOMETHINGTEST123
timeout /T 1
start elecap.exe -t feed4 -w 1920 -h 1080 --x 1920 --y 1080 -u https://vdo.ninja/?scene^&fakeguests=1^&room=SOMETHINGTEST123

I'm not sure if it would target the right monitor, but that's the basic idea. URL needs to be correctly encoded for command line use; ie: not the use of ^ to escape the &.

DeeJayMX commented 1 year ago

Genius, I will test it !!

DeeJayMX commented 1 year ago

Hi, I don't have elecap.exe but ElectronCapture.exe and when I start from the command line, it doesn't put in the right place, only in fullscreen...

When I read the help from cmd:

ElectronCapture.exe help

C:\Users\EliottABITBOL\AppData\Local\Programs\VDON.Electron.Capture.App> Usage: ElectronCapture.exe -w num -h num -w string -p

Options: --help Show help. [boolean] --version Show version number [boolean] -w, --width The width of the window in pixel. [number] [default: 1280] -h, --height The height of the window in pixels. [number] [default: 720] -u, --url The URL of the window to load. [string] [default: "https://vdo.ninja/electron?version=2.17.8"] -t, --title The default Title for the app Window [string] [default: null] -p, --pin Toggle always on top [boolean] [default: false] -a, --hwa Enable Hardware Acceleration [boolean] [default: true] -n, --node Enables node-integration, allowing for screen capture, global hotkeys, prompts, and more. [boolean] [default: false] --minimized, --min Starts the window minimized [boolean] [default: false] -f, --fullscreen Enables full-screen mode for the first window on its load. [boolean] [default: false] --unclickable, --uc The page will pass thru any mouse clicks or other mouse events [boolean] [default: false] --savefolder, --sf Where to save a file on disk [string] [default: null] --mediafoundation, --mf Enable media foundation video capture [string] [default: null] --disablemediafoundation, --dmf Disable media foundation video capture; helps capture some webcams [string] [default: null] --chroma, --color Set background CSS to target hex color; FFF or 0000 are examples. [string] [default: null]

Examples: ElectronCapture.exe -w 1280 -h 720 -u Loads the stream with ID xxxx into a https://vdo.ninja/?view=xxxx window sized 1280x720

steveseguin commented 1 year ago

Try using an equal sign, especially on the URL argument, if the previous option wasn't working:

ie: ElectronCapture.exe -w=300 -h=300 -x=100 -y=100 -u="https://google.com" -p

I'm seeing a recently introduced bug, where the scaling is off after the first window is generated; I'll publish a fix.

steveseguin commented 1 year ago

I fixed a bug in the last release where the first window to open might be the wrong size

I also improved the documentation around the command line parameters; there were some typos/errors

new version is here if interested https://github.com/steveseguin/electroncapture/releases/tag/2.17.9

DeeJayMX commented 1 year ago

That's perfect:

start ElectronCapture.exe -w=1920 -h=1080 -x=0 -y=0 -u="https://vdo.ninja/?view=xxxx" -p
timeout /T 1
start ElectronCapture.exe -w=1920 -h=1080 -x=1920 -y=0 -u="https://vdo.ninja/?view=xxxx" -p
timeout /T 1
start ElectronCapture.exe -w=1920 -h=1080 -x=0 -y=1080 -u="https://vdo.ninja/?view=xxxx" -p
timeout /T 1
start ElectronCapture.exe -w=1920 -h=1080 -x=1920 -y=1080 -u="https://vdo.ninja/?view=xxxx" -p

Is there a possibility to hide the cursor, like always...? Thanks

steveseguin commented 1 year ago

https://github.com/steveseguin/electroncapture/releases/tag/2.17.10

--hidecursor or via the menu

DeeJayMX commented 1 year ago

There is a strange behavior with the Windows option "scaling" of the screen... The position and the size of the elecap windows is not going at the good position and good size...

I know it's a tricky settings, and it's okay if you put the scaling at 100%., the settings is applied good.