boyska 597b9ba798 clarify whats needed | hai 1 ano | |
---|---|---|
contrib | %!s(int64=2) %!d(string=hai) anos | |
docker | hai 1 ano | |
techrec | hai 1 ano | |
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
.gitlab-ci.yml | %!s(int64=2) %!d(string=hai) anos | |
12factors.md | %!s(int64=10) %!d(string=hai) anos | |
Dockerfile | hai 1 ano | |
LICENSE | %!s(int64=10) %!d(string=hai) anos | |
MANIFEST.in | %!s(int64=4) %!d(string=hai) anos | |
Makefile | %!s(int64=2) %!d(string=hai) anos | |
README.md | hai 1 ano | |
RELEASE.md | %!s(int64=10) %!d(string=hai) anos | |
docker-compose.yaml | %!s(int64=2) %!d(string=hai) anos | |
publish-release | %!s(int64=4) %!d(string=hai) anos | |
requirements.txt | hai 1 ano | |
setup.cfg | %!s(int64=2) %!d(string=hai) anos | |
setup.py | %!s(int64=2) %!d(string=hai) anos | |
techrec.spec | %!s(int64=4) %!d(string=hai) anos |
A Python3 web application that assist radio speakers in recording their shows. Meant to be simple to install and to maintain.
It basically takes a directory with the continuous recording and create new files "cutting/pasting" with ffmpeg.
We suppose that you have a continous recording of your radio broadcasting. What techrec does is taking files from this directory and "cutting/pasting" parts of them. This can boil down to something like
ffmpeg -i concat:2014-20-01-00-00.mp3|2014-20-01-00-01.mp3 -acodec copy -ss 160 -t 1840 foo.mp3
This continous recording needs to be configured so that:
pip install .
env TECHREC_CONFIG=yourconfig.py techrec serve
It is based on fastapi, a really nice framework. Simple APIs are offered through it, and the static site uses them through JS.
Jobs are not dispatched using stuff like celery, but just using
BackgroundTasks
,
in order to keep the installation as simple as possible.
The encoding part is delegated to ffmpeg
, but the code is really modular so
changing this is a breeze. To be quicker and avoid the quality issues related
to reencoding, the codec "copy" is used: this means that input and output must
have the same format.
gitlab-runner exec docker test
(or, pytest-3
, assuming you have a properly configured system)
See screenshots at https://boyska.degenerazione.xyz/proj/techrec/