- chore(prvt):Update private submodule
-Subproject commit 7786f51480103cd635f081f06d1c30379fc7e507
+Subproject commit 88daab9c24227d3026b6f8e223fb43a86f5f8748
# Usage: mp3s_to_mkv.sh [DIR in] [DIR out] [BITRATE]
# Example: mp3s_to_mkv.sh ./dir_source ./dir_output 48k
# Depends: GNU Coretils 8.32 (date)
# Usage: mp3s_to_mkv.sh [DIR in] [DIR out] [BITRATE]
# Example: mp3s_to_mkv.sh ./dir_source ./dir_output 48k
# Depends: GNU Coretils 8.32 (date)
# plumbing
opus_bitrate="$3"; # e.g. "48k"
# plumbing
opus_bitrate="$3"; # e.g. "48k"
# Concatenate mp3 files into a single WAV file
# # Convert WAV to 48 kbps opus mkv file
# Concatenate mp3 files into a single WAV file
# # Convert WAV to 48 kbps opus mkv file
- ffmpeg -f concat -safe 0 -i "$file_flist" -c:a pcm_s24le -rf64 auto -f wav - | \
+ ffmpeg -nostdin -f concat -safe 0 -i "$file_flist" -c:a pcm_s24le -rf64 auto -f wav - | \
ffmpeg -i - -c:a libopus -b:a "$opus_bitrate" "$file_out_mkv";
# Return to original dir
ffmpeg -i - -c:a libopus -b:a "$opus_bitrate" "$file_out_mkv";
# Return to original dir
local file
file="$(find "$dir_in" -type f -iname "*.mp3" | sort | head -n1)";
file="$(readlink -f "$file")";
local file
file="$(find "$dir_in" -type f -iname "*.mp3" | sort | head -n1)";
file="$(readlink -f "$file")";
- ffmpeg -i "$file" -an -vcodec copy "$file_albumart";
+ ffmpeg -nostdin -i "$file" -an -vcodec copy "$file_albumart";
}; # save album art from an mp3 to output dir
main() {
check_depends && yell "DEBUG:check_depends OK";
}; # save album art from an mp3 to output dir
main() {
check_depends && yell "DEBUG:check_depends OK";
# Usage: mp3s_to_opus.sh [DIR in] [DIR out] [BITRATE]
# Example: mp3s_to_opus.sh ./dir_source ./dir_output 48k
# Depends: GNU Coretils 8.32 (date)
# Usage: mp3s_to_opus.sh [DIR in] [DIR out] [BITRATE]
# Example: mp3s_to_opus.sh ./dir_source ./dir_output 48k
# Depends: GNU Coretils 8.32 (date)
# plumbing
opus_bitrate="$3"; # e.g. "48k"
# plumbing
opus_bitrate="$3"; # e.g. "48k"
# Concatenate mp3 files into a single WAV file
# # Convert WAV to 48 kbps opus file
# Concatenate mp3 files into a single WAV file
# # Convert WAV to 48 kbps opus file
- ffmpeg -f concat -safe 0 -i "$file_flist" -c:a pcm_s24le -rf64 auto -f wav - | \
+ ffmpeg -nostdin -f concat -safe 0 -i "$file_flist" -c:a pcm_s24le -rf64 auto -f wav - | \
ffmpeg -i - -c:a libopus -b:a "$opus_bitrate" "$file_out_opus";
# Return to original dir
ffmpeg -i - -c:a libopus -b:a "$opus_bitrate" "$file_out_opus";
# Return to original dir
local file
file="$(find "$dir_in" -type f -iname "*.mp3" | sort | head -n1)";
file="$(readlink -f "$file")";
local file
file="$(find "$dir_in" -type f -iname "*.mp3" | sort | head -n1)";
file="$(readlink -f "$file")";
- ffmpeg -i "$file" -an -vcodec copy "$file_albumart";
+ ffmpeg -nostdin -i "$file" -an -vcodec copy "$file_albumart";
}; # save album art from an mp3 to output dir
main() {
check_depends && yell "DEBUG:check_depends OK";
}; # save album art from an mp3 to output dir
main() {
check_depends && yell "DEBUG:check_depends OK";