[MPlayer-users] Bug? AVS source not reporting YUY2 file correctly?

Nicolas Hesler nicolas.hesler at sheridanc.on.ca
Thu Jun 19 22:09:49 CEST 2008


Nicolas Hesler wrote:
> Reimar Döffinger wrote:
>   
>> MPlayer supports only YV12 as input for avs and will append the
>> appropriate conversion filter.
>>
>>   
>>     
>
>     * Is that by design?
>     * Why is AVS support in ffmpeg different from Mplayer?
>     * It doesn't seem to make mention of a color space conversion in the
>       output. Am I missing something?
>
> mplayer -msglevel all=9 test2.avs -vo directx:noaccel
>
> MPlayer Sherpya-SVN-r26924-4.2.3 (C) 2000-2008 MPlayer Team
> CPU: Intel(R) Xeon(TM) CPU 3.73GHz (Family: 15, Model: 6, Stepping: 4)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> Adding file test2.avs
> this_opt = option: vo
> Checking vo=directx:noaccel
> Config pushed level is now 2
> Config pushed level is now 3
> Setting vo=directx:noaccel
> get_path('codecs.conf') -> '/mplayer/codecs.conf'
> Reading /mplayer/codecs.conf: Can't open '/mplayer/codecs.conf': No such 
> file or directory
> Reading /usr/etc/mplayer/codecs.conf: Can't open 
> '/usr/etc/mplayer/codecs.conf':
>  No such file or directory
> Using built-in default codecs.conf.
> Configuration: --prefix=/usr --enable-static --enable-md5sum 
> --enable-menu --dis
> able-vidix-internal --disable-sdl --enable-dvdread 
> --enable-dvdread-internal --e
> nable-libdvdcss-internal --enable-caca --enable-gl --enable-freetype 
> --enable-pn
> g --enable-jpeg --enable-gif --enable-tga --enable-mad --enable-tv 
> --disable-dvb
>  --disable-dvbhead --enable-libamr_nb --enable-libamr_wb 
> --with-extraincdir=/c/W
> ork/mplayer/live --enable-matrixview --enable-runtime-cpudetection
> CommandLine: '-msglevel' 'all=9' 'test2.avs' '-vo' 'directx:noaccel'
> init_freetype
> get_path('font/font.desc') -> '/mplayer/font/font.desc'
> font: can't open file: /mplayer/font/font.desc
> font: can't open file: /usr/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> get_path('fonts') -> '/mplayer/fonts'
> Using Windows native timing
> get_path('input.conf') -> '/mplayer/input.conf'
> Parsing input config file /mplayer/input.conf
> Input config file /mplayer/input.conf parsed: 89 binds
> get_path('test2.avs.conf') -> '/mplayer/test2.avs.conf'
>
> [[[init getch2]]]
>
> Playing test2.avs.
> get_path('sub/') -> '/mplayer/sub/'
> WINSOCK2 init: 0
> WINSOCK2 init: 0
> [file] File size is 21 bytes
> STREAM: [file] test2.avs
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> s->pos=0  newpos=0  new_bufpos=0  buflen=0
> DEMUXER: freeing demuxer at 0p1a1b6d0
> s->pos=0  newpos=0  new_bufpos=0  buflen=0
> DEMUXER: freeing demuxer at 0p1a12e80
> Checking for YUV4MPEG2
> DEMUXER: freeing demuxer at 0p1a12e80
> ASF_check: not ASF guid!
> DEMUXER: freeing demuxer at 0p1a12e80
> s->pos=0  newpos=0  new_bufpos=0  buflen=0
> Checking for NuppelVideo
> DEMUXER: freeing demuxer at 0p1a12e80
> Checking for REAL
> DEMUXER: freeing demuxer at 0p1a12e80
> Checking for SMJPEG
> DEMUXER: freeing demuxer at 0p1a12e80
> [mkv] no head found
> DEMUXER: freeing demuxer at 0p1a12e80
> DEMUXER: freeing demuxer at 0p1a12e80
> DEMUXER: freeing demuxer at 0p1a12e80
> DEMUXER: freeing demuxer at 0p1a12e80
> Searching demuxer type for filename test2.avs ext: .avs
> Trying demuxer 38 based on filename extension
> s->pos=0  newpos=0  new_bufpos=0  buflen=0
> AVS: avs_check_file - attempting to open file test2.avs
> AVS: Init Ok
> AVS file format detected.
> AVS: demux_open_avs()
> ==> Found video stream: 0
> VIDEO:  [YV12]  720x480  12bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
> [V] filefmt:38  fourcc:0x32315659  size:720x480  fps:24.000  ftime:=0.0417
> get_path('sub/') -> '/mplayer/sub/'
> <vo_directx><INFO>disabled overlay
> <vo_directx><INFO>Initing DirectDraw
> <vo_directx><INFO>DirectDraw Initialized
> <vo_directx><INFO>initial mplayer windows created
> <vo_directx><INFO>checking primary surface
> <vo_directx><INFO>primary surface created
> <vo_directx><FORMAT PRIMARY>14 BGR32 supported
> <vo_directx><INFO>using backpuffer
> <vo_directx><INFO>preinit succesfully finished
> ==========================================================================
> Opening video decoder: [raw] RAW Uncompressed Video
> VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
> Trying filter chain: vo
> vo_debug: query(Planar YV12) returned 0x0 (i=0)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> SwScale params: -1 x -1 (-1=no scaling)
> Trying filter chain: scale vo
> scale: query(Planar 444P) -> 0
> scale: query(Planar 422P) -> 0
> scale: query(Planar YV12) -> 0
> scale: query(Planar I420) -> 0
> scale: query(Planar IYUV) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> scale: query(Planar 411P) -> 0
> scale: query(Planar NV12) -> 0
> scale: query(Planar NV21) -> 0
> scale: query(Packed YUY2) -> 0
> scale: query(Packed UYVY) -> 0
> scale: query(BGRA) -> 1
> scale: query(RGBA) -> 0
> scale: query(BGR 24-bit) -> 0
> scale: query(RGB 24-bit) -> 0
> scale: query(BGR 16-bit) -> 0
> scale: query(RGB 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(BGR 4-bit per byte) -> 0
> scale: query(RGB 4-bit per byte) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> vo_debug: query(Planar YV12) returned 0x445 (i=0)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is undefined - no prescaling applied.
> VO Config (720x480->720x480,flags=0,'MPlayer',0x32315659)
> scale: query(Planar 444P) -> 0
> scale: query(Planar 422P) -> 0
> scale: query(Planar YV12) -> 0
> scale: query(Planar I420) -> 0
> scale: query(Planar IYUV) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> scale: query(Planar 411P) -> 0
> scale: query(Planar NV12) -> 0
> scale: query(Planar NV21) -> 0
> scale: query(Packed YUY2) -> 0
> scale: query(Packed UYVY) -> 0
> scale: query(BGRA) -> 1
> scale: query(RGBA) -> 0
> scale: query(BGR 24-bit) -> 0
> scale: query(RGB 24-bit) -> 0
> scale: query(BGR 16-bit) -> 0
> scale: query(RGB 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(BGR 4-bit per byte) -> 0
> scale: query(RGB 4-bit per byte) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> SwScale: scaling 720x480 Planar YV12 to 720x480 BGRA
> [swscaler @ 00ECA6E4]using unscaled yuv420p -> rgb32 special converter
> REQ: flags=0x5  req=0x0
> VO: [directx] 720x480 => 720x480 BGRA
> VO: Description: Directx DDraw YUV/RGB/BGR renderer
> VO: Author: Sascha Sommer <saschasommer at freenet.de>
> <vo_directx><INFO>overlay surfaces released
> <vo_directx><INFO>primary surface created
> <vo_directx><INFO>backbuffer created
> <vo_directx><INFO>back surface created
> <vo_directx><INFO>clipper succesfully created
> Selected video codec: [rawyv12] vfm: raw (RAW YV12)
> ==========================================================================
> Audio: no sound
> Freeing 0 unused audio chunks.
> Starting playback...
> *** [scale] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
> (imgfmt: 32315659, planes: 0,0,0 strides: 0,0,0, chroma: 360x240, shift: 
> h:1,v:1
> )
> *** [vo] Allocating mp_image_t, 720x480x32bpp BGR packed, 1382400 bytes
> (imgfmt: 42475220, planes: 0p28c0020,0,0 strides: 2880,0,0, chroma: 0x0, 
> shift:
> h:0,v:0)
> get_path('subfont.ttf') -> '/mplayer/subfont.ttf'
> Unicode font: 2806 glyphs.
> get_path('subfont.ttf') -> '/mplayer/subfont.ttf'
> Unicode font: 2806 glyphs.
> OSD chg: 6  V: no  pb:-1
> OSD chg: 3  V: no  pb:-1
> OSD chg: 2  V: no  pb:-1
> ds_fill_buffer: EOF reached (stream: video)
> EOF code: 1
>
>
> *** uninit(0xA49)
> Uninit video: raw
> DEMUXER: freeing demuxer at 0p1a12e80
> AVS: Unloading avisynth.dll
> DEMUXER: freeing sh_video at 0p1a27b80
> WINSOCK2 uninit
> <vo_directx><INFO>clipper released
> <vo_directx><INFO>back surface released
> <vo_directx><INFO>primary released
> <vo_directx><INFO>window destroyed
> <vo_directx><INFO>GDI resources deleted
> <vo_directx><INFO>directdrawobject released
> <vo_directx><INFO>ddraw.dll freed
> <vo_directx><INFO>uninitialized
>
> [[[uninit getch2]]]
> Config poped level=2
> Config poped level=1
>
> *** uninit(0x80)
>
> Exiting... (End of file)
> max framesize was 518400 bytes
>
>   

Anybody? Should I be asking this question somewhere else?




More information about the MPlayer-users mailing list