summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ff_commands174
-rw-r--r--main.go24
2 files changed, 13 insertions, 185 deletions
diff --git a/ff_commands b/ff_commands
deleted file mode 100644
index c3c7e07..0000000
--- a/ff_commands
+++ /dev/null
@@ -1,174 +0,0 @@
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:00.000 -to 00:06.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:00.000_00:06.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:06.000 -to 00:18.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:06.000_00:18.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:18.000 -to 00:27.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:18.000_00:27.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:27.000 -to 00:35.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:27.000_00:35.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:35.000 -to 00:42.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:35.000_00:42.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:42.000 -to 00:53.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:42.000_00:53.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 00:53.000 -to 01:02.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_00:53.000_01:02.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:02.000 -to 01:09.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:02.000_01:09.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:09.000 -to 01:16.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:09.000_01:16.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:16.000 -to 01:29.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:16.000_01:29.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:29.000 -to 01:39.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:29.000_01:39.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:39.000 -to 01:48.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:39.000_01:48.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 01:48.000 -to 02:06.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_01:48.000_02:06.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:06.000 -to 02:13.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:06.000_02:13.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:13.000 -to 02:21.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:13.000_02:21.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:21.000 -to 02:35.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:21.000_02:35.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:35.000 -to 02:46.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:35.000_02:46.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:46.000 -to 02:56.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:46.000_02:56.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 02:56.000 -to 03:07.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_02:56.000_03:07.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 03:07.000 -to 03:20.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_03:07.000_03:20.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 03:20.000 -to 03:32.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_03:20.000_03:32.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 03:32.000 -to 03:52.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_03:32.000_03:52.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 03:52.000 -to 03:58.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_03:52.000_03:58.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 03:58.000 -to 04:06.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_03:58.000_04:06.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 04:06.000 -to 04:28.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_04:06.000_04:28.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 04:28.000 -to 04:42.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_04:28.000_04:42.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 04:42.000 -to 04:51.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_04:42.000_04:51.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 04:51.000 -to 05:06.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_04:51.000_05:06.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 05:06.000 -to 05:25.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_05:06.000_05:25.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 05:25.000 -to 05:40.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_05:25.000_05:40.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 05:40.000 -to 05:59.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_05:40.000_05:59.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 05:59.000 -to 06:22.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_05:59.000_06:22.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 06:22.000 -to 06:38.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_06:22.000_06:38.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 06:38.000 -to 07:00.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_06:38.000_07:00.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 07:00.000 -to 07:20.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_07:00.000_07:20.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 07:20.000 -to 07:36.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_07:20.000_07:36.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 07:36.000 -to 07:51.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_07:36.000_07:51.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 07:51.000 -to 08:10.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_07:51.000_08:10.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 08:10.000 -to 08:23.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_08:10.000_08:23.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 08:23.000 -to 08:42.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_08:23.000_08:42.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 08:42.000 -to 08:58.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_08:42.000_08:58.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 08:58.000 -to 09:14.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_08:58.000_09:14.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 09:14.000 -to 09:33.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_09:14.000_09:33.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 09:33.000 -to 09:47.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_09:33.000_09:47.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 09:47.000 -to 10:10.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_09:47.000_10:10.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 10:10.000 -to 10:21.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_10:10.000_10:21.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 10:21.000 -to 10:34.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_10:21.000_10:34.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 10:34.000 -to 10:43.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_10:34.000_10:43.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 10:43.000 -to 11:01.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_10:43.000_11:01.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:01.000 -to 11:19.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:01.000_11:19.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:19.000 -to 11:26.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:19.000_11:26.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:26.000 -to 11:35.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:26.000_11:35.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:35.000 -to 11:43.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:35.000_11:43.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:43.000 -to 11:53.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:43.000_11:53.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 11:53.000 -to 12:01.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_11:53.000_12:01.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 12:01.000 -to 12:07.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_12:01.000_12:07.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 12:07.000 -to 12:14.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_12:07.000_12:14.000.wav
-ffmpeg -i /mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus -ss 12:14.000 -to 12:24.000 \
- -metadata text_source="/mnt/desktop/media/video/other/youtube_backup/nesfatelp/oneshots/audio_only/the_baby_in_yellow.opus.vtt" \
- -ar 22050 /mnt/desktop/media/datasets/nesfatelp_voice/utterances/the_baby_in_yellow.opus_12:14.000_12:24.000.wav
diff --git a/main.go b/main.go
index a0fe70a..61e0515 100644
--- a/main.go
+++ b/main.go
@@ -6,7 +6,6 @@ import (
"flag"
"fmt"
"io/ioutil"
- "log"
"os"
"path"
"path/filepath"
@@ -68,7 +67,7 @@ func linesToUtterances(lines []string, fd *FileData) []*Utterance {
func readLines(filepath string) []string {
file, err := os.Open(filepath)
if err != nil {
- log.Fatal(err)
+ panic(err)
}
defer file.Close()
@@ -79,7 +78,7 @@ func readLines(filepath string) []string {
}
if err := scanner.Err(); err != nil {
- log.Fatal(err)
+ panic(err)
}
return resp
}
@@ -102,11 +101,14 @@ func writeLines(lines []string, path string) error {
}
func readJson(filepath string) map[string]string {
- plan, _ := ioutil.ReadFile(filepath)
data := make(map[string]string)
- err := json.Unmarshal(plan, &data)
+ plan, err := ioutil.ReadFile(filepath)
if err != nil {
- log.Fatal(err)
+ return data
+ }
+ err = json.Unmarshal(plan, &data)
+ if err != nil {
+ panic(err)
}
return data
}
@@ -115,7 +117,7 @@ func writeJson(data map[string]string) {
metadataJson, _ := json.MarshalIndent(data, "", " ")
err := ioutil.WriteFile(metadataPath, metadataJson, 0644)
if err != nil {
- log.Fatal(err)
+ panic(err)
}
}
@@ -139,7 +141,7 @@ func utterancesToFileTextMap(utterances []*Utterance) map[string]string {
func oneFileRun(filepath string) []*Utterance {
fd := NewFileData(filepath)
- fmt.Println("working with:", fd)
+ fmt.Println("working with:", filepath)
lines := readLines(fd.VttPath)
utterances := linesToUtterances(lines, fd)
@@ -158,7 +160,7 @@ func dirRun(dirpath string) []*Utterance {
resp := []*Utterance{}
vttFiles := getVttList(dirpath)
for _, vtt := range vttFiles {
- utterances := oneFileRun(vtt)
+ utterances := oneFileRun(path.Join(dirpath, vtt))
resp = append(resp, utterances...)
}
return resp
@@ -184,8 +186,8 @@ func getVttList(dirpath string) []string {
}
func main() {
- vttFilepath := flag.String("vttfile", "", "path to a vtt file")
- vttDir := flag.String("vttdir", "", "path to a vtt dir")
+ vttFilepath := flag.String("f", "", "path to a vtt file")
+ vttDir := flag.String("d", "", "path to a vtt dir")
// vttFilepath := os.Args[1]
flag.Parse()