[FFmpeg-devel] [PATCH 1/2] better demo ffmpeg filters; demos chaining the filters

harshit mittal h.mittal83 at gmail.com
Thu Aug 6 21:53:20 CEST 2015


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.mittal83 at 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.mittal83 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_vfilters_demo.patch
Type: application/octet-stream
Size: 1695 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150806/274df481/attachment.obj>


More information about the ffmpeg-devel mailing list