[MPlayer-users] -vf pullup with -vo jpeg

D Richard Felker III dalias at aerifal.cx
Sun Dec 5 21:45:01 CET 2004


On Sun, Dec 05, 2004 at 07:28:03PM +0100, Ivo wrote:
> On Sunday 05 December 2004 02:44, D Richard Felker III wrote:
> > On Sat, Dec 04, 2004 at 01:52:01PM -0800, RC wrote:
> > > On Sat, 4 Dec 2004 15:05:45 -0500
> > >
> > > D Richard Felker III <dalias at aerifal.cx> wrote:
> > > > hmm, is vo_jpeg stupid about what input formats it wants?
> > >
> > > It's RGB24-only.  I'd say the real problem is that mplayer isn't
> > > very smart about where it inserts scale into the vf chain.
> >
> > that's one problem, but converting to rgb for jpeg saving is nothing
> > short of COMPLETELY IDIOTIC!
> 
> The problem is that libjpeg wants its data as YUV 444 _packed_, which is not 
> supported by MPlayer. In that case, vo_jpeg should maintain its own local 
> copy of the image and convert every planar YUV format to that internally, 
> which might be considered even more idiotic.

ok, a couple ideas:

1. accept only yuv444 planar and convert to packed in the vo driver.
   slow, but correct.

2. add yuv444 packed support to swscaler/mplayer (idiotic but fast).

3. remove libjpeg support and use libavcodec to encode jpegs. several
   times faster, accepts sane colorspaces, and removes a useless
   dependency.

i'm all in favor of 3 if anyone feels like doing it!

rich





More information about the MPlayer-users mailing list