Adjust enabled modules and add ffmpeg_dl
Disable Zed remote server, VirtualBox and Exercism modules. Enable Pixieditor and Gedit editors. Add ffmpeg_dl Bash function to download streams via ffmpeg.
This commit is contained in:
@@ -140,5 +140,26 @@ _: {
|
||||
pwdtail() {
|
||||
pwd | awk -F/ '{nlast = NF -1;print $nlast"/"$NF}'
|
||||
}
|
||||
|
||||
ffmpeg_dl() {
|
||||
# Sprawdzenie liczby argumentów
|
||||
if [ "$#" -ne 3 ]; then
|
||||
echo "Usage: ffmpeg_dl <url> <name> <fs_path>"
|
||||
return 1
|
||||
fi
|
||||
|
||||
local url="$1"
|
||||
local name="$2"
|
||||
local fs_path="$3"
|
||||
|
||||
# Tworzy katalog docelowy, jeśli nie istnieje
|
||||
mkdir -p "$fs_path"
|
||||
|
||||
# Pełna ścieżka do pliku wyjściowego
|
||||
local output="${"$"}{fs_path}/${"$"}{name}.mp4"
|
||||
|
||||
# Uruchamia ffmpeg – kopiowanie strumienia bez rekompresji
|
||||
ffmpeg -i "$url" -c copy "$output"
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user