LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-08-2006, 03:46 AM   #1
aenright
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: CentOS/Fedora/RHEL/FreeBSD/HPUX/Solaris
Posts: 46

Rep: Reputation: 16
Question Compiling MPLAYER with win32 codec support.


Hello all,

I searched linuxquestions.org as well as google.com/linux for a couple of days now, and have not come up w/ a solution for my problem. I am trying to compile mplayer with support for win32 codecs ([wmv9dmo] (vfm=dmo)) so I can view wmv/avi etc. when I run the configure script without any flags, it will compile fine, when I run:

Code:
./configure --enable-gui --enable-largefiles --enable-menu --enable-win32 --with-win32libdir=/usr/lib/win32/
The configure process runs fine, but mplayer will not compile:

Code:
[root@lady MPlayer-1.0pre8]# make
./version.sh `cc -dumpversion`
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=nocona -mtune=nocona -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.  -I/usr/include/cdda    -I/usr/include/freetype2 -I/usr/include -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o mplayer.o mplayer.c
In file included from libmpdemux/dvbin.h:11,
                 from mplayer.c:117:
libmpdemux/dvb_defaults.h:73:3: warning: #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK. Ignore this if using Satellite or Cable.
mplayer.c: In function `mp_property_tv_color':
mplayer.c:2076: warning: cast from pointer to integer of different size
mplayer.c:2078: warning: cast from pointer to integer of different size
mplayer.c:2081: warning: cast from pointer to integer of different size
mplayer.c:2086: warning: cast from pointer to integer of different size
mplayer.c: In function `main':
mplayer.c:2739: warning: cast to pointer from integer of different size
mplayer.c:2775: warning: cast to pointer from integer of different size
mplayer.c:3464: warning: cast to pointer from integer of different size
mplayer.c:4790: warning: cast to pointer from integer of different size
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=nocona -mtune=nocona -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.  -I/usr/include/cdda    -I/usr/include/freetype2 -I/usr/include -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o vobsub.o vobsub.cmake -C loader
make[1]: Entering directory `/usr/local/src/MPlayer-1.0pre8/loader'
cc -I. -I.. -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=nocona -mtune=nocona -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -U_FILE_OFFSET_BITS   -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DMPLAYER -D__WINE__  -c pe_image.c
In file included from wine/winbase.h:5,
                 from pe_image.c:56:
wine/winnt.h:626:2: #error You need to define a CONTEXT for your CPU
In file included from wine/winbase.h:5,
                 from pe_image.c:56:
wine/winnt.h:629: error: syntax error before '*' token
wine/winnt.h:629: warning: data definition has no type or storage class
wine/winnt.h:755:2: #error You need to define DEFINE_REGS_ENTRYPOINT macros for your CPU
wine/winnt.h:766:3: #error You must define GET_IP for this CPU
wine/winnt.h:1022: error: syntax error before "PCONTEXT"
wine/winnt.h:1022: warning: no semicolon at end of struct or union
wine/winnt.h:1023: warning: data definition has no type or storage class
wine/winnt.h:1035: error: syntax error before "PCONTEXT"
In file included from wine/winbase.h:5,
                 from pe_image.c:56:
wine/winnt.h:1049: error: syntax error before "ExceptionInfo"
wine/winnt.h:1052: error: syntax error before "epointers"
In file included from pe_image.c:56:
wine/winbase.h:1342: error: syntax error before "CONTEXT"
wine/winbase.h:1481: error: syntax error before '*' token
In file included from pe_image.c:61:
wine/debugtools.h:67: warning: useless keyword or type name in empty declaration
wine/debugtools.h:67: warning: empty declaration
In file included from win32.h:14,
                 from pe_image.c:63:
com.h:57: warning: `__stdcall__' attribute ignored
com.h:58: warning: `__stdcall__' attribute ignored
com.h:59: warning: `__stdcall__' attribute ignored
com.h:69: warning: `__stdcall__' attribute ignored
com.h:70: warning: `__stdcall__' attribute ignored
com.h:71: warning: `__stdcall__' attribute ignored
com.h:72: warning: `__stdcall__' attribute ignored
pe_image.c: In function `dump_exports':
pe_image.c:81: warning: cast to pointer from integer of different size
pe_image.c:81: warning: cast to pointer from integer of different size
pe_image.c:83: warning: cast to pointer from integer of different size
pe_image.c:83: warning: cast to pointer from integer of different size
pe_image.c:85: warning: cast to pointer from integer of different size
pe_image.c:87: warning: cast to pointer from integer of different size
pe_image.c:92: warning: cast to pointer from integer of different size
pe_image.c:92: warning: cast from pointer to integer of different size
pe_image.c:93: warning: cast to pointer from integer of different size
pe_image.c:93: warning: cast from pointer to integer of different size
pe_image.c:94: warning: cast to pointer from integer of different size
pe_image.c:94: warning: cast from pointer to integer of different size
pe_image.c: In function `PE_FindExportedFunction':
pe_image.c:153: warning: cast to pointer from integer of different size
pe_image.c:153: warning: cast from pointer to integer of different size
pe_image.c:154: warning: cast to pointer from integer of different size
pe_image.c:154: warning: cast from pointer to integer of different size
pe_image.c:155: warning: cast to pointer from integer of different size
pe_image.c:155: warning: cast from pointer to integer of different size
pe_image.c:157: warning: cast to pointer from integer of different size
pe_image.c:157: warning: cast to pointer from integer of different size
pe_image.c:159: warning: cast to pointer from integer of different size
pe_image.c:159: warning: cast to pointer from integer of different size
pe_image.c:169: warning: cast to pointer from integer of different size
pe_image.c:169: warning: cast from pointer to integer of different size
pe_image.c:181: warning: cast to pointer from integer of different size
pe_image.c:181: warning: cast from pointer to integer of different size
pe_image.c:199: warning: cast to pointer from integer of different size
pe_image.c:199: warning: cast from pointer to integer of different size
pe_image.c:215: warning: cast to pointer from integer of different size
pe_image.c:228: warning: cast to pointer from integer of different size
pe_image.c: In function `fixup_imports':
pe_image.c:256: warning: cast to pointer from integer of different size
pe_image.c:292: warning: cast to pointer from integer of different size
pe_image.c:302: warning: cast to pointer from integer of different size
pe_image.c:302: warning: cast from pointer to integer of different size
pe_image.c:303: warning: cast to pointer from integer of different size
pe_image.c:303: warning: cast from pointer to integer of different size
pe_image.c:313: warning: cast to pointer from integer of different size
pe_image.c:313: warning: cast from pointer to integer of different size
pe_image.c:322: warning: cast to pointer from integer of different size
pe_image.c:322: warning: cast from pointer to integer of different size
pe_image.c:332: warning: cast to pointer from integer of different size
pe_image.c:332: warning: cast from pointer to integer of different size
pe_image.c: In function `calc_vma_size':
pe_image.c:348: warning: cast to pointer from integer of different size
pe_image.c:348: warning: cast to pointer from integer of different size
pe_image.c:348: warning: cast to pointer from integer of different size
pe_image.c:348: warning: cast to pointer from integer of different size
pe_image.c:352: warning: cast to pointer from integer of different size
pe_image.c:352: warning: cast to pointer from integer of different size
pe_image.c: In function `do_relocations':
pe_image.c:374: warning: cast to pointer from integer of different size
pe_image.c:374: warning: cast to pointer from integer of different size
pe_image.c:383: warning: cast to pointer from integer of different size
pe_image.c: In function `PE_LoadImage':
pe_image.c:473: warning: cast to pointer from integer of different size
pe_image.c:479: warning: cast to pointer from integer of different size
pe_image.c:479: warning: cast to pointer from integer of different size
pe_image.c:508: warning: cast to pointer from integer of different size
pe_image.c:508: warning: cast to pointer from integer of different size
pe_image.c:508: warning: cast to pointer from integer of different size
pe_image.c:508: warning: cast to pointer from integer of different size
pe_image.c:552: warning: cast to pointer from integer of different size
pe_image.c:552: warning: cast to pointer from integer of different size
pe_image.c:556: warning: cast to pointer from integer of different size
pe_image.c:557: warning: cast to pointer from integer of different size
pe_image.c:557: warning: cast to pointer from integer of different size
pe_image.c:561: warning: cast to pointer from integer of different size
pe_image.c:632: warning: cast to pointer from integer of different size
pe_image.c:632: warning: cast to pointer from integer of different size
pe_image.c:632: warning: cast to pointer from integer of different size
pe_image.c:632: warning: cast to pointer from integer of different size
pe_image.c:670: warning: cast to pointer from integer of different size
pe_image.c:677: warning: cast to pointer from integer of different size
pe_image.c: In function `PE_CreateModule':
pe_image.c:698: warning: cast to pointer from integer of different size
pe_image.c:698: warning: cast to pointer from integer of different size
pe_image.c: In function `PE_UnloadLibrary':
pe_image.c:878: warning: cast to pointer from integer of different size
pe_image.c: In function `PE_InitDLL':
pe_image.c:923: warning: cast to pointer from integer of different size
pe_image.c:923: warning: cast to pointer from integer of different size
pe_image.c:924: warning: cast to pointer from integer of different size
pe_image.c:924: warning: cast to pointer from integer of different size
pe_image.c:929: warning: cast to pointer from integer of different size
pe_image.c:929: warning: cast to pointer from integer of different size
pe_image.c:929: warning: cast to pointer from integer of different size
make[1]: *** [pe_image.o] Error 1
make[1]: Leaving directory `/usr/local/src/MPlayer-1.0pre8/loader'
make: *** [loader/libloader.a] Error 2
Sorry for the long post, but I want to make sure I give enought information for anybody that might have an idea.

Thanks,
Arthur

mplayer version: MPlayer-1.0pre8
codec pack: essential-20060611
codec location: everywhere I could find a refernce to from google
OS: CentOS release 4.3 (Final)
kernel/arch: 2.6.9-34.0.1.ELsmp x86_64 GNU/Linux

Hardware:
Intel 805D (2.6GHz dual core)
1GB DDR
FX5500 AGP 8x
IDE HDD
 
Old 07-08-2006, 05:42 PM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Hello
The configure script may seem to have run fine, but still you have to check in the config.log file all the 'Checking for ...' to see if something is missing or doesn't work as expected.
So look in the config.log file or post it here.
 
Old 07-08-2006, 06:10 PM   #3
aenright
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: CentOS/Fedora/RHEL/FreeBSD/HPUX/Solaris
Posts: 46

Original Poster
Rep: Reputation: 16
Post I have checked over it, but a fresh set of eyes would be appreciated!

I tried to insert the intire log, but the post would have come out to over 127k+ characters and the forum limits it to 25k. Here is a snipit of stuff I had looked at in the log prior to posting. I can email you then entire configure.log file if you wish to have a look at it.

Code:
============ Checking for Win32 codec DLL support ============
Result is: yes (using /usr/lib/win32/)
##########################################

============ Checking for Win32 loader support ============
Result is: yes
##########################################

