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

Re: [Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference

2018-04-30 Thread Carl Eugen Hoyos
2018-04-30 16:47 GMT+02:00, buff...@mailbox.org : > im trying to get the example from > https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html > running. Did you test the following? $ make doc/examples/decode_video Carl Eugen

[Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference

2018-04-30 Thread buffgix
Hi, im trying to get the example from https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html running. Im using Qt Creator (C++) with Widgets and compiled ffmpeg manually (Kubuntu 18.04.0 64 bit). Unfortunately im getting "undefined reference" errors for every avcodec function