[Libav-user] which function has the function of pixel format conversion

2015-09-07 Thread qw
Hi, There are too many ffmpeg functions. I want to find one function, which can convert one pixel format into another, and the argument is AVFrame. Does ffmpeg has this kind of function? Thanks! B.R. Andrew___ Libav-user mailing list

Re: [Libav-user] which function has the function of pixel format conversion

2015-09-07 Thread Paul B Mahol
Dana 7. 9. 2015. 10:32 osoba "qw" napisala je: > > Hi, > > There are too many ffmpeg functions. I want to find one function, which can convert one pixel format into another, and the argument is AVFrame. Does ffmpeg has this kind of function? Unfortunately no, there is swscale

[Libav-user] which function has the function of pixel format conversion

2015-09-07 Thread qw
Hi, There are too many ffmpeg functions. I want to find one function, which can convert one pixel format into another for video data, and the argument is AVFrame. Does ffmpeg has this kind of function? Thanks! B.R. Andrew ___ Libav-user

Re: [Libav-user] which function has the function of pixel format conversion

2015-09-07 Thread Talgorn FX - Google Mail
Hi, There is no function with the parameters you suggest. You need first of all to set a SwsContext with desired parameters and then call sws_scale as show in the example below. Good luck. static AVFrame* RGBtoYUV(AVFrame *frame, AVCodecContext *c){ int ret; AVFrame

Re: [Libav-user] which function has the function of pixel format conversion

2015-09-07 Thread Carl Eugen Hoyos
qw writes: > There are too many ffmpeg functions. I want to find > one function, which can convert one pixel format > into another, and the argument is AVFrame. Does > ffmpeg has this kind of function? Sounds to me as if you are searching for the scale filter. Carl Eugen