Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [RFC PATCH 0/2] fftools/ffplay: Add hardware decoding and rendering support
@ 2023-10-15 13:05 Zhao Zhili
  0 siblings, 0 replies; only message in thread
From: Zhao Zhili @ 2023-10-15 13:05 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Zhao Zhili

From: Zhao Zhili <zhilizhao@tencent.com>

Since we have hwaccel vulkan and vulkan decoders, now it's possible to
add a renderer to ffplay to interoperate with multiple hardware decoders.
This is a good opportinuity to add hardware decoding support to ffplay.
I'm not meant to reinvent the wheel and duplicate the work of mpv or VLC,
but enhance a simple test tool.

The following patches

1. With minimum effort to add hardware decoding and rendering support.
2. Do render with libplacebo.
3. Works with cuda/nvdec, vaapi and vulkan decoder without CPU copy.

   I have tested cuda and vulkan decoders. I don't have devices with vaapi, it
   should work I guess. For example,
	ffplay -hwaccel cuda -enable_vulkan 8k.mp4

4. It can fallback to CPU copy but with less values.

Known issues:
1. Doesn't take filters into consideration yet.
2. Doesn't suppport subtitles without subtitle filter.

Zhao Zhili (2):
  fftools/ffplay: add vulkan renderer via libplacebo
  fftools/ffplay: add hwaccel decoding support

 configure                 |   2 +-
 fftools/Makefile          |   2 +
 fftools/ffplay.c          |  75 +++++++-
 fftools/ffplay_renderer.c | 364 ++++++++++++++++++++++++++++++++++++++
 fftools/ffplay_renderer.h |  36 ++++
 5 files changed, 473 insertions(+), 6 deletions(-)
 create mode 100644 fftools/ffplay_renderer.c
 create mode 100644 fftools/ffplay_renderer.h

-- 
2.34.1

_______________________________________________
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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-15 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15 13:05 [FFmpeg-devel] [RFC PATCH 0/2] fftools/ffplay: Add hardware decoding and rendering support Zhao Zhili

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