Skip to content

marcooliveira/vyd

Repository files navigation

Vyd — Video & Image Tools Repository

This repository contains a set of scripts to assist in video and image processing tasks. The scripts facilitate various operations such as video and image generation, video to PNG conversion, and PNG to video conversion.

Scripts

1. vydGenerateVideo

This script processes a given video file and generates new video files based on the specified parameters such as start time, end time, scaling, bitrate, and others.

Usage

./vydGenerateVideo -i INPUTFILE -f FORMAT [-c CODEC] [-s STARTTIME] [-e ENDTIME] [-w WIDTH|-h HEIGHT] [-k KEYFRAME_DISTANCE] [-a AUTO_ALT_REF] [-l LAG_IN_FRAMES] BITRATE_PAIRS...

To get usage instructions, execute the script without any arguments: ./vydGenerateVideo

2. vydPngToVideo

This script processes a directory of PNG images, applies a specified background color, and generates a high-quality video file from the processed images. It uses a unique temporary folder for each execution to prevent collisions when running the script simultaneously.

Usage

./vydPngToVideo [-f] [-r frame_rate] <input_folder> <output_folder> [<background_color>]

To get usage instructions, execute the script without any arguments: ./vydPngToVideo

3. vydVideoToPng

This script extracts frames from a given video file and saves them as PNG images in a specified directory.

Usage

./vydVideoToPng <input_video> <output_folder>

To get usage instructions, execute the script without any arguments: ./vydVideoToPng

4. vydGenerateImage

This script processes a given image and generates new image based on the specified parameters.

Usage

./vydGenerateImage -i INPUT_IMAGE [-o OUTPUT_IMAGE] [-w WIDTH] [-h HEIGHT] [-of OBJECT_FIT] [-f FORMAT] [-q QUALITY]...

To get usage instructions, execute the script without any arguments: ./vydGenerateImage

5. vydGenerateVcardQR

This script generates a QR code for a vCard containing essential contact information. It supports customization of QR code attributes, including format, foreground and background color, and size. Unique temporary files are used for each execution to support parallel running of the script.

Usage

./vydGenerateVcardQR -f FIRST_NAME -l LAST_NAME -e EMAIL -p PHONE -o OUTPUT_FILE [-g ORGANIZATION] [-j JOB_TITLE] [-a ADDRESS] [-u URL] [-c FOREGROUND_COLOR] [-b BACKGROUND_COLOR] [-w WIDTH_IN_PIXELS]

To get usage instructions, execute the script without any arguments: ./vydGenerateVcardQR

6. vydGenerateLinkQR

This script generates a QR code from a given URL and saves it as an image file. It supports customization of QR code attributes, including color, size, and format.

Usage

./vydGenerateLinkQR -u URL -o OUTPUT_FILE -w WIDTH_IN_PIXELS [optional parameters]

To get usage instructions, execute the script without any arguments: ./vydGenerateLinkQR

Dependencies

  • FFmpeg: Required for video processing scripts.
  • ImageMagick: Required for the image resizing script.
  • qrencode: Required for QR code generation in the vydGenerateVcardQR script.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Video and image Swiss knife

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages