LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-19-2006, 07:11 PM   #1
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Link WMPLAYER and MPLAYER to XINE???


Hi,
is there a possibility to link the wmplayer and or mplayer command to start xine?

Thanx
 
Old 07-20-2006, 01:07 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
First find the command mplayer. If it is linked symbolically then just change the link to point to Xine. If you are talking about the Icon you may not be able to change the command. I hope I understood and answered accordingly .
 
Old 07-20-2006, 01:13 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The one issue here is that mplayer and xine take, in many cases, very different arguments. If one program thinks its calling mplayer when, in fact, it is calling xine, xine may get confused and fail to work properly.
 
Old 07-20-2006, 01:28 PM   #4
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Original Poster
Rep: Reputation: 30
Thanx for answering.

I ment doing something like this.

In the old days of windoze 3.11 we had to write a batchfile to make it more easy to start windoze.

win.bat

cd c:\windows
win


Is it possible to make something like this in Linux also?
 
Old 07-20-2006, 02:08 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
It's certainly possible to write the equivalent of a DOS batch file in Linux--in *nix, they are called "shell scripts". Look up "Bourne Shell" or "bash" for more details.

But for your purposes, using a link would work without any scripts involved. You'd do something like log in a root terminal and enter the commands:

cd /usr/bin
mv mplayer mplayer-backup
ln -s /usr/bin/xine mplayer
ln -s /usr/bin/xine wmplayer

The command "cd /usr/bin" puts you in the directory with all of the executables. The "mv" command renames the old mplayer executable (assuming it exists already, of course). The "ln" commands create the relevant links.

Why do you want this functionality, anyway? And what is "wmplayer", anyway? The only "wmplayer" I know if is Windows Media Player (wmplayer.exe). This isn't a program which exists in Linux anyway.
 
Old 07-21-2006, 07:01 AM   #6
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Original Poster
Rep: Reputation: 30
I don't have mplayer installed.
 
Old 07-21-2006, 07:02 AM   #7
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Original Poster
Rep: Reputation: 30
Why do you want this functionality, anyway? And what is "wmplayer", anyway? The only "wmplayer" I know if is Windows Media Player (wmplayer.exe). This isn't a program which exists in Linux anyway.[/QUOTE]

Because some internet sites call wmplayer.
 
Old 07-21-2006, 09:09 AM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Since you don't have mplayer installed, then you should be fine with just creating those symbolic links.

I don't try to watch videos on the internet much, so I don't know for sure...but it sure seems very strange for an internet site to "call" any program. That's a serious security issue if a web site can run any program locally.

More likely, it's the web browser itself which is starting up a program, based on its own settings for opening up a particular file type with a particular external viewer. What web browser are you using? There should be some place to configure what viewers/helper applications are used to handle which file types.
 
Old 07-21-2006, 11:50 AM   #9
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Original Poster
Rep: Reputation: 30
Firefox,
my realplayer for example works fine.
 
  


Reply

Tags
mplayer, xine



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
Mplayer and Xine Drifter Linux - Software 4 04-28-2005 07:04 AM
Link Problems?? with installing xine mickeyboa Fedora 5 08-28-2004 03:19 PM
xine or mplayer??? feetyouwell Linux - Software 7 01-10-2004 05:43 PM
MPlayer vs. Xine: What do you think? tbranham Linux - Software 9 12-27-2003 07:08 PM
Mplayer or Xine? Luantum Linux - Software 1 11-17-2003 09:59 PM

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

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