Modify project to use Gitea URLs.
This commit is contained in:
parent
060a3b25d8
commit
bdd7e7855b
@ -7,7 +7,7 @@ Hyperling's scripts for a productive Termux environment.
|
||||
1. Download the repository.
|
||||
|
||||
```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.
|
||||
|
13
bashrc.sh
13
bashrc.sh
@ -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 "These work well on Odysee and are fairly small as backups."
|
||||
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 "- Create a larger file for something like YouTube."
|
||||
echo " process-video youcut.mp4 20240210_1080p.mp4 5000k 256k 1080"
|
||||
@ -94,7 +94,7 @@ function process-video {
|
||||
process-video-usage
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
echo "`date` - Converting '$file' to '$newfile'."
|
||||
|
||||
if [[ -z $video ]]; then
|
||||
@ -115,7 +115,7 @@ function process-video {
|
||||
size="720"
|
||||
fi
|
||||
size="-filter:v scale=-1:$size"
|
||||
|
||||
|
||||
if [[ -z $passes ]]; then
|
||||
passes=1
|
||||
fi
|
||||
@ -143,7 +143,7 @@ function process-video {
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
set -x &&
|
||||
ffmpeg -nostdin -hide_banner -loglevel quiet \
|
||||
-i "$file" $size $video $audio \
|
||||
@ -153,7 +153,7 @@ function process-video {
|
||||
status="$?"
|
||||
set +x
|
||||
echo "`date` - Done with the final pass."
|
||||
|
||||
|
||||
if [[ $passes == 2 && $status == 0 ]]; then
|
||||
mv -v ffmpeg2pass*.log* ~/TRASH/
|
||||
fi
|
||||
@ -189,7 +189,8 @@ function commit {
|
||||
# Otherwise can just source this file unless testing setup.sh.
|
||||
function test-termux {
|
||||
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
|
||||
~/termux-deleteme/setup.sh
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user