[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-users
Subject:    Re: [MPlayer-users] libmpcodec and libavcodec~~
From:       boku <boku0712 () gmail ! com>
Date:       2007-12-27 8:47:25
Message-ID: 715d90900712270047o4b3f34f9y5d7801e8b627dd39 () mail ! gmail ! com
[Download RAW message or body]

On 12/27/07, RC <cooleyr@gmail.com> wrote:
> On Thu, 27 Dec 2007 14:02:47 +0800
> boku <boku0712@gmail.com> wrote:
>
> > But what if the returned is YUV packed data such as YUV422 packed
> > data. Do I just need to config the pix_fmt to YUYV422
>
> Yes.  If the video codec outputs in a different colorspace than needed,
> -vf scale will be automatically inserted, and will do the conversion.
>
> > and save the packed buffer into AVFrame pic->data[0] then it can be
> > displayed correctly by the upper layer?
>
> I have no idea what AVFrame does, and I don't feel like reading through
> vd_ffmpeg.c right now to find out.  Perhaps it does pass the data
> through, or perhaps it doesn't.  You might be better off starting out
> with a simpler decoder, like vd_raw.
>
> I believe you need to store the YUV data into mpi->planes[], and
> also set mpi->stride[] appropriately.  I rarely need to work with
> decoders, so I'm not sure I can offer you any further help.   Perhaps
> someone else will offer some tips.
> _______________________________________________

Thank you so much. I'll take a look at the vd_raw for the handshake
among MPlayer and the internal codecs. Thanks again~

BR,
_______________________________________________
MPlayer-users mailing list
MPlayer-users@mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic