Removed unnessary program, changed control flow of mkv-cat

master
Leo Coogan 2 years ago
parent 7c8cd7b685
commit 54bd90a1ec
No known key found for this signature in database
GPG Key ID: 3D7F617CDE5C9A9B

@ -1,17 +0,0 @@
#!/bin/dash
#ffconv - Batch convert from one format to another
echo Convert from...
read ext
echo Convert to...
read toext
for i in *.$ext; do ffmpeg -i "$i" "${i%.*}.$toext"; done
while true; do
read -p "Delete original files? " yn
case $yn in
[Yy]* ) rm *.$ext; exit;;
[Nn]* ) exit;;
* ) printf "Please answer yes or no. ";;
esac
done

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

Loading…
Cancel
Save