Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-01-2004, 10:50 AM   #1
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
Dual config files for Mplayer?

Hello all,
My problem is this, I use Mplayer for watching DVDs, as many people do, and I have no problem with this. I also like to use it to listen to streaming audio/radio over the net, but when I click on a link for streaming radio, all that happens, is my browser (firefox) opens a new tabbed window, and then just sits there ad infinitum, waiting for audio to be delivered. If I then edit my Mplayer.conf file, so the amount of cache used is only 4kb, then streaming audio is fine, but DVD playback is U/S, but with the default cache of 8Mb, DVD is fine , but streaming is U/S. I have been unable to find a cache setting that adequetely covers both scenarios, so can I have 2 .conf files for the 2 uses I have, and if so, how do I go about setting them up so that Mplayer picks the right one depending on my required use?

Old 04-01-2004, 11:01 PM   #2
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
It seems that mplayer doesn't have a command option to specify a configuration file, but you could write a simple script or alias to rename your configs. Assume you have 2 configs, one named mplayer.conf1 and one named mplayer.conf2. You can make two aliases like so:

alias mplay='cp ~/.mplayer/mplayer.conf1 ~/.mplayer/mplayer.conf; gmplayer'
alias mplay-net='cp ~/.mplayer/mplayer.conf2 ~/.mplayer/mplayer.conf; gmplayer'

This wont be very effective for dynamic use, though, since the player still won't be able to automatically detect which one you want.
Old 04-02-2004, 02:59 AM   #3
Senior Member
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
Maybe it's better to create a different user and place the alternative config file in his home, then run gmplayer as that user (open a xterm, log as user 2, run gmplayer)... I suggest you use the second user for playing DVD, otherwise you should also start firefox as user 2.
I know it sounds really "rude way to solve", but it's the first thing passed through my mind

Hope it helps
Old 04-02-2004, 10:36 AM   #4
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98

Thanks for the suggestions guys, I will try both of those, but I may just have to revert to using Mplayer for streaming and maybe Totem or Xine for DVD playback. That is, unless you have any suggestions as to a better app for streaming radio of the net, especially in windoze .ASF format. I suppose really that I'm looking for a clone-a-like of windoze media player 9.

Thanks again.


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
mplayer config question astroboiii Linux - Software 3 01-26-2005 12:02 AM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 10:36 AM
mplayer config file Alinuxnoob Linux - Software 3 09-14-2004 08:17 PM
question on config files vs build files working2hard Programming 2 07-29-2004 12:45 PM
mplayer plugin config dukeinlondon Linux - Software 5 11-08-2003 06:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration