diff options
author | Alexander Strasser <eclipse7@gmx.net> | 2024-04-09 01:36:08 +0200 |
---|---|---|
committer | Alexander Strasser <eclipse7@gmx.net> | 2024-07-14 13:31:03 +0200 |
commit | 36aee69f0d2ac2255c9a47d46bc8a26c196a40c2 (patch) | |
tree | 573324d5e862aa091c39a9984d2b49abebb67f9d /libavdevice/sdl2.c | |
parent | 8b3d997bede0e065f19bcaa96f99dfa9978fd181 (diff) | |
download | ffmpeg-36aee69f0d2ac2255c9a47d46bc8a26c196a40c2.tar.gz |
libavdevice: Improve example in deprecation message for opengl and sdl
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.
Diffstat (limited to 'libavdevice/sdl2.c')
-rw-r--r-- | libavdevice/sdl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |