LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-03-2005, 03:14 PM   #1
Debconfed
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Question Xine and win32codecs problems


Hello all (and sorry for a rather long post).

I am struggling a bit with the Xine video player... I'm using Debian Woody (stable, yes) and I haven't got Xine to play WMV files yet, and I have also problems when playing AVI files. I got one AVI file working though.

I tested the same files under Windows XP and they work fine there. 10 points to Microsoft from that.

(Please do not instruct me to change to MPlayer, I don't like it. It ruins my "I-like-my-Debian-as-stable-as-possible" philosophy completely. And I remember trying to install it once and got so annoyed back then that those bad memories have not faded yet.)

System specs:

- NVIDIA 6600 GT 128 MB AGP graphics card (Asus)
- NVIDIA's latest graphics card driver for Linux
- Xine is using OSS audio driver

This is what I did:

As root: apt-get install xine-ui

All fine for now, it plays MPEG's just good as a normal user.

After learning that I have to install w32codecs to get Xine playing WMV and some other file formats, I decided to download those codecs from the MPlayer site.

1. user: downloaded codec file essential-20050412.tar.bz2 (all codecs without free alternative, for Linux x86)
2. root: copied all files from essential-20050412.tar.bz2 to /usr/lib/win32
3. user: tried Xine with WMV, no luck... didn't work
4. user: checked that Xine points to the correct directory... yes it does
5. root: tried Xine with WMV, no luck... didn't work

This is the output Xine gave at this point to the console:

Code:
This is xine (X11 gui) - a free video player v0.9.8
(c) 2000, 2001 by G. Bartsch and the xine project team.
Built with xine library 0.9.8 [Sat 19 Jan 2002 22:24:54]-[gcc version 2.95.4  (Debian prerelease)]-[Linux 2.4.18pre2 i686].
Found xine library version: 0.9.8 (0.9.8).
Display is not using Xinerama.
video_out_xv: using Xv port 166 from adaptor NV17 Video Texture for hardware colorspace conversion and scaling.
video_out_xv: this adaptor supports the yuy2 format.
video_out_xv: this adaptor supports the yv12 format.
load_plugins: video output plugin Xv successfully loaded.
load_plugins: audio output plugin /usr/lib/xine/plugins/xineplug_ao_out_alsa.so failed to link: libasound.so.2: cannot open shared object file: No such file or directory
audio_oss_out: Opening audio device...
audio_oss_out: using device >/dev/dsp<
audio_oss_out: using SNDCTL_DSP_GETODELAY
audio_oss_out : supported modes are mono stereo 
load_plugins: audio output plugin oss successfully loaded.
xine_init entered
xine: using MMXEXT optimized memcpy()
load_plugins: input plugin found : CDA
load_plugins: input plugin found : DVD
load_plugins: input plugin found : stdin_fifo
load_plugins: input plugin found : TCP
load_plugins: input plugin found : file
load_plugins: input plugin found : RTP
load_plugins: input plugin found : VCD
load_plugins: input plugin found : HTTP
load_plugins: demux plugin found : MPEG_TS
load_plugins: demux plugin found : QUICKTIME
load_plugins: demux plugin found : MPEG
load_plugins: demux plugin found : ASF
load_plugins: demux plugin found : AVI
load_plugins: demux plugin found : CDA
load_plugins: demux plugin found : MPEG_ELEM
load_plugins: demux plugin found : MPEG_PES
load_plugins: demux plugin found : OGG
load_plugins: demux plugin found : MPGAUDIO
load_plugins: demux plugin found : MPEG_BLOCK
video decoder plugin found : vfw (win32) video decoder
audio decoder plugin found : vfw (win32) audio decoder
audio decoder plugin found : a/52dec
audio decoder plugin found : dts
audio decoder plugin found : mad
spu decoder plugin found : spucc
spu decoder plugin found : spudec
video decoder plugin found : mpeg2dec
audio decoder plugin found : lpcm
video decoder plugin found : videofill
video decoder plugin found : ffmpeg video decoder
spu decoder plugin found : sputext
audio decoder plugin found : vorbis
xine_init returning
xine_play: xine open Ashlee_Sax.wmv, start pos = 0, start time = 0 (sec)
xine: using input plugin >file< for this MRL (Ashlee_Sax.wmv).
xine: using demuxer plugin >ASF< for this MRL.
metronom: video stream start...
metronom: waiting for audio to start...
metronom: audio stream start...
metronom: audio stream start...done
demux_asf: stream length is 67 sec, rate is 14172 bytes/sec
demux_asf: audio conceal interleave detected (1 x 1 x 929)
demux_asf: audio format : DivX audio (WMA) (wFormatTag 0x161)
demux_asf: wavex header is 28 bytes long
audio_loop: using decoder >vfw (win32) audio decoder< 
audio_oss_out: ao_open rate=44100, mode=4, dev=/dev/dsp
audio_oss_out: audio rate : 44100 requested, 44100 provided by device/sec
audio_oss_out : 1 channels output
audio_out: output sample rate 44100
demux_asf: unknown video format WMV3
demux_asf: title        : 
demux_asf: author       : 
demux_asf: copyright    : 
demux_asf: comment      : 
audio_out: thread created
Loading DLL: 'divxa32.acm'
Win32 LoadLibrary failed to load: divxa32.acm, /usr/lib/win32/divxa32.acm, /usr/local/lib/win32/divxa32.acm
Can't open library divxa32.acm
w32codec: (ACM_Decoder) Unappropriate audio format
demux_asf: demux loop starting...
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: unknow segtype 1
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
demux_asf: end of data
metronom: video stream end
metronom: waiting for audio to end...
metronom: audio stream end
audio_out: stopping thread...
audio_out: thread stopped, closing driver
xine_stop
xine_stop: stopping demuxer
demux_asf: stop...ignored
xine_stop: do
OK I know how to read from there that it doesn't recognize the video format and I am still missing some file (divxa32.acm) from the /usr/lib/win32 directory. I head back to the MPlayer site to download the file all-20050412.tar.bz2 (all codecs for Linux x86 (Win32 .dll and Linux .so)).

Second method:

1. user: downloaded codec file all-20050412.tar.bz2 all-20050412.tar.bz2
2. root: removed all previously installed files from /usr/lib/win32
2. root: copied all files from all-20050412.tar.bz2 to /usr/lib/win32 (and the missing file (divxa32.acm) from the previous attempt is now in the directory, looks promising...)
3. user: tried Xine with WMV, no luck... didn't work!

This is the output Xine is now giving to the console:

Code:
This is xine (X11 gui) - a free video player v0.9.8
(c) 2000, 2001 by G. Bartsch and the xine project team.
Built with xine library 0.9.8 [Sat 19 Jan 2002 22:24:54]-[gcc version 2.95.4  (Debian prerelease)]-[Linux 2.4.18pre2 i686].
Found xine library version: 0.9.8 (0.9.8).
Display is not using Xinerama.
video_out_xv: using Xv port 166 from adaptor NV17 Video Texture for hardware colorspace conversion and scaling.
video_out_xv: this adaptor supports the yuy2 format.
video_out_xv: this adaptor supports the yv12 format.
load_plugins: video output plugin Xv successfully loaded.
load_plugins: audio output plugin /usr/lib/xine/plugins/xineplug_ao_out_alsa.so failed to link: libasound.so.2: cannot open shared object file: No such file or directory
audio_oss_out: Opening audio device...
audio_oss_out: using device >/dev/dsp<
audio_oss_out: using SNDCTL_DSP_GETODELAY
audio_oss_out : supported modes are mono stereo 
load_plugins: audio output plugin oss successfully loaded.
xine_init entered
xine: using MMXEXT optimized memcpy()
load_plugins: input plugin found : CDA
load_plugins: input plugin found : DVD
load_plugins: input plugin found : stdin_fifo
load_plugins: input plugin found : TCP
load_plugins: input plugin found : file
load_plugins: input plugin found : RTP
load_plugins: input plugin found : VCD
load_plugins: input plugin found : HTTP
load_plugins: demux plugin found : MPEG_TS
load_plugins: demux plugin found : QUICKTIME
load_plugins: demux plugin found : MPEG
load_plugins: demux plugin found : ASF
load_plugins: demux plugin found : AVI
load_plugins: demux plugin found : CDA
load_plugins: demux plugin found : MPEG_ELEM
load_plugins: demux plugin found : MPEG_PES
load_plugins: demux plugin found : OGG
load_plugins: demux plugin found : MPGAUDIO
load_plugins: demux plugin found : MPEG_BLOCK
video decoder plugin found : vfw (win32) video decoder
audio decoder plugin found : vfw (win32) audio decoder
audio decoder plugin found : a/52dec
audio decoder plugin found : dts
audio decoder plugin found : mad
spu decoder plugin found : spucc
spu decoder plugin found : spudec
video decoder plugin found : mpeg2dec
audio decoder plugin found : lpcm
video decoder plugin found : videofill
video decoder plugin found : ffmpeg video decoder
spu decoder plugin found : sputext
audio decoder plugin found : vorbis
xine_init returning
xine_play: xine open Ashlee_Sax.wmv, start pos = 0, start time = 0 (sec)
xine: using input plugin >file< for this MRL (Ashlee_Sax.wmv).
xine: using demuxer plugin >ASF< for this MRL.
metronom: video stream start...
metronom: waiting for audio to start...
metronom: audio stream start...
metronom: audio stream start...done
demux_asf: stream length is 67 sec, rate is 14172 bytes/sec
demux_asf: audio conceal interleave detected (1 x 1 x 929)
demux_asf: audio format : DivX audio (WMA) (wFormatTag 0x161)
demux_asf: wavex header is 28 bytes long
audio_loop: using decoder >vfw (win32) audio decoder< 
audio_oss_out: ao_open rate=44100, mode=4, dev=/dev/dsp
audio_oss_out: audio rate : 44100 requested, 44100 provided by device/sec
audio_oss_out : 1 channels output
audio_out: output sample rate 44100
audio_out: thread created
Loading DLL: 'divxa32.acm'
w32codec: Audio buffer min. size: 139264
w32codec: Recommended source buffer size: 1858
demux_asf: unknown video format WMV3
demux_asf: title        : 
demux_asf: author       : 
demux_asf: copyright    : 
demux_asf: comment      : 
demux_asf: demux loop starting...
metronom: audio pts discontinuity/start, pts is 303750, wrap_offset is -273750, vpts is 30000
audio_out: inserting 14216 0-frames to fill a gap of 29058 pts
audio_out: adjusting master clock 1341 -> 10891
xine-panel: EXIT
xine_stop
xine_stop: stopping demuxer
xine_stop: done
xine_exit: shutdown audio
metronom: video stream end
metronom: waiting for audio to end...
metronom: audio stream end
Total Unfree 4096 bytes cnt 1 [(nil),0]
audio_out: stopping thread...
audio_out: thread stopped, closing driver
xine_exit: shutdown video
xine_exit: bye!
I can hear sound playing now but there's no video.

I tried playing with all of the "demuxer selection strategy" options in Xine but it didn't help. I left it at the "default" setting.

I can see that this line appears in both listings:

demux_asf: unknown video format WMV3

Somewhere from the MPlayer site I can read that files:

- wmv9dmod.dll
- wmvdmod.dll

are needed for WMV3 and I have them but yet I do not get it to work.

I also tried an older codec package (win32codecs-20040703.tar.bz2 from MPlayer archives) but it didn't work any better, gives the same error.

What do you think about this, what should I do to fix the problem? Reboot into Windows XP?

 
Old 05-03-2005, 08:45 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
I would try adding the following line to /etc/apt/sources.list:
Code:
deb ftp://ftp.nerim.net/debian-marillat/ stable main
Then do:
Code:
apt-get update
apt-get install w32codecs
Hope that works.
 
Old 05-04-2005, 02:33 AM   #3
Debconfed
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hmm.

No it does not help.

And I am sorry I forgot to mention that I already tried the same method at the very beginning, just from another site and it didn't help either. That's why I ended up in the MPlayer site.

It looks like there are same files in those packages compared to what I got from the MPlayer site in the all-20050412 package.

Still just sound, no video.

I am now pretty confident that I have the needed codecs but Xine just gives the error "demux_asf: unknown video format WMV3" and doesn't display the video.

What could be wrong?
 
Old 05-04-2005, 03:20 AM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
If you have the codecs in the /usr/lib/win32 try checking the xine config file

cat ~/.xine/config

check the path to the codecs under
codec.win32_path

Here's some good information on Xine anyway.
http://linuxreviews.org/man/xine/

Hope you can get it working.

KC
 
Old 05-04-2005, 12:37 PM   #5
username-inuse
LQ Newbie
 
Registered: Apr 2005
Location: Kent, England, UK
Distribution: Red Hat 9, Knoppix HD install, Gentoo (Just about installed :P)
Posts: 12

Rep: Reputation: 0
I know that with mplayer and kaffieine after installing a plug-in the whole application needs to be re-installed/upgraded, and I think you'll find that mplayer is based on Xine (or kaffeine, cant remember), so it should be the same.

All in all, I would try re-installing/upgrading Xine

Last edited by username-inuse; 05-04-2005 at 12:39 PM.
 
Old 05-04-2005, 01:48 PM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Mplayer and Xine were developed completely separately. However, they should both work with w32codecs in Debian, see: http://www.mepis.org/node/4248

It may be a good idea to reinstall xine though, to remove any traces of the manual configuration/installation you tried. I would try:
Code:
apt-get install w32codecs
dpkg -P xine-ui
apt-get install xine-ui
 
Old 05-05-2005, 09:14 AM   #7
Debconfed
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hmmm...

No, it doesn't work.

I didn't do any manual installation for Xine, just for the codec package after trying it first with apt.

But I tried to reinstall Xine (again). I have checked the win32_path many, many times and yes it is pointing to the correct directory. I have tried running Xine as root and as normal user with no luck. I even tried to change file permissions in the /usr/lib/win32 directory but no, that didn't help either.

But I appreciate all your help and maybe some day I will get it working.

Maybe testing some other program would be a good idea just to see if I get WMV's and AVI's in general working in my Debian with those w32codecs.
 
Old 05-05-2005, 09:35 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by Debconfed
Hmmm...

No, it doesn't work.

I didn't do any manual installation for Xine, just for the codec package after trying it first with apt.

But I tried to reinstall Xine (again). I have checked the win32_path many, many times and yes it is pointing to the correct directory. I have tried running Xine as root and as normal user with no luck. I even tried to change file permissions in the /usr/lib/win32 directory but no, that didn't help either.

But I appreciate all your help and maybe some day I will get it working.

Maybe testing some other program would be a good idea just to see if I get WMV's and AVI's in general working in my Debian with those w32codecs.
I never had any luck with xine either try installing kaffeine which uses the xine engine ironically and works perfectly for me or since you have the line in there for it mplayer (-386,-586 or -k6, that should work as well.

Last edited by HappyTux; 05-05-2005 at 09:36 AM.
 
Old 05-05-2005, 09:59 AM   #9
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Odd...I installed w32codecs and xine-ui. I can play quicktime movies in xine with no problems and I did not configure anything from the default configuration. In the xine preferences, it has the path to w32codecs as /usr/lib/win32, but I did not have to set it up myself. I also like mplayer a lot better. I think Kaffeine and Gmplayer are both easier to use than xine-ui.
 
Old 05-05-2005, 12:34 PM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Quote:
Originally posted by m_yates
I would try adding the following line to /etc/apt/sources.list:
Code:
deb ftp://ftp.nerim.net/debian-marillat/ stable main
Then install the all-codecs package. The directory on my system is /usr/local/lib/codecs it contains alot more than just the win32codecs.
 
Old 06-19-2005, 12:07 PM   #11
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
Don't forget to point Xine to your win32 plugin directory - the default is usually /usr/local/lib/win32. I believe you can share the Mplayer win32 plugin directory , but have never tried. It shouldn't be necessary to reinstall , just restart Xine.

edit: corrected spelling

Last edited by Eternal_Newbie; 06-19-2005 at 12:09 PM.
 
Old 07-07-2005, 07:53 AM   #12
EarthBoundMisfit
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Here's something to try.......
Add the following sources for update....

deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb http://download.videolan.org/pub/videolan/debian sid main
deb-src http://download.videolan.org/pub/videolan/debian sid main

Now assuming you have done that type in the following from console (logged in as root of course)
apt-get update && apt-get install wxvlc libdvdcss2
The WHOLE thing...all of it.

I did this and now all of a sudden my Xandros distro's Xine now plays dvd movies (it didn't before) , and I've never been able to load MPlayer.....keeps saying broken packages (even after it was JUST installed!)
Misfit
 
Old 07-07-2005, 09:38 AM   #13
rbochan
Member
 
Registered: Dec 2004
Location: Central New York
Distribution: Debian
Posts: 218

Rep: Reputation: 30
Another thing you might try is adding the line
/usr/lib/win32
(or whatever your path is) to the file /etc/ld.so.conf. After that, reboot or run /sbin/ldconfig (as root).

Good luck.
 
Old 09-15-2005, 06:56 PM   #14
thewhiteguard
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Re: Xine and win32codecs problems

Quote:
Originally posted by Debconfed

I can hear sound playing now but there's no video.

[/B]
Okay ... I am really going to embarrass myself here but ... here it goes.

I had the same exact problem you have and it took me forever to fix the problem. I downloaded the "all" option [all-20050412.tar.bz2] from Codec Packages at the MPlayer site and installed them, and to nothing worked. I did everything everyone here recommended and nothing happened. I did, however, overlook the obvious.

When I placed the unzipped folder [all-20050412] containing the necessary files in the usr/lib/win32 folder I kept all the files in the folder they came in ... I did not transfer the files from that folder into the usr/lib/win32, so when Xine tried to find the files it couldn't because they were technically not there ... they were in usr/lib/win32/all-20050412. I know that this was a stupid stupid mistake ... but maybe you this is your problem ... everything is now working like a charm and I could not be happier!

Sometimes we overlook the obvious in haste ... hope this helps.

btw ... I am running Xandrose, I don't think that matters though.
 
  


Reply



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
64bit Mplayer, and win32codecs ? qwijibow Linux - Software 4 01-11-2005 06:10 AM
xine problems tcomputerchip Linux - Software 6 01-01-2005 03:59 PM
xine problems masterweaver Linux - Software 2 09-27-2004 07:02 PM
Xine problems hedgehog13 Linux - Software 0 08-05-2004 11:05 PM
Installing win32codecs fails???? luckystrikes7 Linux - Software 5 05-20-2004 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:52 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
Open Source Consulting | Domain Registration