[FFmpeg-cvslog] lavfi/showspectrum: set default height to 512

Rudolf Polzer git at videolan.org
Sun Feb 3 18:08:32 CET 2013


ffmpeg | branch: master | Rudolf Polzer <divverent at xonotic.org> | Sun Feb  3 17:03:39 2013 +0000| [773fc6e0c7122740c3dd6530df6406282ced34da] | committer: Paul B Mahol

lavfi/showspectrum: set default height to 512

Only power-of-two FFTs are supported; so to get a full spectrum
(that is, one up to Nyquist), the height must be a power of two.

Therefore, change the default height from 480 to 512.

Signed-off-by: Rudolf Polzer <divverent at xonotic.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=773fc6e0c7122740c3dd6530df6406282ced34da
---

 doc/filters.texi               |    2 +-
 libavfilter/avf_showspectrum.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 442fe35..fdbe3b7 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -6019,7 +6019,7 @@ spectrum.
 The filter accepts the following named parameters:
 @table @option
 @item size, s
-Specify the video size for the output. Default value is @code{640x480}.
+Specify the video size for the output. Default value is @code{640x512}.
 @item slide
 Specify if the spectrum should slide along the window. Default value is
 @code{0}.
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 977fca9..d8aed0d 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -51,8 +51,8 @@ typedef struct {
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
 static const AVOption showspectrum_options[] = {
-    { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
-    { "s",    "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
+    { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
+    { "s",    "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
     { "slide", "set sliding mode", OFFSET(sliding), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, FLAGS },
     { NULL },
 };



More information about the ffmpeg-cvslog mailing list