[FFmpeg-devel] How can I determine color_range from a filter?

Larry Robinson silver-dad
Fri Jan 7 01:06:33 CET 2011

Let me know what the (few others) are and I will try to add them :-) .

Larry Robinson

On 1/6/2011 2:51 PM, Michael Niedermayer wrote:
> On Thu, Jan 06, 2011 at 02:22:11PM -0800, Larry Robinson wrote:
>> I am writing a filter which will write time stamps on the video frames
>> to help with editing, by alpha-blending the digits onto the frame.
>> In libavutil/pixfmt.h I see:
>> PIX_FMT_YUVJ444P,  ///<  planar YUV 4:4:4, 24bpp, full scale (JPEG),
>> deprecated in favor of PIX_FMT_YUV444P and setting color_range.
>> This implies that for PIX_FMT_YUV444P (and a couple of others used by
>> JPEG) I need to look at color_range to correctly write the pixels.  As
>> far as I can tell (after 6 hours of study) there is no way to get from
>> an AVFilterLink (which I have in the filter) to the AVCodecContext where
>> color_range resides.  Any help would be appreciated!
> We (or you) need to add color_range (and a few others) to where pix_fmt is
> in avfilter approximately
> a filter could also change color_range so AVCodecContext is not enough even
> if it could be reached
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> I have never wished to cater to the crowd; for what I know they do not
> approve, and what they approve I do not know. -- Epicurus
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list