diff options
author | pommicket <pommicket@gmail.com> | 2025-02-23 22:52:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-25 15:16:08 -0500 |
commit | b1218f3dbc6a9eb9cd32cc052db2043d6ceac307 (patch) | |
tree | d814ded721da7e4a362718187b4431c987ad0d30 | |
parent | a475085ee119250344f709b14fe52cb540fc11a4 (diff) |
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.
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | video.c | 1 |
2 files changed, 0 insertions, 2 deletions
@@ -1,6 +1,5 @@ /* TODO --video -adjustable camera framerate -save/restore settings -make sure file doesn't exist before writing to it @@ -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)); |