LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-07-2009, 01:24 PM   #1
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Rep: Reputation: 15
Finding Programs on Linux? Unable to play Videos?


Im not used to linux, i have always used XP and for my program files they are usually on my C:\Program_Files. But for linux where are they? Eg, say i want to open up Python. what folder is it in?

Also, i am unable to play videos. For example, i download a video off the internet and it doesnt let me play. But i tried by accident, downloading the video (it auto-plays after i download it), then having my firefox on the screen, instead of video player, it works, i could only hear the sounds though. when i alt-tab or change to video, it stops, i cant hear video anymore. Help? I dont know if this helps, but when i go back to XP and play the exact same video file, it works. I also tried downloading different video players and still the same, doesnt work.
 
Old 07-07-2009, 01:41 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Most programs live in one of the following directories: /usr/bin, /usr/sbin, /bin, or /sbin. If you google a bit about the linux filesystem heirarchy, you'll learn a lot more about where linux puts files and why.

As for videos, what distribution of linux are you running (Ubuntu, Debian, OpenSuse, etc)? You probably need to use your package manager to install the proper codecs for those video types. Or you may need to install flashplayer for Firefox. Sorry, but I'm a bit confused by your description as to what exactly the problem is.
 
Old 07-07-2009, 03:01 PM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,166

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
For using software, you run it from the menu or the command line, not from the file-browser. So, if you open a terminal window and enter the command "python", you find yourself using the python interpreter.

Try googling the name of your distribution and "media codecs" (or even "installation") and you'll get help on what to do. The problem is that the codecs for proprietary formats like wmv are patented in the USA, so if you live there you're supposed to pay for them: the cost is included in the price of Windows. Linux distros make them available online from Europe and if Americans download them, then that's between them and the FBI :-)

It's a good idea to put the name of your distro in your profile and then people will find it easier to help you. I could say how to get the codecs for Fedora or Debian, but that wouldn't be much use if you've got Ubuntu or Mandriva.
 
Old 07-07-2009, 03:02 PM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,166

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
For using software, you run it from the menu or the command line, not from the file-browser. So, if you open a terminal window and enter the command "python", you find yourself using the python interpreter.

Try googling the name of your distribution and "media codecs" (or even "installation") and you'll get help on what to do. The problem is that the codecs for proprietary formats like wmv are patented in the USA, so if you live there you're supposed to pay for them: the cost is included in the price of Windows. Linux distros make them available online from Europe and if Americans download them, then that's between them and the FBI :-)

It's a good idea to put the name of your distro in your profile and then people will find it easier to help you. I could say how to get the codecs for Fedora or Debian, but that wouldn't be much use if you've got Ubuntu or Mandriva.

I don't know why this has come up twice, and I can't delete it!

Last edited by DavidMcCann; 07-07-2009 at 03:04 PM. Reason: error
 
Old 07-08-2009, 04:43 AM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
Quote:
Originally Posted by eric666 View Post
Im not used to linux, i have always used XP and for my program files they are usually on my C:\Program_Files. But for linux where are they? Eg, say i want to open up Python. what folder is it in?
In general, the places where binary executables are stored in linux is as detailed above. The convention though, is that you do NOT "cd" into one of those folders, but that you run the executable "from" your home directory. I. e. you "tell" the shell "where" to find an executable by using a "PATH" statement. For example, on my FC11 system, I have edited the .bashrc file in my /home/myusername directory to contain

Code:
PATH=$PATH:$HOME/bin:/usr/sbin:./:/usr/bin:/usr/local/include:/home/rylan/povray-3.5:/usr/local/samba/bin/:/usr/local/mysql-standard-4.0.16-pc-linux-i686/bin/mysqladmin:/home/rylan/jdk1.5.0_09/bin/:/usr/local/lib:/home/rylan/jre1.5.0_09/bin:/usr/lib:/usr/local/kde/bin:/usr/local/k3d/bin:/usr/local/mysql/bin:/usr/local/samba/sbin/
I. e. if I am logged into a terminal, and I run a command, the system will look in all the above directories, from left to right in order, for the executable.

Quote:
Also, i am unable to play videos. For example, i download a video off the internet and it doesnt let me play. But i tried by accident, downloading the video (it auto-plays after i download it), then having my firefox on the screen, instead of video player, it works, i could only hear the sounds though. when i alt-tab or change to video, it stops, i cant hear video anymore. Help? I dont know if this helps, but when i go back to XP and play the exact same video file, it works. I also tried downloading different video players and still the same, doesnt work.
Have you -installed- the video players you downloaded?

Generally, to play most video clips and videos, you need to download either

A - a Video Player "package"
B - the source code for the video player and its associated binary codecs, skins, and fonts

