LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2009, 07:41 AM   #1
opaque54
LQ Newbie
 
Registered: Jul 2009
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
Problem with Mplayer commands and commandline


i use my son's computer to watch movies. i wanted to view only eng subs and all i could get was the chinese subs. after googling i found i needed to open terminal and applications mplayer and -slang something. i am such a newbie. how do i even begin to learn this? so please be understanding if my questions seem obvious. thx
 
Old 07-22-2009, 08:12 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Welcome to the board. I see this is your first post.

There is a simple answer, here is the part of the man page that explains how to make a language selection for mplayer.

Quote:
-slang <language code[,language code,...]> (also see -sid)
Specify a priority list of subtitle languages to use. Different container formats employ different language codes. DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2 three letter language codes while OGM uses a free-form identifier. MPlayer prints the available languages when run in verbose (-v) mode.

EXAMPLE:
mplayer dvd://1 -slang hu,en
Chooses the Hungarian subtitle track on a DVD and falls back on English if Hungarian is not available.
mplayer -slang jpn example.mkv
Plays a Matroska file with Japanese subtitles.
As I said, this is the simple answer... Now, down to reality...

Man pages. These are files on most linux distros that explain in technical language how to use a program or command. They are technically accurate, but often difficult for the beginner to understand. To view a man page, the two ways I use most are; 1. open a terminal ( sometimes called the command line ) and enter 'man mplayer' ( without the quotes ). 2. Open Konqueror ( that is a web browser usually found on systems with the KDE desktop ). In the location bar type 'man:/mplayer' and press enter. Once again, no quotes. I like this method best, it formats the display and you can scroll back and forth.

In the Synopsis area you will see the command
Quote:
mplayer [options] [file|URL|playlist|-]
-slang is an option, so you have to fill in the blanks. Note there are several to choose from. Mplayer can play lots of different sources, ie DVD's TV etc. You have to pick the correct command for the media.

Quote:
i am such a newbie. how do i even begin to learn this?
We have all been there. Learn one thing at a time. I'm an old fart, and I can do it. In fact in my house I'm the 'expert'. I still know a lot more than my kids about computing, both windoze and linux. This would be a good point to do some bonding, ask your kid, I bet he (she) would be overjoyed to help the old man out....
 
Old 07-22-2009, 08:37 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Don't let the console intimidate you. At the most basic level CLI is really not all that different from using a gui; it's just a different kind of interface. You type in a command, hit enter, and your program runs.

The only secret is in learning what to type, and that comes with experience--by getting your hands dirty. Read up on the basics, check out the man pages, and just do it. (I recommend LinuxCommand.org as a good primer on how to use the shell.)

As you get more experienced you'll discover that there are a lot of things you can do through CLI that are difficult or impossible to do through a graphics program, and eventually you'll wonder how you ever got by without it.

(Of course, that's not to say that there aren't also things that are easier to do through GUI than CLI. But for an experienced user the number of those is more limited than you probably imagine them to be right now.)
 
Old 07-22-2009, 11:03 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
To the OP: I took the opportunity to edit your thread title as "command line? waaa?" doesn't quite cut it and "Problem with Mplayer commands and commandline" does slightly better. Also note the Introduction forum is for making introductions. So I moved your thread to the Software forum as basically you have a very generic problem that (could have been posted in Software or Linux General).
 
Old 07-24-2009, 09:31 AM   #5
Linuxquestionsaccount
Member
 
Registered: Jul 2009
Posts: 39

Rep: Reputation: 16
Welcome to LQ buddy ... try using VLC or GOM player ... that should make life easier for you.


linux

Last edited by Linuxquestionsaccount; 07-28-2009 at 02:40 PM.
 
  


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
commandline mplayer to update konsole tab name tbttfox Linux - Software 2 01-03-2009 12:57 AM
Redboot commandline problem srinivas.chilaka Linux - General 0 10-19-2006 12:01 AM
Problem starting programs from commandline Error1312 Slackware 10 06-20-2004 09:16 AM
ndiswapper commandline mistype problem lnxusr Linux - Wireless Networking 11 03-04-2004 02:20 PM
ndiswrapper commandline problem lnxusr Linux - Software 2 01-10-2004 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 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