CDN
- Path:
server/{channel}/{attach} - Preview path:
server/{channel}/{attach}.preview.png
Videos:
- During upload:
- write video to a
path; - use ffprobe to get video width and height;
- use ffmpeg to extract preview frame and write it to
preview path; - add record to DB (with non-zero width and height);
- write video to a
- If client requests video w/o query args:
- serve file as-is;
- If client requests video w/ query args:
- read file from
preview path; - apply required changes;
- serve that file;
- read file from