Opened 8 weeks ago

Closed 8 weeks ago

#7508 closed enhancement (worksforme)

split filter: lack of hwaccel support

Reported by: msiders 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 Changed 8 weeks ago by oromit

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 Changed 8 weeks ago by jkqxz

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 Changed 8 weeks ago by msiders

Hi,

It seems to work. Thank you!

comment:4 Changed 8 weeks ago by msiders

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.