[MPlayer-users] Uncompressed quicktime (with bad patch)

Carl Drougge mplayer at z42.net
Mon Jan 6 22:06:22 CET 2003


MPlayer fails to play back the uncompressed quicktime files produced by 
cinelerra. This patch makes it work, though I doubt this is the right way 
to do it. (I'm not familiar with the mplayer codebase)

The first added line is for uncompressed RGB, and works fine.
The second is for uncompressed YYV 4:2:0 and requires -vop swapuv to look 
right.

I can provide sample files for both these, and the other cinelerra formats 
too (a few more yuv variations), if you like.

Apply this to libmpcodecs/vd_raw.c. It's against 0.90rc2, but I suspect 
this file doesn't change much..

--- vd_raw.c.org        Thu Oct 17 23:32:35 2002
+++ vd_raw.c    Mon Jan  6 21:56:38 2003
@@ -28,6 +28,10 @@
 
 // init driver
 static int init(sh_video_t *sh){
+    if(sh->bih){
+       if(sh->bih->biCompression==0x20776172) sh->bih->biCompression=IMGFMT_RGB24;
+       if(sh->bih->biCompression==0x32317679) sh->bih->biCompression=IMGFMT_YV12;
+    }
     // set format fourcc for raw RGB:
     if(sh->bih && sh->bih->biCompression==0){  // set based on bit depth
        switch(sh->bih->biBitCount){



More information about the MPlayer-users mailing list