From: yu.dongliang <18588496441@163.com> Date: Mon, 10 Apr 2023 08:17:44 +0000 (+0800) Subject: out X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=4faea1dfa5ebd539b2518723eb8c80e86006f67c;p=simplay.git out --- 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;