[FFmpeg-cvslog] avconv: remove -psnr option.

Anton Khirnov git at videolan.org
Mon Sep 12 00:38:58 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Sep  2 17:31:14 2011 +0200| [0bc391281ad80d4eb365f3d8978637b07003e8dc] | committer: Anton Khirnov

avconv: remove -psnr option.

It's redundant -- -flags +psnr does the same thing.

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

 avconv.c        |    5 -----
 doc/avconv.texi |    2 --
 2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/avconv.c b/avconv.c
index 28e171e..1cd9ce8 100644
--- a/avconv.c
+++ b/avconv.c
@@ -117,7 +117,6 @@ static int file_overwrite = 0;
 static int do_benchmark = 0;
 static int do_hex_dump = 0;
 static int do_pkt_dump = 0;
-static int do_psnr = 0;
 static int do_pass = 0;
 static char *pass_logfilename_prefix = NULL;
 static int video_sync_method= -1;
@@ -3088,9 +3087,6 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc)
             video_enc->rc_initial_buffer_occupancy = video_enc->rc_buffer_size*3/4;
         video_enc->intra_dc_precision= intra_dc_precision - 8;
 
-        if (do_psnr)
-            video_enc->flags|= CODEC_FLAG_PSNR;
-
         /* two pass mode */
         if (do_pass) {
             if (do_pass == 1) {
@@ -3967,7 +3963,6 @@ static const OptionDef options[] = {
     { "passlogfile", HAS_ARG | OPT_STRING | OPT_VIDEO, {(void*)&pass_logfilename_prefix}, "select two pass log file name prefix", "prefix" },
     { "deinterlace", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&do_deinterlace},
       "deinterlace pictures" },
-    { "psnr", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&do_psnr}, "calculate PSNR of compressed frames" },
     { "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" },
     { "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" },
 #if CONFIG_AVFILTER
diff --git a/doc/avconv.texi b/doc/avconv.texi
index 1e3236e..6daece4 100644
--- a/doc/avconv.texi
+++ b/doc/avconv.texi
@@ -550,8 +550,6 @@ Use this option if your input file is interlaced and you want
 to keep the interlaced format for minimum losses.
 The alternative is to deinterlace the input stream with
 @option{-deinterlace}, but deinterlacing introduces losses.
- at item -psnr
-Calculate PSNR of compressed frames.
 @item -vstats
 Dump video coding statistics to @file{vstats_HHMMSS.log}.
 @item -vstats_file @var{file}



More information about the ffmpeg-cvslog mailing list