Opened 6 years ago

Closed 6 years ago

#4662 closed enhancement (fixed)

swscale support for Y416 as a pixel format

Reported by: rmk Owned by:
Priority: wish Component: swscale
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Currently Y416 is not supported as a pixel format. An example of where this is required is feeding the native Apple Prores 4444 codec with input data.

Change History (8)

comment:1 by Elon Musk, 6 years ago

Are there actual samples? I think mpc-hc supports Y416.

comment:2 by compn, 6 years ago

it might be hard for us developers to produce Y416 prores files, could you create a sample for us?

also full ffmpeg output would be nice for you to report.
many problems are due to using old/outdated or bad forks of ffmpeg.

comment:3 by Carl Eugen Hoyos, 6 years ago

Resolution: wontfix
Status: newclosed

From FFmpeg pov, yuv444p16 == Y416, no packed format will be added unless there is a usecase with a very good explanation.

comment:4 by rmk, 6 years ago

The reason is that it is not possible to create media buffers with libavcodec that can be fed to the Apple encoder. Libavcocec being a general purpose library I thought it is also a use case to use libavcodec in a heterogenous (i.e. non-ffmpeg-only) set-up. Is there a specific reason for not supporting this if someone is willing to implement it?

comment:5 by Carl Eugen Hoyos, 6 years ago

Resolution: wontfix
Status: closedreopened
Version: unspecifiedgit-master

I would expect that a patch won't be rejected as long as it is clean and sufficiently optimised.

Can you explain the issues you have with FFmpeg's encoder?

comment:6 by Carl Eugen Hoyos, 6 years ago

How does Apple call the required colour space in its documentation?

comment:7 by Elon Musk, 6 years ago

kCVPixelFormatType_4444AYpCbCr16 = 'y416', /* Component Y'CbCrA 16-bit 4:4:4:4, ordered A Y' Cb Cr, full range alpha, video range Y'CbCr, 16-bit little-endian samples. */

comment:8 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.