I just installed OpenSuse 11.0 over my previous 10.3, that worked well (the hardware is a Dell Latitude notebook with the Intel 965 GM chipset). Now and before I am using KDE 3.5.
Everything is ok in the new installation (with the Yast-based software management super-fast!), but for two problems:
midi does not work anymore. For example:
kmid file.mid
does not generate any error, but no sound is obtained (the same with TuxGuitar). Note that (i) with my previous 10.3 midi was ok, and (ii) the sound card and the mixer are working correctly (I can play music with Amarok, for example).
→ Any suggestion?
videos cannot be reproduced anymore. For example:
vlc file.avi
generates the following:
VLC media player 0.8.6h Janus
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 86
Current serial number in output stream: 87
and stops, whereas:
kaffeine file.avi
generates the following:
[mpeg4 @ 0xb563e670]Invalid and inefficient vfw-avi packed B frames detected
[mpeg4 @ 0xb563e670]Invalid and inefficient vfw-avi packed B frames detected
and runs without video (only sound).
Once more, note that with my previous 10.3 videos were correctly reproduced.
→ Any suggestion?
In my experience this often leads to sound problems.
Do you have a version of alsa-oss installed, that is consistent with the remainder of your alsa rpms? I think the oss emulation (that comes with alsa) is used for playing midi (I could be wrong).
In a case like this, I recommend you check your repositories. Please setup your repositories according to this: Repositories/11.0 - openSUSE-Community
For now, while sorting out this problem, please confine your repos to OSS, NON-OSS, update, and Packman.
With that in place, then install from YaST software management the Packman packaged versions (not the Novell/SuSE-GmbH packaged versions, if any) of vlc, kaffeine, libxine1, w32codec-all, smplayer. In kaffeine ensure you have selected the xine sound engine.
Thank you for the kind suggestions.
I have tried both, but unfortunately neither of them fixed the related problem, that is, after the changes… nothing changed… and videos and midi still don’t work, exactly with the same behavior described in my initial post.
Any further suggestion would be really appreciated.
How about showing us what you have installed in this area, so we can do a quality check? Please post the output of:
rpm -q libxine1
rpm -q vlc
rpm -q kaffeine
rpm -qa | grep alsa
Also, can you point to a location on the web where there are videos / sound files of the exact format that are giving you a problem, so we can check them out, and possibly give you a more exact answer?
I would say that any single .avi and .mpg file I tried is not shown, and the same for the midi files.
Note also that I have tried different movie players (vlc, totem, kaffeine, mplayer), and all are unable to display the video.
For example, this is the result that I obtain when executing
mplayer mymovie.avi
:
MPlayer 1.0rc2-SUSE Linux 11.0 (i686)-Packman-4.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (Family: 6, Model: 15, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing mymovie.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 688x384 24bpp 25.000 fps 1054.7 kbps (128.7 kbyte/s)
Clip info:
Software: VirtualDubMod 1.5.10.2 (build 2540/release)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 850 bits!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
mpg123: Can't rewind stream by 533 bits!
VDec: vo config request - 688 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.79:1 - prescaling to correct movie aspect.
VO: [xv] 688x384 => 688x384 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)0.6% 9 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
...
luca@linux-tqc3:~/Desktop> mplayer longpath.avi
MPlayer 1.0rc2-SUSE Linux 11.0 (i686)-Packman-4.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (Family: 6, Model: 15, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing longpath.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO: [DX50] 392x376 24bpp 30.000 fps 811.3 kbps (99.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 392 x 376 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.04:1 - prescaling to correct movie aspect.
VO: [xv] 392x376 => 392x376 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
...
I didn’t know avidemux: I installed it, and (magic…???) the sample file works in it.
On the other hand, the already mentioned problems remain on both vlc, totem, and mplayer. For example:
luca@linux-tqc3:~/Desktop> vlc longpath.avi
VLC media player 0.8.6h Janus
[00000571] dc1394 demuxer error: Bad MRL, please check the option line (MRL was: longpath.avi)
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 84
Current serial number in output stream: 85
What’s the point?
Finally: can you be so kind to tell me “the right way” to get divx and divx4linux from the Packman repository?
I have the Packman repository (Index of /pub/packman/suse/11.0) mounted in Yast, but the list generated by searching “divx” in the Software Management module does not seem include any useful item…
I have to confess here that I am one of a “dying breed” that use the Smart package manager, and not YaST Software Management. Hence I can not explain to you how to do this with YaST. However, because of the big improvement in zypper in 11.0, I do on occasion use zypper from the command line. So if you have Packman in your YaST software repositories, simply from an xterm/konsole with root permissions, type:
zypper install divx divx4linux
Also, a good place to go to search for codecs, and multimedia applications in openSUSE is: PackMan - main page
The quick search in the upper left corner of that web page is very good, and clicking on the “magnifying glass” in the upper left corner of that page brings up the detailed search, which is even better.
'divx' not found.
'divx4linux' not found.
Nothing to do.
I have taken a look at the PackMan :: Startseite site, where the two packages can be actually found, but I am a little bit concerned by the “last update” dates of them, 2006…
Anyhow, I downloaded and installed “by hand” divx (but nothing still changed), whereas divx4linux cannot be installed because of lacking dependencies.
Any suggestion?
Furthermore, I would like to say that I am pretty sure that in my previous 10.3 installation, where everything worked, I didn’t do such tricky works… How was it?
Ok, then if you have a file, say file.midi, open a terminal/konsole, and navigate to where the file is located, and type:
timidity file.midi
Give it some time to read the various instruments in the file. Doesn’t that work? It does on my openSUSE-11.0.
Here I am (after a night – I live in Italy – and a morning at work).
Removed divx
Checked that w32codec-all was already installed
(w32codec-all-20071007-0.pm.1)
→ Don’t know the reason, given the various changes performed in the last hours, but now midi works. Fine, and super-thanks for this.
On the other hand, video is still in the same situation. For example:
luca@linux-tqc3:~/Desktop> vlc longpath.avi
VLC media player 0.8.6h Janus
[00000571] dc1394 demuxer error: Bad MRL, please check the option line (MRL was: longpath.avi)
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 84
Current serial number in output stream: 85
I found the “midi” functionality was deceptive. When I first went to run timidity, there was a long pause (while the various instruments were being located) and I assumed it was not working, so I aborted it.
I was a bit frustrated 'cause midi did not appear working on my system any more, and I remember it used to work. Eventually, being stubborn, I went back to try timidity again, gritting my teeth, and carefully recording all the text output, so I could document the fr*ging problem. To my surprise, if I left timidity run long enough, it worked. I discovered it was my own impatience was the cause of my first problem. :rolleyes:
I have not been able to get kdemultimedia3-midi to work properly, but nor have I tried very hard.
If I start playing a midi app from konqueror (via right-click, “open with” timidity) (instead of kmidi) I find I get a superior “timidity” GUI than if I open a midi file from an ascii prompt with “timidity -iz file.midi” where “z” is some value per the “man timidity” page. I have not figured out why that GUI is different.
I’m a bit puzzled over why your vlc, mplayer, and xine can not play that avi file and mine can. Its probably something very obvious staring us in the face, and we can’t “see the forest because of the trees”.
Perhaps remove w32codec-all and re-install it? Do you have special 3D affects enabled or disabled?
Further explorations, further news (while thanking you for “the overview about the peculiarities” – may I call them this way? – of midi).
—>>> Your last question – have special 3D affects enabled or disabled? – is the right one.
If Compiz desktop effects are disabled (by switching off them using the handy Simple Compiz Config Setting Manager) everything works, and this is deterministic (switch on: video does not work; switch off: video works)!
At that point, I have tried to maintain the switch on and to disable alternatively the single effects, so to identify which of them is the guilty, but I have been unable to find it.
Were this behavior reproducible, I imagine that it could be highlighted as a bug…
So: THANK YOU, for your competence and kindness.
(let me say one more point, as a “moral of the story”: my job is to teach in university, and I am used to “push students” towards open source. The support you have given me will be a good story to tell them)
(finally: of course, I remain fully available in the case you believe I can help you to identify this potential bug)
Apologies that this took so long. … Some feeble excuses on my part:
a. the divx install was a wild goose chase. I had forgotten that commencing with openSUSE-10.3 divx was no longer a stand alone codec, but was incorporated in w32codec-all (I think) - hence my mistake above;
b. I have not tried to play a midi file for a long time, so I was very very very rusty on midi requirements;
c. I don’t have 3D effects on my desktop, so I never see these sorts of problems on my pc (only read about them), so this as a potential problem never occurred to me until much much later (rather much too late, … really). And the error messages did not provide much of a hint.
I do know its possible to play such video with 3D. I think you need to change to an x11 setting in those video players.