[MPlayer-users] Re: can't get zoran output to work

Phil Bertram phil.bertram at clear.net.nz
Sun Aug 27 04:53:40 CEST 2006


On Sunday 27 August 2006 10:37 am, Karolina Lindqvist wrote:
> lördag 26 augusti 2006 01:25 skrev Phil Bertram:
> > Unfortunately using mjpeg.c from pre7 with svn (today) results in a build
> > error for me.
>
> It requires some other patches to compile. But today I have found a patch
> that hopefully will fix the problem. It is not much tested; I will do more
> testing tomorrow, but if you feel experimental you can try it.

This patch worked for me with ......
mplayer -vo zr my.vob  which is great. What a difference a single line of code 
can make.
My Duron 850 mHz with 512 MB RAM uses 95% CPU to play 720x576 mpeg2 (DVD) and 
720x576 Raw DV.

356x288 mpeg4 is trivial at 20% CPU

mplayer -vo zr2 -vf zrmjpeg results in playback which is progress, albeit the 
playback flickers. CPU use seems to be only marginally less.

Well done, digging up the patch.

Phil
>
> Karolina
>
>
>
> *** /u/src/mplayer/libvo/jpeg_enc.c     2006-08-26 20:25:17.000000000 +0200
> --- jpeg_enc.c  2006-08-26 23:55:37.000000000 +0200
> ***************
> *** 351,356 ****
> --- 351,358 ----
>
>         /* alloc bogus avctx to keep MPV_common_init from segfaulting */
>         j->s->avctx = calloc(sizeof(*j->s->avctx), 1);
> +       /* Set up jpeg type */
> +       j->s->avctx->codec_id = CODEC_ID_MJPEG;
>
>         /* make MPV_common_init allocate important buffers, like s->block
> */ j->s->avctx->thread_count = 1;
>
>
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users



More information about the MPlayer-users mailing list