LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-18-2005, 04:48 PM   #1
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
Why is playing a .avi file such a pain?


Okay folks, this problem is really torqing me off. All I want to do is watch some of my shows I've saved as .avi files on my laptop. I travel a lot, so I need to take my entertainment with me fairly often. Problem is, I can't get these files to play regardless of what I do.

Normally I use Kaffeine, but the generic install of Mandriva doesn't include the avi codec. Okay, a quick google indicates that I can download a bunch of codecs from http://www4.mplayerhq.hu/homepage/design7/codecs.html (downloaded the all package) and to save it in /usr/lib/win32. I open kaffeine and check the config opens (kaffeine player and xine) and don't see anything at all related to additional codecs. Either I'm blind and missing it, or its not their.

From kaffeine I open my avi as a file and kaffeine immediately crashes. Xine does the same thing. Incidentally Kaffeine offers absolutely no detail about the crash. Nor does Xine.

mplayer on the other hand is seemingly beyond my understanding. Perhaps understandable since I'm running on about 4 hours sleep and feeling a LITTLE groggy. In any event I can't get mplayer to play the file either. So someone smarter than me please take a look at this and tell me why playing a simple file format has to be so difficult in the year 2005?

[root@localhost Milo]# mplayer -vo X11 "/mnt/cdrom/Stargate SG1 - 8x19 - Moebius Part 1 (Jmans Xvid).avi"
MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Intel (Family: 8, Stepping: 3)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

77 audio & 188 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
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 /mnt/cdrom/Stargate SG1 - 8x19 - Moebius Part 1 (Jmans Xvid).avi.
Cache fill: 7.42% (622592 bytes) AVI file format detected.
VIDEO: [XVID] 640x368 24bpp 25.000 fps 349.4 kbps (42.7 kbyte/s)
Clip info:
Software: transcode-0.6.14
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 24000 Hz, 2 ch, 16 bit (0x10), ratio: 7000->96000 (56.0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
Error opening/initializing the selected video_out (-vo) device.


Exiting... (End of file)
 
Old 09-18-2005, 05:03 PM   #2
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Rep: Reputation: 16
Howdy,

I've never had problems with this codec business after I started using the PLF sources to get video players.

If you can access internet, do the following:

1. Using Control Centre, unistall all players: Mplayer, Kaffeine, Xine, whatever you have.

2. Importantly, also remove files & folders like /home/yourname/.mplayer /.xine and /.kaffeine
You can see them by giving command 'ls -a' in your home folder.

3. Add PLF sources as advised in http://easyurpmi.zarb.org/

4. Go to control centre -> Install programs, and install MPlayer or other player that has the .plf suffix

5. Play anything..
 
Old 09-18-2005, 05:03 PM   #3
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Original Poster
Rep: Reputation: 15
If I use konqueror and browse to /mnt/cdrom then right click on the file I want to view and choose open with, and choose other and type in mplayer in the field the file plays. So I'm evidently making a mistake when I try to run mplayer from the command line. Anyone familiar with mplayer enough to tell me what I'm doing wrong? Guess I could just load up a skin so I could sue mplayer graphically, but I'd still like to know what I did wrong.
 
Old 09-18-2005, 05:24 PM   #4
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
> mplayer -vo X11 "/mnt/cdrom/Stargate SG1 - 8x19 - Moebius Part 1 (Jmans Xvid).avi"
..
> Error opening/initializing the selected video_out (-vo) device.

Is X11 a supported video output device? It doesn't work here anyway. Try -vo xv or leave the option out and let mplayer choose.
 
Old 09-18-2005, 06:01 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
You don't need to install mplayer or get codecs from their site. Simply goto easyurpmi, setup access to the repos and install the packages 'win32codecs' and 'xine-win32' through the Mandrake Control Centre. Now play your movies with Kaffeine (or you can install mplayer if you want).
 
Old 09-19-2005, 02:04 AM   #6
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
URPMI

Go to this website and install all of the packages there via konsole, and then after you are done type as root:
urpmi win32-codecs
That's what I used to get my codecs and I can watch avi files just fine in Kaffeine player.
 
Old 09-19-2005, 04:46 PM   #7
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Original Poster
Rep: Reputation: 15
Re: URPMI

Quote:
Originally posted by dudeman41465
Go to this website and install all of the packages there via konsole, and then after you are done type as root:
urpmi win32-codecs
That's what I used to get my codecs and I can watch avi files just fine in Kaffeine player.
Odd. I get: No package named win32-codecs.

In any event I'm leaving the country tomorrow for a two month trip though South America. Not very happy that I have crappy AVI support on my system right now.
 
Old 09-19-2005, 05:49 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Goto http://easypurpmi.zarb.org and follow the instructions there. Just get all the repositories - main, contrib, plf-free, plf-nonfree then install the win32codecs and xine-win32 packages. I can assure you that this works.
 
Old 09-22-2005, 01:21 AM   #9
charlescpc
Member
 
Registered: Nov 2004
Location: knoxville tn
Distribution: Mandrake
Posts: 142

Rep: Reputation: 15
Cool,
I didn't know you could just install them from the rpms. I have been downloading a big file and manually moving the files to the right directory. Not a big deal just more work than needs to be done....Thanks for the info TKEDWARDS. I learned something new (grin)..
 
Old 09-22-2005, 01:30 AM   #10
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
I finally got rid of Kaffeine cause' it kept bugging out and installed MPlayer. It picked up all of my codecs plus it is embedded in Firefox like Windows Media Player is embedded in Internet Explorer.
 
  


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
No sound while playing .avi file Mr. Hill Linux - Newbie 2 09-04-2005 11:36 PM
Playing avi files David@330 Linux - Newbie 1 08-25-2004 06:44 AM
no sound when playing avi + wmv's FLOODS Linux - Software 6 05-18-2004 01:22 PM
Playing sound in an avi file CuteBug Programming 2 05-17-2004 11:54 AM
Playing .AVI video in Linux zLinuxz Linux - General 5 11-24-2002 10:34 PM

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

All times are GMT -5. The time now is 04:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration