M4Rextract creates a M4R audio extract from a youtube video in an easy way.
Build the Docker image:
docker build -t m4rextract .
Every time you want to generate a new audio extract, run the container as follows:
docker run -it --rm -v /path/to/output/folder:/app/m4r m4rextract m4rextract.sh "AUDIO_EXTRACT" "YOUTUBE_URL" StartMin StartSec
For example:
docker run -it --rm -v /path/to/output/folder:/app/m4r m4rextract m4rextract.sh "My audio extract" "https://www......." 0 30
M4Rextract will generate the My audio extract.m4r audio extract from the youtube video starting on 0:30, will save it to /path/to/output/folder, and will destroy the container once done.
M4Rextract uses the following python libraries:
And also, for audio format conversion: ffmpeg