[Mplayer-advusers] winx/wnv1 win32 codec
compn
tempn at twmi.rr.com
Tue Jun 29 17:07:27 CEST 2004
> On 2004.06.28 16:16, compn wrote:
> > a user found this codec was used by his tv capture card
> > but the codec is not important to him, and i have not seen it
> > in the wild. only one codec init's ok, but it does not work
> > there are 2 codecs in the folder, wnv1 and winx.
> >
> > uploaded to /incoming/winxcodec/
> >
> > Movplay1.dll movwinx.dll winxplyr.inf wnvwinx.dll
> > codecs.conf.txt winx-codec.avi wnv1-codec.avi
> >
> > videocodec winx
> > info "winx codec"
> > status buggy
> > fourcc WINX
> > ; fourcc wnv1
> > ; format 0x584E4957 ;winx
> > ; format 0x31564E57 ;wnv1
> > ; dll "Movplay1.dll"
> > ; dll "movwinx.dll"
> > driver vfw
> > dll "wnvwinx.dll"
>
> Compn, you were almost there (yeah, the error message could have been
> more informative). You forgot the output format.
> Use this entry in codecs.conf to get winx working
>
> videocodec winx
> info "winx codec"
> status buggy
> fourcc WINX
> driver vfw
> dll "wnvwinx.dll"
> out BGR24
>
> The codec support many output formats, like BGR32,BGR24,BGR16,IYUV and
> probably others i didn't test. You can add them all to the out line
>
so then it works for you? here i get this error.
C:\Documents and Settings\resu\Desktop>mplayer winx-codec.avi -v -frames 10
MPlayer dev-CVS-040527-20:53-3.3.1 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium MMX P55C 234.4 MHz (Family: 5, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directo
ry
Reading config file C:/programs/mplayer/mplayer/config
Reading C:/programs/mplayer/mplayer/codecs.conf: 64 audio & 171 video codecs
CommandLine: 'winx-codec.avi' '-v' '-frames' '10'
Font c:\programs\mplayer\font-arial-18-iso-8859-1\font.desc loaded successfully!
(206 chars)
Using MMX Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> 'C:/programs/mplayer/mplayer/input.conf'
Parsing input config file C:/programs/mplayer/mplayer/input.conf
Input config file C:/programs/mplayer/mplayer/input.conf parsed: 54 binds
get_path('winx-codec.avi.conf') -> 'C:/programs/mplayer/mplayer/winx-codec.avi.c
onf'
Playing winx-codec.avi.
WINSOCK2 init: 0
[file] File size is 593920 bytes
STREAM: [file] winx-codec.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x2284
======= AVI Header =======
us/frame: 66665 (fps=15.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 202 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 160 x 120
==========================
list_end=0x10F4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: WINX (584E4957)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1000000/66665 = 15.000
Start: 0 Len: 202
Suggested BufferSize: 16380
Quality -1
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 160
biHeight 120
biPlanes 1
biBitCount 24
biCompression 1481525591='WINX'
biSizeImage 38400
===========================
list_end=0x2178
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 11025/1 = 11025.000
Start: 0 Len: 146912
Suggested BufferSize: 16376
Quality -1
Sample size: 1
==========================
found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 11025
avg byte/sec: 11025
Block align: 1
bits/sample: 8
cbSize: 0
===========================
list_end=0x2284
AVI: dmlh found (size=248) (total_frames=202)
list_end=0x90108
Found movie at 0x280C - 0x90108
Reading INDEX block, 211 chunks for 202 frames (fpos=00090110)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x3B10)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=1.467 a_pos=0 (0.000)
AVI video size=430072 (202) audio size=146912 (146912)
VIDEO: [WINX] 160x120 24bpp 15.000 fps 255.5 kbps (31.2 kbyte/s)
[V] filefmt:3 fourcc:0x584E4957 size:160x120 fps:15.00 ftime:=0.0667
get_path('sub/') -> 'C:/programs/mplayer/mplayer/sub/'
get_path('default.sub') -> 'C:/programs/mplayer/mplayer/default.sub'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 11025 Hz, 1 ch, 8 bit (0x8), ratio: 11025->11025 (88.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>13 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12 supported
<vo_directx><FORMAT OVERLAY>1 I420 not supported
<vo_directx><FORMAT OVERLAY>2 IYUV not supported
<vo_directx><FORMAT OVERLAY>3 YVU9 supported
<vo_directx><FORMAT OVERLAY>4 YUY2 supported
<vo_directx><FORMAT OVERLAY>5 UYVY supported
<vo_directx><FORMAT OVERLAY>6 RGB15 not supported
<vo_directx><FORMAT OVERLAY>7 BGR15 not supported
<vo_directx><FORMAT OVERLAY>8 RGB16 not supported
<vo_directx><FORMAT OVERLAY>9 BGR16 not supported
<vo_directx><FORMAT OVERLAY>10 RGB24 not supported
<vo_directx><FORMAT OVERLAY>11 BGR24 not supported
<vo_directx><FORMAT OVERLAY>12 RGB32 not supported
<vo_directx><FORMAT OVERLAY>13 BGR32 not supported
<vo_directx><INFO>Your card supports 4 of 14 overlayformats
<vo_directx><INFO>can mirror up down
<vo_directx><INFO>hardware supports overlay
==========================================================================
Opening video decoder: [vfw] Win32/VfW video codecs
======= Win32 (VFW) VIDEO Codec init =======
Loaded DLL driver wnvwinx.dll
ICDecompressGetFormatSize ret: 40
ICDecompressGetFormat OK
VDec: vo config request - 160 x 120 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
Trying filter chain: vo
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
VDec: using BGR 24-bit as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (160x120->160x120,flags=0,'MPlayer',0x42475218)
SwScaler: using unscaled BGR 24-bit -> Planar YV12 special converter
REQ: flags=0x417 req=0x0
VO: [directx] 160x120 => 160x120 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer at freenet.de>
<vo_directx><INFO>using singlebuffer overlay
ICDecompressQuery failed: Error -2
ICDecompressBegin failed: Error -2
Input format:
======= VIDEO Format ======
biSize 40
biWidth 160
biHeight 120
biPlanes 1
biBitCount 24
biCompression 1481525591='WINX'
biSizeImage 38400
===========================
Output format:
======= VIDEO Format ======
biSize 40
biWidth 160
biHeight -120
biPlanes 1
biBitCount 24
biCompression 0=''
biSizeImage 57600
===========================
INFO: Win32 video codec init OK!
Selected video codec: [winx] vfm:vfw (winx codec)
==========================================================================
Checking audio filter chain for 11025Hz/1ch/8bit -> 11025Hz/2ch/8bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=11025Hz, nch = 1, format = 0x00000003 and bps =
1
AF_pre: af format: 1 bps, 1 ch, 11025 hz, little endian unsigned int
AF_pre: 11025Hz 1ch Unsigned 8-bit
ao_win32: Samplerate:11025Hz Channels:2 Format:Unsigned 8-bit
ao_win32: Buffersize:2048
AO: [win32] 11025Hz 2ch Unsigned 8-bit (1 bps)
AO: Description: Windows waveOut audio output
AO: Author: Sascha Sommer <saschasommer at freenet.de>
Building audio filter chain for 11025Hz/1ch/8bit -> 11025Hz/2ch/8bit...
[dummy] Was reinitialized, rate=11025Hz, nch = 1, format = 0x00000003 and bps =
1
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=11025Hz, nch = 1, format = 0x00000003 and bps =
1
Starting playback...
[libaf] Reallocating memory in module channels, old len = 0, new len = 65535
*** [scale] Allocating mp_image_t, 160x120x24bpp BGR packed, 57600 bytes
Error decompressing frame, err=-4
Error decompressing frame, err=-4 0.000 1/ 1 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.003 2/ 2 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 -0.001 3/ 3 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.005 4/ 4 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.006 5/ 5 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.001 6/ 6 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.007 7/ 7 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.007 8/ 8 0% 0% 0.0% 0 0 0%
Error decompressing frame, err=-4 0.001 9/ 9 12% 0% 6.2% 0 0 0%
EOF code: 1 0.6 A-V: 0.050 ct: 0.006 10/ 10 12% 0% 5.5% 0 0 0%
Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter channels
uninit audio: pcm
uninit video: vfw
DEMUXER: freeing demuxer at 01ED2008
WINSOCK2 uninit
waveOut device closed
buffer memory freed
Exiting... (End of file)
using directx or vo gl2, tested on another sys too, win32 problem maybe?
> About wnv1, looks like you need a different dll to decode it. This one
> strangely accept the fourcc, but then returns a zero length
> BITMAPINFOHEADER structure when queried for decompressed format
> (ICDecompressFormatSize), and that causes a sig11 later when
> initializing vo.
> BTW, we should probably check for it and report an error instead of
> sig11,
>
> Please ask hin if he have other dlls (something like wnvwnv1.dll could
> be the right one).
>
i got those dll's from the companies' website. i should have included it in
the email but i forgot. google winx codec gives you company site ...
http://support.winnov.com/general_info/codec/wnvx.htm
i'll ask the guy, i dont think there are other dll tho...
> Ciao,
> Roberto
thanks for testing!
-compn
More information about the MPlayer-advusers
mailing list