============ Checking for DirectShow ============
Result is: yes
##########################################

============ Checking for XAnim DLL ============
Result is: yes (using /usr/local/lib/codecs)
##########################################

============ Checking for RealPlayer DLL ============
Result is: yes (using /usr/local/lib/codecs)
I hope this helps, and thanks for your support!

Arthur
 
Old 07-08-2006, 08:33 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
OK, bit of guesswork going on here, (so feel free to correct/flame me)

Code:
--enable-win32 --with-win32libdir=/usr/lib/win32/
I don't think you need these options to get win32 codec support. In fact I think these options are used for building mplayer for the win32 kernel
(guessing: I have never had to pass --enable-win32 to be able to play wmv/avi files,I am aware that the second option searches for DLLs, but I think
this is searching for system DLLs not codec DLLs)

So my suggestion is to remove these two options and replace with:

Code:
--with-codecsdir=/usr/lib/win32
Or wherever you unpacked essential-20060611.tar.bz2

PS. There is also another codec package which contains all of essential plus a few others called all-20060611.tar.bz2 which you may want to look at.
 
Old 07-09-2006, 02:06 AM   #5
aenright
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: CentOS/Fedora/RHEL/FreeBSD/HPUX/Solaris
Posts: 46

Original Poster
Rep: Reputation: 16
Hmmm....

Hey,

No way I would ever flame someone trying to help me I configured it with that option, but I still get the following error...

Code:
ASF file format detected.
VIDEO:  [WMV3]  320x240  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 48.0 kbit/4.69% (ratio: 6000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Requested video codec family [wmv9dmo] (vfm=dmo) not available.
Enable it at compilation.
Requested video codec family [wmvdmo] (vfm=dmo) not available.
Enable it at compilation.
Cannot find codec matching selected -vo and video format 0x33564D57.
Read DOCS/HTML/en/codecs.html!
==========================================================================
AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
It still keeps telling me to Enable it at comilation. I am going to pile through some more configure options...

Thanks again for your help!

Arthur.
 
Old 07-09-2006, 04:28 PM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Been playing around for a while and found some sample wmv files

Code:
ASF file format detected.
VIDEO:  [WMV3]  320x240  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
===========================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:230400  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
============================================
============================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
============================================
AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)
Starting playback...
It worked fine.

I unpacked the codecs into /usr/local/lib/codecs so there was no need to specify where to find them

Code:
./configure --prefix=/usr/local
was all I did

I cannot see any obvious reason why it isn't working for you, the only thing that might make a difference is the fact
that I am using the latest svn mplayer. So you may want to give it a try...you never know.

All you have to do once you have installed subversion is:

Code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Let me know if you get anywhere
 
Old 07-10-2006, 09:53 AM   #7
aenright
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: CentOS/Fedora/RHEL/FreeBSD/HPUX/Solaris
Posts: 46

Original Poster
Rep: Reputation: 16
I feel like such a dork...

Hey guys, I just saw this message at the end of the configure output:

Code:
NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.
I suppose that is why it is not working 100%. I guess the next thing I need to do is find a static binary built on i386 and try that.

Thanks for all your help guys!

Art
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
win32 codecs for Mplayer mat_uk111 Linux - Newbie 21 12-06-2004 11:36 AM
Xine + Win32 codec = choppy video Mechatrex Linux - Software 5 11-17-2004 09:31 AM
WIN32 codec problems circuit Linux - Software 2 06-17-2004 05:37 PM
MPlayer codec Schopy Linux - Newbie 1 09-27-2003 03:50 PM
problem compiling mplayer after adding win32 codec chiyoaiki Linux - Software 1 06-25-2003 02:46 PM


All times are GMT -5. The time now is 02:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration