From 4faea1dfa5ebd539b2518723eb8c80e86006f67c Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 10 Apr 2023 16:17:44 +0800 Subject: [PATCH] out --- main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index c146727..97f438e 100644 --- a/main.c +++ b/main.c @@ -21,18 +21,29 @@ int main(int argc, char* argv[]) return -1; } + if (simp_avio_open(&out, "ffmpeg_output", argv[2]) < 0) { + scf_loge("\n"); + return -1; + } + if (simp_filter_open(&f) < 0) { scf_loge("\n"); return -1; } - simp_filter_add_input(f, in); + simp_filter_add_input (f, in); + simp_filter_add_output(f, out); if (simp_filter_run(f) < 0) { scf_loge("\n"); return -1; } + if (simp_avio_run(out) < 0) { + scf_loge("\n"); + return -1; + } + if (simp_avio_run(in) < 0) { scf_loge("\n"); return -1; -- 2.25.1