LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2006, 09:47 AM   #1
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Distribution: MX14.4
Posts: 102

Rep: Reputation: 15
playing videos in ubuntu


I just installed ubuntu to my system and i have been tryin to play videos for example: mpg,avi.etc. and it says i dont have the correct decoders????? Where can i download these??

Any help?

Cheers,
Clarence
 
Old 08-07-2006, 10:03 AM   #2
anirudh.iitm
LQ Newbie
 
Registered: Jun 2006
Location: chennai , india
Distribution: ubuntu
Posts: 26

Rep: Reputation: 15
by default ubuntu opens movie files with totem.but the codecs for a lot of video files seem not to be installed by default.
i suggest that u install either mplayer by
sudo apt-get install mplayer
or vlc media player by
sudo apt-get install vlc
alternatively the easier way is to search for these packages in synaptics package installer(its in system/administration in the panel).if u use thius method make sure u have enabled multiverse repositories.
hope this helps
 
Old 08-07-2006, 11:45 AM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
sudo apt-get install win32-codecs
sudo apt-get install ffmpeg
sudo apt-get install divx4linux

Those three should give you the ability to play mpeg and avi files. I would use mplayer.
Might also run sudo apt-get install gstreamer0.8-plugins. May also have to update your repositories list for find some of these packages.
 
Old 08-07-2006, 04:46 PM   #4
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Distribution: MX14.4
Posts: 102

Original Poster
Rep: Reputation: 15
I tried the apt-get things and it didnt work. E: couldnt find package mplayer. Do i have to upgrade something?
 
Old 08-07-2006, 06:23 PM   #5
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
iget this when i try to get the codecs
E: Invalid record in the preferences file, no Package header
 
Old 08-07-2006, 08:06 PM   #6
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Update your /etc/apt/sources.list to include the universe and multiverse repositories. You can use google to find one of the many step by step tutorials. After you do this, run "sudo apt-get update", and then you can apt-get the codecs and mplayer. In general, you can apt-get any of the packages listed at http://packages.ubuntu.com/ .
 
Old 08-07-2006, 08:32 PM   #7
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
how do you update the list to include the universe and multiverse repositories
 
Old 08-07-2006, 08:55 PM   #8
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
which category onthat website would have the updated etc/apt/sources.list

http://packages.ubuntu.com/dapper/
 
Old 08-08-2006, 08:04 AM   #9
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Give this a try. It will auto generate you a sources.list
 
Old 08-08-2006, 04:26 PM   #10
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
ok im lost wht r u sopposed to do with that link , sorry for being total newb

its just that i screwed up everythinglast time i tried this and had to reinstall
 
Old 08-08-2006, 04:40 PM   #11
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
No problem, I just found it. Go through there and choose what distro you have and check the boxes that you want and it will generate a sources.list for you. Then download that and place it in /etc/apt/
 
Old 08-08-2006, 06:34 PM   #12
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
im sorry but seriously lost here there is 2 different things to click on to get sources.list , and do i check both boxes in each one the packages and sources and wht about teh 2 boxes that can be checked under pickin your version , and whts the 2 letter code of yoru country i dont know what any of this is once again im sorry
 
Old 08-08-2006, 06:41 PM   #13
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
If you are new to Linux, get ready to do some reading and a lot of learning of things you never imagined. This should help you. https://wiki.ubuntu.com/RestrictedFormats I suggest getting totem-xine and mplayer. You will have to enable universe and multiverse repositories by editing sources.list and uncommenting (removing the #) from the two repo that's commented out, then running `sudo apt-get update` or using a that graphical front end to apt-get, Synaptic.

Last edited by fakie_flip; 08-08-2006 at 06:44 PM.
 
Old 08-08-2006, 10:04 PM   #14
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
i removed those 2 lines now i get this error when i open synaptic or do apt-get update

E: Type 'Uncomment' is not known on line 10 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
 
Old 08-09-2006, 08:29 AM   #15
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Distribution: MX14.4
Posts: 102

Original Poster
Rep: Reputation: 15
I cannot save my new sources list over the top of my other one:S. Is this right:
# Automatically generated sources.list
# http://www.ubuntulinux.nl/source-o-matic
#
# If you get errors about missing keys, lookup the key in this file
# and run these commands (replace KEY with the key number)
#
# gpg --keyserver subkeys.pgp.net --recv KEY
# gpg --export --armor KEY | sudo apt-key add -

# Ubuntu supported packages (packages, GPG key: 437D05B5)
deb http://au.archive.ubuntu.com/ubuntu hoary main restricted
deb http://au.archive.ubuntu.com/ubuntu hoary-updates main restricted

# Ubuntu supported packages (sources, GPG key: 437D05B5)
deb-src http://au.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://au.archive.ubuntu.com/ubuntu hoary-updates main restricted

# Ubuntu community supported packages (packages, GPG key: 437D05B5)
deb http://au.archive.ubuntu.com/ubuntu hoary universe multiverse
deb http://au.archive.ubuntu.com/ubuntu hoary-updates universe multiverse

# Ubuntu community supported packages (sources, GPG key: 437D05B5)
deb-src http://au.archive.ubuntu.com/ubuntu hoary universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu hoary-updates universe multiverse

It gives an error message: Could not save the file "/etc/apt/sources.list"
 
  


Reply



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
Playing videos without sound? Brian Knoblauch SUSE / openSUSE 1 09-03-2005 03:51 AM
Playing videos with mplayer Danny M Linux - Newbie 2 02-03-2005 01:50 AM
playing videos tv_is_drowning Linux - Newbie 5 11-14-2003 02:35 PM
Playing DivX videos... aqwabawks Linux - Newbie 1 11-07-2003 02:40 PM
playing two videos at once. Moebius Linux - Software 1 07-09-2003 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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