[MPlayer-dev-eng] mjpeg yuv422 output from mencoder/mplayer

Baptiste Coudurier baptiste.coudurier at smartjog.com
Mon Oct 2 16:37:22 CEST 2006


Hi

Michael Niedermayer wrote:
>>>>> [...]
>>>> Tried to. I have at least something working in progressive. Problem is 
>>>> that mpegvideo.c is really hardcoded to 4:2:0 and since DCT on jpeg is 
>>>> done on 8x8 mb it is quite hard to work around that.
>>> hmm lavc mpeg2 video supports 422 encoding over mpegvideo.c ...
>>>
>>> [...]
>> Yes. Mpeg2 macroblocks are orderded right out of encode_mb_internal. 
>> Output is 8 blocks: 4 luma blocks, 4 chroma blocks in 4:2:2, and stored 
>> that way.
>>
>> In mjpeg_encode_mb, you will have 8 blocks while they must be coded 2 
>> luma, 2 chroma, in 4:2:2 and 4 others will be on the next line in the 
>> bitstream.
> 
> what is the problem with coding them like in mpeg2, IIRC the jpeg syntax
> is flexible enough ...
> 
> [...]
> 

Indeed, I dig further and sent a patch to ffmpeg-devel. Check it out.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312



More information about the MPlayer-dev-eng mailing list