From ab4f7788ae694060b86aceab11d4488672978138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20J=C3=A4ckle?= Date: Sun, 11 Dec 2022 11:50:17 +0100 Subject: [PATCH] start info --- Readme.md | 24 ++++++++++++++++++++++++ charpters.csv | 5 +++++ hmake.sh | 16 ++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 charpters.csv create mode 100755 hmake.sh diff --git a/Readme.md b/Readme.md index e69de29..9f982db 100644 --- a/Readme.md +++ b/Readme.md @@ -0,0 +1,24 @@ +# HP MoR split + +Goal is to split large files into smaler ones, so one can easier check where one stands. +I do not share the originalfiles, but one can get them freely from the original website. + +`wget https://hpmorpodcast.com/wp-content/uploads/episodes/HPMoR_Part_{1..6}.mp3` + +``` +$ sha256sum HPMoR_Part_?.mp3 +128546d71d714271bd088e07f298bf96cb7602dbb8847fdd3a4c77157e062a79 HPMoR_Part_1.mp3 +59620d8c4d7ea24c863ee46cab1461367cb994f65d2ae469cdf865f74d02e816 HPMoR_Part_2.mp3 +9a064888e7df3d4002156f972ed8ae674f995f781e46ed8d058865eefe700ed7 HPMoR_Part_3.mp3 +4146f76642a0a8d29b9a51261ccdb9b4ef03ac4b5704986934b02261ec4863df HPMoR_Part_4.mp3 +e04c71e16fc6ab1a72872efe33776b1fc892082dc59fdb452714d59bce792337 HPMoR_Part_5.mp3 +1a7ebce777becb6a0c0e8efec1155f8dbf0d179224db71ca78e3d8122a804422 HPMoR_Part_6.mp3 +``` + +## Make Hour long files + +Use hmake.sh + +## Chapiel files + +Please commit to charpters.csv to collect the necessary data. diff --git a/charpters.csv b/charpters.csv new file mode 100644 index 0000000..2eda17a --- /dev/null +++ b/charpters.csv @@ -0,0 +1,5 @@ +C007,2:43:51, +C008,3:23:34, +C011,4:35:18,There is no chapter 11 +C012,4:35:19, +C013,4:58:10, diff --git a/hmake.sh b/hmake.sh new file mode 100755 index 0000000..22de5bb --- /dev/null +++ b/hmake.sh @@ -0,0 +1,16 @@ +#!/bin/bash +if [ -z $H ] +then echo -e "usage:\tH=4 bash $0" +exit 1 +fi + +i=0 +while ffmpeg -ss ${i}:00:00 -t 1:00:00 -i HPMoR_Part_${H}.mp3 h/hpmot_p${H}_h${i}.mp3 +do +if [ `du -t 5K h/hpmot_p${H}_h${i}.mp3 |wc -l` -lt 1 ] +then + rm h/hpmot_p${H}_h${i}.mp3 + break +fi +let i++ +done