and then install the Video Player package, or compile and install the video player source code, and install its binary codecs, skins and fonts.

For example, MPlayer (a very powerfull video player with a very extensive list of codecs it can play) requires you to download its source code file, and its codecs file. You can then play videos from the command line after compiling and installing, and installing the codecs file. If you want it to have a GUI interface, you need to download a skin for it, and install that, and if you want an on screen display, you need to install a font as well.

Post again if you need specific instructions or assistance.
 
Old 07-08-2009, 09:56 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Please add your distro & version to your profile for better help.
FWIW, for RH based systems, mplayer provides rpms http://www.mplayerhq.hu/design7/dload.html so no compilation reqd.

Last edited by chrism01; 07-09-2009 at 10:26 PM.
 
Old 07-09-2009, 12:38 PM   #7
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
my distribution is Ubuntu,but how do i check the version?
So my problem for finding programs is solved thanks to you guys ^^

My only problem now is downloading source codes. Where do i download thoese?
ATM i have:
-Dragon Player
-Movie Player
-MPlayer Movie Player
as my movie players. If possible i would only like to have ONE working one. Which one, i dont know, what do you guys think is the best movie player out of the three?

-Thanks!
 
Old 07-09-2009, 02:23 PM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,053

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
While, as has been stated above, most of the time time you do not need to know which directory a program is in, occasionally you do need that
Code:
which python
should do that for you.
 
Old 07-09-2009, 10:29 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
MPlayer is very well known and comprehensive. I'd go with that unless the Ubuntu forums say different.
I'm sure someone there can tell you how to get the Ubuntu version. In most distros there's a file in /etc that tells you, something like /etc/redhat-release (for Redhat)
 
Old 07-10-2009, 12:11 PM   #10
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
oh so Ubuntu isnt a distribution?
Still need to download the source codes
 
Old 07-11-2009, 04:49 AM   #11
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,053

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
I have a suspicion (based on a quite old version of Ubuntu, so whether its still true...) that the identifier in /etc shows the version of debian from which it is built, rather than the version of ubuntu that it is actually released as.

Really
Code:
lsb_release -d
(see the man page for other variants on this for, eg, the distro ident string) ought to work, but may not be installed by default
 
Old 07-11-2009, 05:45 AM   #12
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
You do not need to download any source code. You already have mplayer, so most likely you are missing the codec needed for the type of file you have. You don't say what type of file you have, so its impossible to be more specific. If you paste this into a terminal it will tell you what video/audio codecs you need to play it.
Code:
mplayer -nosound -vo null -endpos 1 -really-quiet -identify "/path/to/your/file"
See here for codec install help https://help.ubuntu.com/community/Medibuntu, the section "Playing Non-Native Media Formats", (probably you will first need the section "Adding the Repositories").
 
Old 07-12-2009, 08:34 PM   #13
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
When i type the
mplayer -nosound -vo null -endpos 1 -really-quiet -identify "/path/to/your/file"

i get

mplayer: could not connect to socket
mplayer: no file or directory
 
Old 07-12-2009, 08:42 PM   #14
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
On ubuntu, you would check /etc/issue to see the version you are running. If you are lazy, simply switch to a console (ctrl + alt + f1) and the contents of /etc/issue are displayed automatically (use alt + f7) to return to you gui.

Don't start messing with source codes unless needed. Install from synaptic (System > Administration > synaptic) or from the command line using sudo aptitude. Also, I believe that the medibuntu repository is needed for mplayer (I actually recommend smplayer for a convenient GUI) and vlc as well as most of the unofficial codecs.

Last edited by jay73; 07-12-2009 at 08:44 PM.
 
Old 07-13-2009, 09:02 AM   #15
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
Quote:
Originally Posted by eric666 View Post
When i type the
mplayer -nosound -vo null -endpos 1 -really-quiet -identify "/path/to/your/file"

i get

mplayer: could not connect to socket
mplayer: no file or directory
engage brain before typing, LOL. You're supposed to change "/path/to/your/file" to the actual path to your actual file.
 
  


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
Unable to play Youtube videos in Debian Etch amrtuti Linux - Software 3 09-22-2008 11:48 AM
mp3 ,.avi,.dat,--not working unable to play videos!!! fedex Linux - Newbie 1 01-03-2008 07:49 PM
Finding Music Videos Playable in Linux? LiquidSlumber Linux - Software 5 07-29-2005 11:04 PM
Unable to play videos using mplayer, image distorted sandrei83 Linux - Software 3 03-28-2005 01:48 PM
any good programs to play videos on Linux? ShawnD Linux - Software 15 09-01-2002 08:22 AM


All times are GMT -5. The time now is 01:22 AM.

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