annotate ken_source_downloader.c @ 133:0d8eabdd12ab default tip

create: write H:MM:SS timestamps, add option to fill with gaussian-blur instead of black many albums are longer than one hour so writing H:MM:SS is a necessity. if anything there will just be verbose info that isn't important for my use-case. however the gaussian-blur is simply broken. It works, and it plays locally just fine, but YouTube in particular elongates the video to fit the full width. I'm not entirely sure why it does this, but it makes it useless and ugly.
author Paper <paper@tflc.us>
date Sat, 03 Jan 2026 20:25:38 -0500
parents 05803e046878
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
83
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
1 #include <time.h>
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
2 #include <stdio.h>
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
3 #include <stdlib.h>
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
4
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
5 int main(void) {
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
6 srand(time(NULL));
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
7 FILE* ken = fopen("MVI_1332 (2).MOV", "w");
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
8 long i;
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
9 for (i = 0; i <= 1529118700; i++) {
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
10 fprintf(ken, "%c", rand() % 255);
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
11 // make it 500x slower
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
12 printf("Downloading ken source... %d%% complete\r", i/1529118700*100);
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
13 }
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
14 fclose(ken);
05803e046878 Create ken_source_downloader.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
15 }