This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| // Calculate the required buffer size | |
| size_t command_size = strlen("ffmpeg.exe") + 1; | |
| for (int i = 1; i < argc; i++) { | |
| command_size += strlen(argv[i]) + 3; // For space, quotes, and null terminator | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check if directory is provided as an argument | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 /path/to/video/files" | |
| exit 1 | |
| fi | |
| # Set desired output resolution and frame rate | |
| output_width=1280 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: ZHA - Moes Smart Knob for lights | |
| description: 'Control lights with a Moes Smart Knob. | |
| You can set functions for a single press. This allows you to assign, | |
| e.g., a scene or anything else. | |
| Rotating left/right will change the brightness smoothly of the selected light. | |
| Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.' |