diff --git a/CraigBot.txt b/CraigBot.txt new file mode 100644 index 0000000..e69de29 diff --git a/YOuTubeUploader.txt b/YOuTubeUploader.txt new file mode 100644 index 0000000..e69de29 diff --git a/audio-only.sh b/audio-only.sh new file mode 100644 index 0000000..11fdc4a --- /dev/null +++ b/audio-only.sh @@ -0,0 +1,11 @@ +docker run --rm -it \ + -v /var/www/show.turnsys.com/recordings:/config \ + linuxserver/ffmpeg \ + -i /config/$1 \ + -vn -ar 44100 -ac 2 -ab 129k -f mp3 \ + /config/PublishedAudio/output2.mp4 + + + + +#ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192k -f mp3 sound.mp3 diff --git a/combineFiles.sh b/combineFiles.sh new file mode 100644 index 0000000..ccf9c19 --- /dev/null +++ b/combineFiles.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -euo pipefail + +ShowTitle="TheProducerNeverSleeps" +RecordingsDir="/var/www/show.turnsys.com/recordings/TimeShifted/RawCapture" + + +echo "Building file list..." +rm -f $RecordingsDir/ToCombine-${ShowTitle} +for f in $RecordingsDir/$ShowTitle*.flv ; do echo "file '$f'" >> $RecordingsDir/ToCombine-${ShowTitle}; done + + +echo "Combining..." + +docker run --rm -it \ + -v $RecordingsDir:/config \ + linuxserver/ffmpeg \ + -f concat \ + -err_detect ignore_err \ + safe 0 -i /config/ToCombine-${ShowTitle} \ + -c copy /config/CombinedOutput-${ShowTitle}.flv + +#ffmpeg -f concat -safe 0 -i ToCombine.txt -c copy /var/www/show.turnsys.com/recordings/TimeShifted/RawCapture/output-TheProducerNeverSleeps.flv diff --git a/convert-test1.sh b/convert-test1.sh new file mode 100644 index 0000000..c35ad75 --- /dev/null +++ b/convert-test1.sh @@ -0,0 +1,9 @@ +docker run --rm -it \ + -v $(pwd):/config \ + linuxserver/ffmpeg \ + -i /config/input.flv \ + -c:v libx264 \ + -b:v 4M \ + -vf scale=1280:720 \ + -c:a copy \ + /config/output.mp4 diff --git a/convert-yt.sh b/convert-yt.sh new file mode 100644 index 0000000..15a131f --- /dev/null +++ b/convert-yt.sh @@ -0,0 +1,15 @@ +docker run --rm -it \ + -v $(pwd):/config \ + linuxserver/ffmpeg \ + -i /config/input.flv \ + -c:v libx264 \ + -vf scale=1280:720 \ + -preset slow -crf 18 \ + -c:a copy \ + -pix_fmt yuv420p \ + -c:a copy \ + /config/output.mkv + + +#output.mkv +#-b:v 4M \ diff --git a/input.flv b/input.flv new file mode 100644 index 0000000..e8516df Binary files /dev/null and b/input.flv differ diff --git a/output.mkv b/output.mkv new file mode 100644 index 0000000..007ed20 Binary files /dev/null and b/output.mkv differ