0ky / screenclip Goto Github PK
View Code? Open in Web Editor NEWAn experimental video snipping tool for Windows, designed as a system tray application.
License: MIT License
An experimental video snipping tool for Windows, designed as a system tray application.
License: MIT License
In the frontend (UI) there are video settings for the encoder and hotkeys (not yet implemented), using Tauri's plugin-store I would like to save these locally in a file such as .settings.dat.
window.emit()
.invoke()
.If you have suggestions for a better implementation, feel free to share your ideas.
The current behavior is that the PrintScreen
key is hardcoded to call region_selection_window()
function that takes a single screenshot.
Instead, upon initialization of the application, it should read settings[1] and apply hotkeys from it, you will need to handle errors, such as conflicting hotkey from another application.
invoke()
to process the changes (apply them) after user clicks on save[2] button from the frontend.[1] The "settings" is a file created using the Tauri Plugin Store which is not yet implemented, it relates to issue #6
[2] The save/discard buttons for the frontend UI will most likely be implemented after #6
When selecting the Video clip
menu to capture a video, a fully transparent region capture window will appear, when selecting an area it should snap only to even dimensions. This should be done only in the frontend (regionselect.js) by making changes to the Cropper.js library, use the appropriate event method.
Note: When encoding video using the H.264
codec, the commonly used pixel format is the YUV420
and this requires that both the height and width resolutions be divisible by 2.
Hi, while trying to run your project I get following error:
error: failed to run custom build command for ffmpeg-sys-next v6.0.1
Caused by:
process didn't exit successfully: C:\Projekte\Screenclip\src-tauri\target\debug\build\ffmpeg-sys-next-7a328b218e4e81a8\build-script-build
(exit code: 101)
Is it a known error you have been through as well? I followed the instructions to set up ffmpeg using the gnu toolchain.
Thanks for helping.
WASAPI
(Windows Audio Session API).AAC
codec..mp4
container.Note: We currently use video-rs
a high-level abstraction of ffmpeg-next
to encode video, unfortunately there is no audio API implemented, you may need to leverage ffmpeg-next
for audio encoding/muxing. You may want to utilize entirely on another crate to encode/mux both video/audio sources, which will require rewriting the existing encode_frames
function.
Similar to the following image, that should also include X,Y at the top left corner of it:
If capturing or moving the selection area to the edge or corners of the screen causes the values to become clipped, it should snap into the other side of the selection area.
This will most likely require you to utilize the existing Cropper.js library.
Currently, the app is hardcoded to capture only for 10 seconds when you click the capture video menu item from the system tray:
screenclip/src-tauri/src/main.rs
Line 65 in 3d730cc
Instead, video capture should begin after a certain keypress, and continue capturing until the same key is pressed again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.