[MPlayer-users] Re IYUV fourcc

Francois Visagie fvisagie at za.spescom.com
Wed Sep 12 19:46:06 CEST 2007


Hi,

With reference to:

---
[MPlayer-users] IYUV fourcc
Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
<mailto:mplayer-users%40mplayerhq.hu?Subject=%5BMPlayer-users%5D%20IYUV%20fo
urcc&In-Reply-To=20070514170832.GA25155%401und1.de> 
Tue May 15 08:09:32 CEST 2007 
*	Previous message: [MPlayer-users] IYUV fourcc  <067254.html> 
*	Next message: [MPlayer-users] IYUV fourcc  <067282.html> 
*	Messages sorted by: [ date ] <date.html>  [ thread ] <thread.html>
[ subject ] <subject.html>  [ author ] <author.html>  

Hello,
On Mon, May 14, 2007 at 07:08:32PM +0200, Reimar D?ffinger wrote:
> On Mon, May 14, 2007 at 09:31:47AM -0700, Larry Reznick wrote:
[...]
> > Let me know what you discover.
> 
> IYUV to YV12 conversion is missing, but that is trivial (just need to
> exchange two pointers).
> No idea where to best fix it yet.

Unfortunately your sample consists only of black frames so I can't
check if the colours are correct, but it plays with attached patch.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: etc/codecs.conf
===================================================================
--- etc/codecs.conf	(revision 23315)
+++ etc/codecs.conf	(working copy)
@@ -2263,7 +2277,7 @@
   format 0x20776172
   fourcc i420,I420
   fourcc IYUV,iyuv
-  out I420,IYUV
+  out I420,IYUV,YV12
 
 videocodec rawyvu9
   info "RAW YVU9"
Index: libmpcodecs/vd_raw.c
===================================================================
--- libmpcodecs/vd_raw.c	(revision 23316)
+++ libmpcodecs/vd_raw.c	(working copy)
@@ -22,6 +22,7 @@
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
 	if (*(int *)arg == format) return CONTROL_TRUE;
+	if (*(int *)arg == IMGFMT_YV12 && format == IMGFMT_IYUV) return
CONTROL_TRUE;
 	return CONTROL_FALSE;
     }
     return CONTROL_UNKNOWN;
---


I ran into the same problem and have some more information that may help
you. Playing back raw IYUV ASF files worked fine in 1.0pre8-3.4.2, and it
seems the problem occurred in the software scaler subsequently. I can send
you sample video files, or you can make your own by encoding to Uncompressed
with Windows Media Encoder (I was making screen captures but I don't think
it matters).

Following are the two output listings (on Windows) for 1.0pre8-3.4.2 and
1.0rc1-3.4.2 respectively. I don't have the facilities to build your patch
for Windows, so if somebody could direct me to a build containing it, I
would be overjoyed.

1.0pre8-3.4.2
----------------
MPlayer 1.0pre8-3.4.2 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: 13,
Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.


Playing capture.wmv.
ASF file format detected.
VIDEO:  [IYUV]  800x600  12bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [pp=hb/vb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 800 x 600 (preferred colorspace: Planar IYUV)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar IYUV as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
VO: [directx] 800x600 => 800x600 Planar YV12  [fs]
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Audio: no sound
Starting playback...

Exiting... (Quit)

1.0rc1-3.4.2
---------------
MPlayer 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: 13,
Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.


Playing capture.wmv.
ASF file format detected.
VIDEO:  [IYUV]  800x600  12bpp  5.000 fps    0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [pp=hb/vb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 800 x 600 (preferred colorspace: Planar IYUV)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar IYUV as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
Unsupported format Planar IYUV
swScaler: Unknown format is not supported as input format
Couldn't init SwScaler for this setup
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x56555949.
Read DOCS/HTML/en/codecs.html!
==========================================================================


Exiting... (End of file)

Kind regards,
Francois





This e-mail is sent on the Spescom Terms and Conditions 
that can be accessed by clicking on this link http://www.spescom.com/email.html



More information about the MPlayer-users mailing list