LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Xine and win32codecs problems (https://www.linuxquestions.org/questions/debian-26/xine-and-win32codecs-problems-319802/)

Debconfed 05-03-2005 03:14 PM

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?

:)

m_yates 05-03-2005 08:45 PM

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.

Debconfed 05-04-2005 02:33 AM

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?

kencaz 05-04-2005 03:20 AM

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

username-inuse 05-04-2005 12:37 PM

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

m_yates 05-04-2005 01:48 PM

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


Debconfed 05-05-2005 09:14 AM

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.

HappyTux 05-05-2005 09:35 AM

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.

m_yates 05-05-2005 09:59 AM

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. :confused: I also like mplayer a lot better. I think Kaffeine and Gmplayer are both easier to use than xine-ui.

craigevil 05-05-2005 12:34 PM

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.

Eternal_Newbie 06-19-2005 12:07 PM

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

EarthBoundMisfit 07-07-2005 07:53 AM

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

rbochan 07-07-2005 09:38 AM

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.

thewhiteguard 09-15-2005 06:56 PM

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.


All times are GMT -5. The time now is 10:45 PM.