Implement video format compliance when adding a video to a song
When creating a new song or replacing a video, if the maintainer isn't careful they can upload a 10-bit video or something other than AAC for audio.
To prevent this there are possible things to do, but they're far from easy :
- First we need some kind of metadata file on the repository like a
repo.yml
file at the base of the repo (@leonekmi had this idea some years ago)- This file could contain a few important information about the repository that we currently have in the config, like where to upload files, gitlab project ID and so on. Plus, the requirements for audio and video codecs.
- We need to find out which details in
ffmpeg -i
we can use to detect if audio and video are correct.
- Then we need to add a warning somehow when someone sends a video to the backend. This can be done with the function the frontend uses to process the video once it's uploaded. The backend can then reply with warnings if video/aduio aren't correct.
- ???
- Profit!