From 521605b4cddbf32af0e0d065702f97f217aa7e1c Mon Sep 17 00:00:00 2001 From: likho Date: Thu, 20 Feb 2025 03:09:55 -0800 Subject: [PATCH] Publish repository. Added README and gitignore. --- .gitignore | 2 ++ Makefile | 9 ++++----- README.md | 24 ++++++++++++++++++++++++ parse-subs.py => scripts/parse-subs.py | 0 4 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 README.md rename parse-subs.py => scripts/parse-subs.py (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f33f27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.mp4 +*.mkv diff --git a/Makefile b/Makefile index 0fa6ec9..8020cf7 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,13 @@ -ORIGINAL_SUBS=original-subs.fr.vtt -UNSYNCRONIZED=1-ere-french-raw.vtt +ORIGINAL_SUBS=autogen-subs VIDEO=1ere-introcut.mp4 cleansubs: - python parse-subs.py $(ORIGINAL_SUBS) - ffmpeg -i 1ere.mkv -i output.vtt -vcodec copy -acodec copy -c:s mov_text test.mp4 -y + python scripts/parse-subs.py $(ORIGINAL_SUBS).fr.vtt +# ffmpeg -i 1ere.mkv -i output.vtt -vcodec copy -acodec copy -c:s mov_text test.mp4 -y getsubs: - yt-dlp --write-auto-subs --sub-lang=fr --skip-download https://www.youtube.com/watch?v=WRq2197FlMw -o original-subs + yt-dlp --write-auto-subs --sub-lang=fr --skip-download https://www.youtube.com/watch?v=WRq2197FlMw -o autogen-subs # omit the music clip: diff --git a/README.md b/README.md new file mode 100644 index 0000000..eb267c3 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ + +# laborde-visio1 + +This repository tracks the transcription and translation for the video conference by Stéphane Laborde *Pourquoi la monnaie libre n'est justement pas un Ponzi*. This translates to *Why Free Currency Isn't Just a Ponzi (Scheme)*. + +The original video and the auto-generated captions in French can be sourced from [https://www.youtube.com/watch?v=WRq2197FlMw](https://www.youtube.com/watch?v=WRq2197FlMw). + +## Setup + +Run the following to download auto-generated captions from YouTube to a new file named `autogen-subs.fr.vtt`. + + yt-dlp --write-auto-subs --sub-lang=fr --skip-download https://www.youtube.com/watch?v=WRq2197FlMw -o autogen-subs + +Other video players such as `mpv` might not display YouTube's auto-generated captions properly. The following removes duplicates and resyncs captions. + + python scripts/parse-subs.py autogen-subs.fr.vtt + +## Notes + +The `Makefile` contains some reference for using `yt-dlp` and `ffmpeg` but does not function without downloading the entire video and renaming some files. + +## Context + +Stéphane Laborde is the author of [The Relative Theory of Money](https://en.trm.creationmonetaire.info/), an economic theory inspired by the free software movement which defines "monnaie libre" as the category of currencies that respects the economic agency and time of its users. diff --git a/parse-subs.py b/scripts/parse-subs.py similarity index 100% rename from parse-subs.py rename to scripts/parse-subs.py