Opened 5 years ago

Closed 5 years ago

#7508 closed enhancement (worksforme)

split filter: lack of hwaccel support

Reported by: Mark Sanders Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: split, hwaccel
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

When using the -hwaccel support, if the frame is inside the GPU memory then it's impossible to use the "split" filter to duplicate the frames without downloading the frame to the main memory. So a complex hwdownad+split+hwupload is required.

This is a waste of resources, as a simple frame duplication in the CPU memory can be done without much effort.

I suggest to add this support to the "split" filter, or create a new one called "hwsplit".
Anyone interested?

Change History (4)

comment:1 by Timo R., 5 years ago

The split filter is written in such a generic way that it really should already just work.
All it does is wrap av_frame_clone, and that one already should work with hwframes.

comment:2 by jkqxz, 5 years ago

Works fine for me. Can you give a concrete example which doesn't work for you?

(For some working cases, see examples in <https://trac.ffmpeg.org/wiki/Hardware/VAAPI#Transcode>.)

comment:3 by Mark Sanders, 5 years ago

Hi,

It seems to work. Thank you!

comment:4 by Mark Sanders, 5 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.