Re: [Libav-user] Scale filter converting to grayscale

2018-04-30 Thread Philippe Gorley
On 2018-04-30 03:44 PM, Carl Eugen Hoyos wrote: 2018-04-30 21:10 GMT+02:00, Philippe Gorley : It segfaults when writing the frame. I'm expecting a yuv420p frame But you are asking the filter chain to output gray. enum AVPixelFormat pix_fmts[] = {

Re: [Libav-user] Scale filter converting to grayscale

2018-04-30 Thread Carl Eugen Hoyos
2018-04-30 21:10 GMT+02:00, Philippe Gorley : > It segfaults when writing the frame. I'm expecting a yuv420p frame But you are asking the filter chain to output gray. > enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; >if ((ret =

[Libav-user] Scale filter converting to grayscale

2018-04-30 Thread Philippe Gorley
Hi, I'm having trouble getting filters to work correctly. It creates dummy YUV frames, scales them using libavfilter, and saves the raw data to disk (heavily based on filtering_video.c). The end goal is to use libavfilter instead of implementing such things ourselves. It segfaults when