PDA

View Full Version : Can't install the DivX Codec . . .



integr8e
Oct 4th 2007, 03:10 AM
I've downloaded and am trying to install DivX Codec 6.1.1 for Linux; running the install script, the first thing it does is prints the EULA and requires me to accept it before I install the codec. The problem is, it doesn't provide a method by which to accept the agreement (at least I don't see one). Can anybody help me with this? (or if I don't need the package tell me)

disturbedite
Oct 4th 2007, 03:26 AM
you know that if you have the proper packages installed, (ffmpeg, xvid, xine, mplayer) you don't need the divx codec installed don't you? the libraries mentioned above can decode divx.
install the non-free-codecs package and that will take care of it for you.

integr8e
Oct 4th 2007, 05:00 AM
I didn't know that specifically (thanks my friend :)), but I figured it would probably be something similar since Kubuntu doesn't include DivX in its repos; I'm having trouble watching DVD's on my system. Not sure why but the only app that will let me do so is VLC. The problem with VLC is that, being I'm on Gutsy, it seems to be somewhat buggy; it crashes several minutes into the DVD :'(

I have all the codecs installed, however, I still can't watch DVD's - even with (K)MPlayer. Ugghhh!!! That's why I was trying to install DivX. Is there anything you can think of that will allow me to rectify this issue?

Edit: Well, I got it to play using Kaffeine, but Mplayer still won't work.

Rog131
Oct 4th 2007, 11:47 AM
Maybe this:

http://packages.ubuntu.com/gutsy/metapackages/kubuntu-restricted-extras

Package: kubuntu-restricted-extras (10) [multiverse]
Commonly used restricted packages

This package depends on some commonly used packages in the Kubuntu multiverse repository.

Installing this package will pull in support for MP3 playback and decoding, Java runtime environment, Flash plugin, DVD playback, and LAME (to create compressed audio files).

Please note that packages from multiverse are restricted by copyright or legal issues in some countries. See http://www.ubuntu.com/ubuntu/licensing for more information.


If that doesn't help:
HOWTO: Get commercial DVD playback in Kaffeine
http://kubuntuforums.net/forums/index.php?topic=3086749.0


For Mplayer:
SMplayer

complete front-end for MPlayer
Qt Mplayer front-end, with basic features like playing
videos, DVDs, and VCDs to more advanced features like support
for MPlayer filters and more. One of the most interesting features
of SMPlayer: it remembers the settings of all files you play.
So you start to watch a movie but you have to leave... don't
worry, when you open that movie again it will resume at the same
point you left it, and with the same settings: audio track,
subtitles, volume...

and

mplayerthumbs

MPlayerThumbs is a thumbnail generator for video files on
Konqueror. Unlike the original konqueror plugin (libarts1-xine),
it depends on neither xine nor arts, instead it uses only
mplayer. You can take advantage of this on x86_64 systems,
where you can use a 32bit mplayer to load win32codecs.


For codecs etc:

Medibuntu
(Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).
http://medibuntu.sos-sts.com/

Cerkinfo Debian Repository
http://apt.cerkinfo.be/

I'm using (for codecs and libdvdcss2)
http://www.debian-multimedia.org/

Direct links (download .deb and install it)
w32 codecs
http://www.debian-multimedia.org/pool/main/w/w32codecs/

libdvdcss2
http://www.debian-multimedia.org/pool/main/libd/libdvdcss/

disturbedite
Oct 4th 2007, 06:12 PM
yes! i was gonna recommend using smplayer. there is a repository for it here: http://ubuntuforums.org/showthread.php?t=551231
(this repo maintains newer versions than the one in the official gutsy repo).

lingenfr
Oct 5th 2007, 12:29 AM
install the non-free-codecs package and that will take care of it for you.


I can't find that package in the repositories.

dibl
Oct 5th 2007, 12:38 AM
Maybe take a look at Medibuntu?

http://medibuntu.sos-sts.com/

Click the "Repository How-To" tab to enable the Medibuntu repository. Once it's added to your sources, open Adept or Synaptic, "refresh", and then check out the codec choices.

:)

integr8e
Oct 5th 2007, 12:52 AM
I installed SMplayer, and still no luck :'( I don't really know why, it just won't work; Medibuntu's installed and I should have all the codecs, however the only app that works is VLC (which crashes :P).

lingenfr
Oct 5th 2007, 01:46 AM
Maybe take a look at Medibuntu?


Nope, not there either. Is he talking about w32codecs?

integr8e
Oct 5th 2007, 01:56 AM
If so, I'm using the 64bit version, so the w32codecs are called "w64codecs", and they are installed.

Rog131
Oct 5th 2007, 09:29 AM
In SMPlayer, did you:

Options > Preferences > Drives:


Currently SMPlayer does not autodetect cdrom or dvd devices. So in order to play cdroms or dvds you must first select here your cdrom and dvd drives (can be the same).(Repo version 0.5.20).

When dvd is in:
Options > View logs > mplayer/smplayer

mplayer log shows mplayer errors (if any)


disturbedite:

yes! i was gonna recommend using smplayer. there is a repository for it here: http://ubuntuforums.org/showthread.php?t=551231
(this repo maintains newer versions that the one in the official gutsy repo).

Good to know. Thank you ;D.

KDE-Apps.org
SMPlayer
http://www.kde-apps.org/content/show.php/SMPlayer?content=54487

Finally SMPlayer has been ported to Qt 4. It took 2 months...

Currently it has no KDE support at all, it's a pure Qt application.

So I think we should move now to Qt-Apps: http://www.qt-apps.org/content/show.php/SMPlayer?content=61041

Qt-Apps.org
http://www.qt-apps.org/

integr8e
Oct 5th 2007, 07:19 PM
I did, but the only drive it showed was my cd-rom drive; is there a way to change this?

disturbedite
Oct 6th 2007, 02:01 AM
i'm not convinced that you should have to mess with that in smplayer necessarily. i have two drives and have never had to mess with that section of the preferences cuz it reads them automatically & properly. but then again, that may not be the case for everyone.

integr8e
Oct 6th 2007, 03:21 AM
Just to make sure I DO have all the codecs and whatnot installed, would somebody who is not having problems with this issue post which packages I need to install, please.

Rog131
Oct 7th 2007, 04:08 PM
I still can't watch DVD's - even with (K)MPlayer. Ugghhh!!! That's why I was trying to install DivX. Is there anything you can think of that will allow me to rectify this issue?

Edit: Well, I got it to play using Kaffeine, but Mplayer still won't work.

Just to make sure I DO have all the codecs and whatnot installed, would somebody who is not having problems with this issue post which packages I need to install, please.


What is the problem ?

What tells:

:~$ mplayer dvd://1
Should play the first title of the video DVD.


Or do you get black screen ?
Have you tried Mplayer > Preferences > Video -> Available drivers (xv/x11/gl...)

integr8e
Oct 8th 2007, 12:58 AM
This is what it says:


integr8e@integr8e-desktop:~$ mplayer dvd://1
MPlayer 2:1.0~rc1-0ubuntu11 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 55, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 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 dvd://1.
Couldn't open DVD device: /dev/dvd
File not found: '1'
Failed to open dvd://1.


Exiting... (End of file)
integr8e@integr8e-desktop:~$

Rog131
Oct 8th 2007, 07:09 AM
What tells:
:~$ ls -l /dev/dvd


Here it tells:

:~$ ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 2007-10-08 09:26 /dev/dvd -> hdc

hdc is my DVD.

integr8e
Oct 8th 2007, 05:07 PM
With that command it gives me this:


integr8e@integr8e-desktop:~$ ls -l /dev/dvd
ls: /dev/dvd: No such file or directory



My DVD drive is labeled "hda", so when I replace dvd with hda, I get this:


integr8e@integr8e-desktop:~$ ls -l /dev/hda
brw-rw---- 1 root cdrom 3, 0 2007-10-08 12:41 /dev/hda

Rog131
Oct 8th 2007, 05:44 PM
You could try:

sudo ln -s /dev/hda /dev/dvd
and

sudo chmod -v 777 /dev/dvd

Does mplayer work ? Or do you get errors ?


Links:
Symbolic link
http://en.wikipedia.org/wiki/Symbolic_link

how do i create a symbolic link
http://ubuntuforums.org/showthread.php?t=255573

Linux permissions help
http://zzee.com/solutions/linux-permissions.shtml

Chmod help
http://zzee.com/solutions/chmod-help.shtml

integr8e
Oct 8th 2007, 05:57 PM
Ugh, it apparently has "hda" linked to "dvd1", not "dvd"; see below:


integr8e@integr8e-desktop:~$ ls -l /dev/hda /dev/dvd1
lrwxrwxrwx 1 root root 3 2007-10-08 12:41 /dev/dvd1 -> hda
brw-rw---- 1 root cdrom 3, 0 2007-10-08 12:41 /dev/hda


How would I go about changing this?

SheeEttin
Oct 8th 2007, 06:47 PM
I'd just create the dvd symlink. Something else might be using the dvd1 one.

Rog131
Oct 8th 2007, 06:49 PM
Ugh, it apparently has "hda" linked to "dvd1", not "dvd"; see below:

You could have several links: /dev/dvd -> hda, /dev/dvd1 -> hda... . hda is the real device.

So, you could make /dev/dvd. i think that mplayer is looking /dev/dvd.

Hmm - Here it is : Mplayer > Preferences > Misc: DVD device: /dev/dvd.
You could try /dev/dvd1.

Mplayer settings: /home/USER/.mplayer/: gui.conf
There is:


...
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"
osd_level = "1"
...

integr8e
Oct 8th 2007, 06:57 PM
That works! Well, almost, what should I choose for video output?

Rog131
Oct 8th 2007, 06:59 PM
what should I choose for video output?
Do you get error message ?

integr8e
Oct 9th 2007, 02:39 AM
It gave me the error:


Error opening/initializing the selected video_out (-vo) device.

I'm assuming I have to configure which video driver I want to use, but don't know which to choose.

disturbedite
Oct 9th 2007, 06:42 AM
use xv, or x11, or xshm. you could even try the opengl ones if the previously mentioned ones don't work for whatever reason.

integr8e
Oct 9th 2007, 03:16 PM
This is so cool! I got! The "xv" setting worked, and I now have SMPlayer configured; it wanted to be stubborn at first, but I found, though the only option to choose for both my CD and DVD drives was /dev/cdrom - which isn't correct for either, I can manually type the correct directory for each into their accompanying boxes.

However, it doesn't want to play .asx streams. KMPlayer does fine, but SMPlayer won't open them; whenever I try to play one, it just randomly opens one of my music files. Does anybody know how to fix this? I would really like to consolidate down to just having (1) media player, and I like SMPlayer, but unless I can configure it to play .asx streams, I'll have to use both SMPlayer and KMPlayer, UGH!

Edit: I'm not sure if it works with other .asx URL's, but I'm trying to listen to RadioU (http://tvulive.com/player/radiou.asx).

kbunt
Oct 15th 2007, 01:32 AM
did you fix your video problems? I couldn't get video to play either but just fixed it so I can play divx / avi files or DVDs.

I think that when the programs are included in the distro, not all the codecs and files needed are installed so you have to figure out which ones are the culprits preventing normal video play.

I think there is a file called something like 'demux' and there are 'lib' files still not installed that prevents normal operation or video/audio. I forgot to really pay attention and document but I went through what is needed in the Kaffeine and KMPlayer packages and noticed that demux and several other files weren't installed yet. I added them all and installed. Now, everything works.