From: Zhao Zhili via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Marcin Serwin <marcin@serwin.dev>, Zhao Zhili <quinkblack@foxmail.com>
Subject: [FFmpeg-devel] Re: [PATCH] fftools/ffplay: migrate to SDL3
Date: Sat, 3 Jan 2026 20:59:46 +0800
Message-ID: <tencent_6F01BD6B827FDAAE463899C295B5D06BD20A@qq.com> (raw)
In-Reply-To: <DFETWXBT76FQ.30B38CDVMGS8P@serwin.dev>
> On Jan 3, 2026, at 16:59, Marcin Serwin via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> wrote:
>
> On Sat Jan 3, 2026 at 8:12 AM CET, Gyan Doshi via ffmpeg-devel wrote:
>>>> Migrates the FFplay media player to the new SDL version using the
>>>> official tutorial at https://wiki.libsdl.org/SDL3/README-migration.
>>>>
>>> I've also considered the issue of supporting SDL3. The challenge is
>>> how to maintain support for both SDL2 and SDL3 while avoiding a
>>> codebase cluttered with conditional compilation, which would be
>>> difficult to maintain.
>>
>> Support for SDL1 was dropped on the same day as SDL2 support was added.
>
> Most of the changes are renames so perhaps it could be possible to make
> a localized block with `#define`s to minimize the number of conditional
> compilation macros throughout the logic. That being said I hoped for doing it
> the same way as SDL 1->2 migration.
>
>> What are the relevant improvements in SDL3 as far as current ffplay.c is
>> concerned?
>
> This is mostly code hygiene as SDL3 has cleaner and more consistent API. I'm not
> aware of any functional changes between it and just using sdl2-compat.
>
> One possible future improvement is utilizing the new GPU API to simplify the
> Vulkan renderer code. Or perhaps it can be removed entirely in favor of setting
> SDL_HINT_RENDER_DRIVER to "vulkan".
The ffplay vulkan renderer is focus on hardware decoding interoperation and better
colorspace support. I don't think SDL3 can replace it directly.
>
> --
> Best regards,
> Marcin Serwin
> _______________________________________________
> ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
> To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next prev parent reply other threads:[~2026-01-03 13:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-02 22:41 [FFmpeg-devel] " Marcin Serwin via ffmpeg-devel
2026-01-03 4:41 ` [FFmpeg-devel] " Michael Niedermayer via ffmpeg-devel
2026-01-03 8:46 ` Marcin Serwin via ffmpeg-devel
2026-01-03 4:50 ` Gyan Doshi via ffmpeg-devel
2026-01-03 8:48 ` Marcin Serwin via ffmpeg-devel
2026-01-03 13:13 ` Nicolas George via ffmpeg-devel
2026-01-03 13:59 ` Neal Gompa via ffmpeg-devel
2026-01-03 14:29 ` Nicolas George via ffmpeg-devel
2026-01-03 5:40 ` Zhao Zhili via ffmpeg-devel
2026-01-03 7:12 ` Gyan Doshi via ffmpeg-devel
2026-01-03 8:59 ` Marcin Serwin via ffmpeg-devel
2026-01-03 12:59 ` Zhao Zhili via ffmpeg-devel [this message]
2026-01-03 13:12 ` Nicolas George via ffmpeg-devel
2026-01-03 15:14 ` Zhao Zhili via ffmpeg-devel
2026-01-03 15:16 ` Nicolas George via ffmpeg-devel
2026-01-03 15:39 ` Zhao Zhili via ffmpeg-devel
2026-01-03 15:50 ` Nicolas George 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=tencent_6F01BD6B827FDAAE463899C295B5D06BD20A@qq.com \
--to=ffmpeg-devel@ffmpeg.org \
--cc=marcin@serwin.dev \
--cc=quinkblack@foxmail.com \
/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