From: Alexander Strasser via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Alexander Strasser <eclipse7@gmx.net>
Subject: Re: [FFmpeg-devel] [PATCH v2] libavdevice: Improve example in deprecation message for opengl and sdl
Date: Sun, 2 Jun 2024 11:27:55 +0200
Message-ID: <Zlw7G_Kzag8aHGSk@metallschleimette> (raw)
In-Reply-To: <ZjAWz2w0a9F0flyk@metallschleimette>
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.
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".
next prev parent reply other threads:[~2024-06-02 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 21:53 Alexander Strasser via ffmpeg-devel
2024-06-02 9:27 ` Alexander Strasser via ffmpeg-devel [this message]
2024-07-14 11:43 ` Alexander Strasser via ffmpeg-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zlw7G_Kzag8aHGSk@metallschleimette \
--to=ffmpeg-devel@ffmpeg.org \
--cc=eclipse7@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git