Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@xan105/video-capture
Advanced tools
Readme
Record your screen using hardware accelerated encoder.
NVIDIA nvenc or AMD amf.
import { hwencode } from "@xan105/video-capture";
hwencode("./path/to/file.mp4","h264_nvenc")
.then(console.log)
.catch(console.error);
npm install @xan105/video-capture
⚠️ This module is only available as an ECMAScript module (ESM) starting with version 2.0.0.
Previous version(s) are CommonJS (CJS) with an ESM wrapper.
hwencode(filePath: string, codec: string, option?: obj): Promise<string>
Record your screen in .mp4 using NVIDIA nvenc or AMD amf with h264 or h265/HEVC hardware encoder at given location.
Returns mp4 filepath.
filePath: output file location
NB: filepath extension will be enforced to '.mp4'
codec:
NVIDIA | AMD | |
---|---|---|
H.264/AVC | h264_nvenc | h264_amf |
H.265/HEVC | hevc_nvenc | hevc_amf |
option :
option = {
overwrite: false, //Allow (true) file overwrite if target already exists
timeLength: "00:00:20", //duration
framerate: 60, //HEVC can reach up to 100, 120 or 150
probesize: 42, //1080p
threadQueue: 512,
size: "1920x1080", //default to current screen resolution
videoEncodingOptions: "-rc:v vbr -level:v 4.2 -g:v 120 -bf:v 3 -qp:v 19",//* default to a custom profile
bits10: false, //use 10bits color depth
mouse: false, //capture the mouse
audioInterface: null, //Windows interface name for audio loopback (aka record what you hear, stereo-mix, etc)
audioDelay: 900, //(ms) delay; Set to 0 to disable
audioEncodingOptions: "",//*
bitrate: {
video: 6000, //(k) video
min: 3000, //(k) video
max: 9000, //(k) video
audio: 160 //(k) audio
}
};
NB: *Please refer to ffmpeg regarding video and audio encoding options.
FAQs
Record your screen using hardware accelerated encoder.
The npm package @xan105/video-capture receives a total of 3 weekly downloads. As such, @xan105/video-capture popularity was classified as not popular.
We found that @xan105/video-capture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.