Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to watch imm4 codec encoded videos in Ubuntu?

share|improve this question
    
what version of ubuntu? –  fossfreedom Oct 24 '11 at 20:15
    
can be 10.04 or later –  Alex Cuervo Oct 24 '11 at 20:16
    
Accepted Answer below works for Ubuntu 32bit only –  Alex Cuervo Oct 24 '11 at 21:54

1 Answer 1

up vote 2 down vote accepted

The imm4 codec is a restricted codec - covered by patents, so for some countries you should check if you are covered to run this decoder.

note I've tested this on 11.10

Install the restricted Medibuntu repository:

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Now install mplayer and w32codecs

sudo apt-get install mplayer w32codecs

Now the important part - mplayer is coded to look for the windows DLL VCMIMM4.dll, however, medibuntu installs a lowercase version that mplayer would not recognised out-of-the-box. Thus to fix this, create a VCMIMM4.dll file in the codecs folder.

sudo ln -s /usr/lib/codecs/vcmimm4.dll /usr/lib/codecs/VCMIMM4.dll

Now play your video - e.g.

mplayer http://samples.mplayerhq.hu/V-codecs/IMM4/200707170736151.avi

enter image description here

share|improve this answer
    
Will this work on a 64bit install or only 32bit? –  Alex Cuervo Oct 24 '11 at 20:54
    
I've only tested this on 32bit. I think there is "w64codecs" package - give it a try if you have 64bit ubuntu. –  fossfreedom Oct 24 '11 at 20:57
1  
I can confrim that fossfreedom solution it works on 32bit. It does NOT on 64 bit because w64codecs only contains a handful of realplayer codecs and does not fully replace w32codecs. If you need to play a format only supported by w32codecs, you will need to install w32codecs to /usr/lib32 and use a 32-bit version of mplayer (or an alternate method for running 32-bit apps, such as a chroot or virtualbox) help.ubuntu.com/community/AMD64 –  Alex Cuervo Oct 24 '11 at 21:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.