Hi ffmpeg developers,
I want to submit the following patch. It's a minor thing that improves the
filtering_video.c to demo chaining of vfilters.

>From ceda852421e51712352ab2b1230b715ea0073f6a Mon Sep 17 00:00:00 2001
From: Harshit Mittal <h.mitta...@gmail.com>
Date: Wed, 5 Aug 2015 12:41:49 -0700
Subject: [PATCH 1/2] better demo ffmpeg filters; demos chaining the filters

---
 doc/examples/filtering_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index c02040a..7c710e2 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -38,7 +38,7 @@
 #include <libavfilter/buffersrc.h>
 #include <libavutil/opt.h>

-const char *filter_descr = "scale=78:24";
+const char *filter_descr = "[in] scale=78:24 [scl]; [scl]
transpose=cclock";

 static AVFormatContext *fmt_ctx;
 static AVCodecContext *dec_ctx;
-- 
2.5.0


>From ef9df636f2e6181c887c8109081f4b72ee794cec Mon Sep 17 00:00:00 2001
From: Harshit Mittal <h.mitta...@gmail.com>
Date: Thu, 6 Aug 2015 12:40:40 -0700
Subject: [PATCH 2/2] demo without the pads

---
 doc/examples/filtering_video.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index 7c710e2..5685380 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -38,7 +38,10 @@
 #include <libavfilter/buffersrc.h>
 #include <libavutil/opt.h>

-const char *filter_descr = "[in] scale=78:24 [scl]; [scl]
transpose=cclock";
+const char *filter_descr = "scale=78:24,transpose=cclock";
+/* other way:
+   scale=78:24 [scl]; [scl] transpose=cclock // assumes "[in]" and "[out]"
to be input output pads respectively
+ */

 static AVFormatContext *fmt_ctx;
 static AVCodecContext *dec_ctx;
-- 
2.5.0


FROM: https://github.com/FFmpeg/FFmpeg/pull/145

Attachment: ffmpeg_vfilters_demo.patch
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to