From b1218f3dbc6a9eb9cd32cc052db2043d6ceac307 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 23 Feb 2025 22:52:37 -0500 Subject: welp we can't really nail down the codecs after all it's a fucking pain. you'd expect it would be like, avformat supports containers A, B, and C, avcodec supports codecs X, Y, and Z, and maybe A only allows X, Y, etc. but in fact only a handful of specific combinations of [container format]+[audio codec]+[video codec] are supported. --- main.c | 1 - video.c | 1 - 2 files changed, 2 deletions(-) diff --git a/main.c b/main.c index 0e049c9..74e72a0 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,5 @@ /* TODO --video -adjustable camera framerate -save/restore settings -make sure file doesn't exist before writing to it diff --git a/video.c b/video.c index 495c6e2..2ce9b29 100644 --- a/video.c +++ b/video.c @@ -95,7 +95,6 @@ bool video_start(VideoContext *ctx, const char *filename, int32_t width, int32_t return true; } video_stop(ctx); - // TODO: nail down codecs as H264 and AAC int err = avformat_alloc_output_context2(&ctx->avf_context, NULL, NULL, filename); if (!ctx->avf_context) { fprintf(stderr, "error: avformat_alloc_output_context2: %s\n", av_err2str(err)); -- cgit v1.2.3