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
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
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
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
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