Changed shebangs from dash to system shell

master
Leo Coogan 2 years ago
parent 81029d189a
commit 73fe913eae
Signed by: lcoogan
SSH Key Fingerprint: SHA256:vnrR5ilHkdr6L4t2yOMUMINFPpxEh+53N3nMel66mCw

@ -1,3 +1,3 @@
#!/bin/dash
#!/bin/sh
# Convert audio files recursively to opus
find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg -o -iname \*.m4a -o -iname \*.wav \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;

@ -1,3 +1,3 @@
#!/bin/dash
#!/bin/sh
## Convert video files to mp4 x265 codec
find ./ -type f \( -iname \*.mkv -o -iname \*.mp4 -o -iname \*.webm -o -iname \*.avi \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" -vf scale=1280x720 -c:v hevc -vtag hvc1 -c:a copy -crf 18 -preset ultrafast "${i%.*}-x265.mp4" && rm -f "$i"' \;

@ -1,2 +1,2 @@
#!/usr/bin/env sh
#!/bin/sh
perl -pi -e 's/\r\n|\n|\r/\r\n/g' $1

@ -1,4 +1,4 @@
#!/bin/dash
#!/bin/sh
#Concatenate mkvs
for f in ./*.mkv; do echo "file '$f'" >> list.txt; done
&& ffmpeg -f concat -safe 0 -i list.txt -c copy output.mkv

Loading…
Cancel
Save