diff --git a/sampeg.sh b/sampeg.sh
index 273f7a2..3bd2326 100644
--- a/sampeg.sh
+++ b/sampeg.sh
@@ -133,6 +133,45 @@ image_stabilization() {
echo "Image stabilization applied successfully"
}
+# Function to set brightness of a clip
+set_brightness() {
+ input="$1"
+ output="$2"
+ brightness=$(echo "$3 * 359" | bc)
+ if check_nvenc_support; then
+ ffmpeg -i "$input" -vf "eq=brightness=$brightness" -c:v h264_nvenc -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ else
+ ffmpeg -i "$input" -vf "eq=brightness=$brightness" -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ fi
+ echo "Brightness set successfully"
+}
+
+# Function to set hue of a clip
+set_hue() {
+ input="$1"
+ output="$2"
+ hue=$(echo "$3 * 359" | bc)
+ if check_nvenc_support; then
+ ffmpeg -i "$input" -vf "eq=hue=$hue" -c:v h264_nvenc -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ else
+ ffmpeg -i "$input" -vf "eq=hue=$hue" -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ fi
+ echo "Hue set successfully"
+}
+
+# Function to set contrast of a clip
+set_contrast() {
+ input="$1"
+ output="$2"
+ contrast=$(echo "$3 * 359" | bc)
+ if check_nvenc_support; then
+ ffmpeg -i "$input" -vf "eq=contrast=$contrast" -c:v h264_nvenc -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ else
+ ffmpeg -i "$input" -vf "eq=contrast=$contrast" -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k "$output"
+ fi
+ echo "Contrast set successfully"
+}
+
# Function to record screen with optional webcam and microphone
record_screen() {
output="$1"
@@ -169,6 +208,9 @@ display_help() {
echo " $0 remove-silence