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[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE };
if ((ret = av_opt_set_int_list(buffersink_ctx, "pix_fmts", pix_fmts,


I guess I should've looked more carefully. Thank you.




Confidentiality Message: This communication (including any files
transmitted with it) is intended solely for the person or entity to
whom it is addressed, and may contain confidential or privileged
information.


Please remove this from mails sent to a public mailing list.

Carl Eugen
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user



Cheers,

--
Philippe Gorley
Free Software Consultant | Montréal, Qc
Savoir-faire Linux
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


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 = av_opt_set_int_list(buffersink_ctx, "pix_fmts", pix_fmts,

> Confidentiality Message: This communication (including any files
> transmitted with it) is intended solely for the person or entity to
> whom it is addressed, and may contain confidential or privileged
> information.

Please remove this from mails sent to a public mailing list.

Carl Eugen
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user