From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A2CE949E76 for ; Sun, 14 Jul 2024 11:44:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8F63268D9BB; Sun, 14 Jul 2024 14:44:07 +0300 (EEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BB02F68D93B for ; Sun, 14 Jul 2024 14:44:00 +0300 (EEST) X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from metallschleimette ([91.62.13.127]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Ygt-1sUKQ82toZ-00CUti for ; Sun, 14 Jul 2024 13:43:59 +0200 Date: Sun, 14 Jul 2024 13:43:58 +0200 To: FFmpeg development discussions and patches Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:7TsX6NTs41Z3vT2SKUpSMJl3L2lutHuah6ijnNxLSkhNWRtZQKS 9qh/XzrI9r9nPcidm8YZySz5tBwWsYs5AW549YT1pfB8/39DsDDMSbp78KgBmCCgYOCw2fa FgFfpq7aLYAH5ouKrKjE00jQAPbCo2RL0z3zTtbc3X5hNrO0B9N2DlS/nB7uKkiMBLMAtt2 W/DPDEtajjqk2bDechdvw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:/ZgeC9ISEeA=;V9wxf1NvDJhosVXNQHgKNWOzMiR 0+JlERO7NnRjUXXV5On0bUyr184AElP5L5loNSM2RY6w6/TjfIwU6SI1KRSFg1fxTkX7ihFlR 77D9hd8A7FVxzEIxaj6QGEx7XxEhVv0uhg2GnTfaVNyiEw+bZD2/Z/4f2eWpg+1C3wuxuhwPA csgo6Jt19bcs6ZwBmO2unDB2DxT4MlSAYyPfu/jLTHfhlh2N4d0K56JO8VeFt1ce83s3uwolg MorEQFsGsWu1FiGeMWzGhfhR3F6vjEWxqoOm8oX/ux+emhC7tuo4UN2FIWZr+Vgme2s2k0IRu WJ6gulPNp5Yk2H4m0MIzxAql2tkWXusUfq1SiEeCe7mj+TkCLr6W9EjFczaoDH5BKuHsNKYyu NIziYuDNC4BoLlAPL5kYmYTwH+zNIpU28ziNIKmcdwnom41CKPnAZOcZpIXmNriLc0WtuYnYS rr0EHgU4b/Ge/jw/M2dafPmztbjeAickcrs03VN30JEGbQjrnv4pnWdwdxU4lukFbX1Ox5ni8 JcAp0BrcVLYzig0dvYguiK5zqiKWbGfnLEIGv+uJZSVL9Gn1RO+mutIUbk+lTAky0i6FlsYyD XI2vgKWmytGXonza+On7os8sOaKvs0uZC/qFzmMNoWs2UiNWYtCR6dWXUjAOnkkEXprKshAGr GhMI7URRxZ89eoIlZ4osdQ53dhElzDWdBWe3kGwEttspD0VJl/hfYuj6NkD/y+QiVLhQoLgWD /kPgaKl1wI2+R7uoomCQrq3HNXQWOUg4ZZRX/svXV4cMQ8Lpif5UAT02su4aAX7OdsRj/4U5g CuDNy5IZ+oeKXr9KpvFCohIg== Subject: Re: [FFmpeg-devel] [PATCH v2] libavdevice: Improve example in deprecation message for opengl and sdl X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Strasser via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Alexander Strasser Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2024-06-02 11:27 +0200, Alexander Strasser via ffmpeg-devel wrote: > On 2024-04-29 23:53 +0200, Alexander Strasser via ffmpeg-devel wrote: > > When piping ffmpeg into ffplay both programs write a status line in > > the terminal. That causes flickering and invisibility of one or the > > other status line. > > > > As compromise set ffplay log level to warning, so it doesn't show > > the status line. > > > > The user is usually testing ffmpeg command lines and want's a > > preview of the result. This way the user can see the ffmpeg output > > and still see errors and warnings from ffplay, should they occur. > > > > Additionally set PTS to zero in ffplay to lessen the delay until > > the frames are displayed. Without it delay is quite observable > > when e.g. live capturing with low frame rates. > > --- > > > > Same as previous patch, but with setpts=0 in ffplay as suggested by > > Nicolas George. > > > > > > libavdevice/opengl_enc.c | 2 +- > > libavdevice/sdl2.c | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c > > index 6f7a30ff9e..93d3959880 100644 > > --- a/libavdevice/opengl_enc.c > > +++ b/libavdevice/opengl_enc.c > > @@ -1067,7 +1067,7 @@ static av_cold int opengl_write_header(AVFormatContext *h) > > av_log(opengl, AV_LOG_WARNING, > > "The opengl output device is deprecated due to being fundamentally incompatible with libavformat API. " > > "For monitoring purposes in ffmpeg you can output to a file or use pipes and a video player.\n" > > - "Example: ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -\n" > > + "Example: ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -loglevel warning -vf setpts=0 -\n" > > ); > > opengl->warned = 1; > > } > > diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c > > index 779c8e08b0..491c8dafe8 100644 > > --- a/libavdevice/sdl2.c > > +++ b/libavdevice/sdl2.c > > @@ -167,7 +167,7 @@ static int sdl2_write_header(AVFormatContext *s) > > av_log(sdl, AV_LOG_WARNING, > > "The sdl output device is deprecated due to being fundamentally incompatible with libavformat API. " > > "For monitoring purposes in ffmpeg you can output to a file or use pipes and a video player.\n" > > - "Example: ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -\n" > > + "Example: ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -loglevel warning -vf setpts=0 -\n" > > ); > > sdl->warned = 1; > > } > > -- > > > Will try to push soon'ish if I don't hear any objections. Finally pushed. Was way more "ish" than "soon"... Alexander _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".