From 5dcf75654cfb2b8d05e67b3769a17cce92fa0d15 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 2 May 2026 19:41:27 +0900 Subject: deleted bin/concatvideo, deleted bin/cutvideo, modified bin/iwaf --- ar/.local/bin/concatvideo | 56 ----------------------------------------------- ar/.local/bin/cutvideo | 41 ---------------------------------- ar/.local/bin/iwaf | 2 +- 3 files changed, 1 insertion(+), 98 deletions(-) delete mode 100755 ar/.local/bin/concatvideo delete mode 100755 ar/.local/bin/cutvideo diff --git a/ar/.local/bin/concatvideo b/ar/.local/bin/concatvideo deleted file mode 100755 index 93a2060..0000000 --- a/ar/.local/bin/concatvideo +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh - -usage() { - echo "Combine multiple video files that share the same pattern and extension" - echo "into a single video file." - echo "" - echo "Usage: ${0##*/} " - echo "" - echo "Arguments:" - echo " : The name of one of the video files to use as a pattern." - echo " For example, if your files are named video_cut1.mp4," - echo " video_cut2.mp4, you can provide video_cut1.mp4." - echo "" - echo "Example:" - echo " ${0##*/} video_cut.mp4" - echo " This will combine all files matching video_cut*.mp4 into a single file." - exit 1 -} - -# Check if the correct number of arguments are provided -if [ $# -ne 1 ]; then - usage -fi - -# Extract the pattern and extension from the input filename -input_file="$1" -pattern="${input_file%.*}" # This removes the extension -extension="${input_file##*.}" # This extracts the extension - -# Find all video files matching the generated pattern and extension -video_files=$(ls "${pattern}"*."${extension}" 2>/dev/null) - -# Check if any files are found -if [ -z "$video_files" ]; then - echo "No video files found with the pattern '${pattern}*.${extension}'." - exit 1 -fi - -# Create a temporary file list for ffmpeg -file_list=$(mktemp) - -# Populate the file list with the found video files, properly quoting each full path -for video in "${pattern}"*."${extension}"; do - full_path=$(realpath "$video") - echo "file '$full_path'" >>"$file_list" -done - -# Combine the videos into a single file using ffmpeg -output_file="${pattern}_combine.${extension}" -ffmpeg -f concat -safe 0 -i "$file_list" -c copy "$output_file" 2>/dev/null - -# Clean up the temporary file -cat "$file_list" -rm -f "$file_list" - -echo "All videos combined into '$output_file'." diff --git a/ar/.local/bin/cutvideo b/ar/.local/bin/cutvideo deleted file mode 100755 index 3220008..0000000 --- a/ar/.local/bin/cutvideo +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -usage() { - echo "Crop a video file using ffmpeg." - echo "" - echo "Usage: cutvideo [file_name] [position] [duration]" - echo "" - echo "Arguments:" - echo " file_name: The name of the video file (e.g., video.mp4)." - echo " position: The start position in the format HH:MM:SS (e.g., 00:00:00)." - echo " duration: The duration in seconds from the start position (e.g., 10)." - echo "" - echo "Example:" - echo " cutvideo ~/Video/video.mp4 00:01:00 10" - echo " This will create a 10-second cut starting at 00:01:00 in the video.mp4 file." - exit 1 -} - -[ -z "$1" ] && echo "Target file missing" && usage -[ -z "$2" ] && echo "Target position missing" && usage -[ -z "$3" ] && echo "Target duration missing" && usage - -file="$1" -filename="${file%%.*}" -ext="${file##*.}" -num=1 - -# Find a unique filename by incrementing num -if [ -f "${filename}_cut.${ext}" ]; then - while [ -f "${filename}_cut_$(printf "%02d" "$num").${ext}" ]; do - num=$((num + 1)) - done - new_filename="${filename}_cut_$(printf "%02d" "$num").${ext}" -else - new_filename="${filename}_cut.${ext}" -fi - -# Perform the cut using ffmpeg -ffmpeg -hide_banner -ss "$2" -to "$3" -i "$file" -c copy "$new_filename" - -echo "Created file: $new_filename" diff --git a/ar/.local/bin/iwaf b/ar/.local/bin/iwaf index 52d879f..b9c0844 100755 --- a/ar/.local/bin/iwaf +++ b/ar/.local/bin/iwaf @@ -51,7 +51,7 @@ _install_wine() { # Install necessary libraries via winetricks echo "Installing required libraries via winetricks..." - if ! winetricks -q mfc42 vcrun2008; then + if ! winetricks -q mfc42 vcrun2003; then echo "Failed to install required libraries!" exit 1 fi -- cgit v1.2.3