Modify project to use Gitea URLs.

This commit is contained in:
Hyperling 2025-01-03 11:59:53 -07:00
parent 060a3b25d8
commit bdd7e7855b
2 changed files with 8 additions and 7 deletions

View File

@ -7,7 +7,7 @@ Hyperling's scripts for a productive Termux environment.
1. Download the repository. 1. Download the repository.
```sh ```sh
git clone https://github.com/Hyperling/Termux termux git clone https://git.hyperling.com/me/env-termux env-termux
``` ```
1. Dive into the directory. 1. Dive into the directory.

View File

@ -62,7 +62,7 @@ function process-video-usage {
echo -n "Bitrates default to 2000k and 192k, size is 720, passes is 1, and force is N." echo -n "Bitrates default to 2000k and 192k, size is 720, passes is 1, and force is N."
echo "These work well on Odysee and are fairly small as backups." echo "These work well on Odysee and are fairly small as backups."
echo "Examples:" echo "Examples:"
echo "- Create a small file for quick streaming." echo "- Create a small file for quick streaming."
echo " process-video youcut.mp4 20240210.mp4 1200k 128k 480" echo " process-video youcut.mp4 20240210.mp4 1200k 128k 480"
echo "- Create a larger file for something like YouTube." echo "- Create a larger file for something like YouTube."
echo " process-video youcut.mp4 20240210_1080p.mp4 5000k 256k 1080" echo " process-video youcut.mp4 20240210_1080p.mp4 5000k 256k 1080"
@ -94,7 +94,7 @@ function process-video {
process-video-usage process-video-usage
return 1 return 1
fi fi
echo "`date` - Converting '$file' to '$newfile'." echo "`date` - Converting '$file' to '$newfile'."
if [[ -z $video ]]; then if [[ -z $video ]]; then
@ -115,7 +115,7 @@ function process-video {
size="720" size="720"
fi fi
size="-filter:v scale=-1:$size" size="-filter:v scale=-1:$size"
if [[ -z $passes ]]; then if [[ -z $passes ]]; then
passes=1 passes=1
fi fi
@ -143,7 +143,7 @@ function process-video {
return 1 return 1
fi fi
fi fi
set -x && set -x &&
ffmpeg -nostdin -hide_banner -loglevel quiet \ ffmpeg -nostdin -hide_banner -loglevel quiet \
-i "$file" $size $video $audio \ -i "$file" $size $video $audio \
@ -153,7 +153,7 @@ function process-video {
status="$?" status="$?"
set +x set +x
echo "`date` - Done with the final pass." echo "`date` - Done with the final pass."
if [[ $passes == 2 && $status == 0 ]]; then if [[ $passes == 2 && $status == 0 ]]; then
mv -v ffmpeg2pass*.log* ~/TRASH/ mv -v ffmpeg2pass*.log* ~/TRASH/
fi fi
@ -189,7 +189,8 @@ function commit {
# Otherwise can just source this file unless testing setup.sh. # Otherwise can just source this file unless testing setup.sh.
function test-termux { function test-termux {
sh -c "rm -rf ~/termux-deleteme ~/TRASH/termux-deleteme" 2>/dev/null sh -c "rm -rf ~/termux-deleteme ~/TRASH/termux-deleteme" 2>/dev/null
git clone https://github.com/Hyperling/Termux ~/termux-deleteme --branch=dev git clone https://git.hyperling.com/me/env-termux \
--branch=dev ~/termux-deleteme
chmod 755 ~/termux-deleteme/*.sh chmod 755 ~/termux-deleteme/*.sh
~/termux-deleteme/setup.sh ~/termux-deleteme/setup.sh
} }