Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer compiles without config files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Sun Sep 26, 2004 3:52 pm    Post subject: mplayer compiles without config files Reply with quote

Okay, I emerged the newest version of mplayer last night for the purpose of listening to a WMA stream. It has worked out of the box every time I have run it in the past from the CLI. Unfortunately since version 1.0 it has never worked, here is my output when I stream a .asx file:

Code:

user@pc$ mplayer -nocache http://www.byuradio.org/streaming/instrumental.asx

mplayer -vfm 5 http://www.byuradio.org/streaming/instrumental.asx
MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner 499.1 MHz (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/jon-michael/.mplayer/config
Reading /home/jon-michael/.mplayer/codecs.conf: Can't open '/home/jon-michael/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /home/jon-michael/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /home/jon-michael/.mplayer/input.conf: No such file or directory
Input config file /usr/share/mplayer/input.conf parsed: 53 binds

Playing http://www.byuradio.org/streaming/instrumental.asx.
Option stream url: This URL doesn't have a hostname part.
File not found: 'streaming/instrumental.asx'
Failed to open http://www.byuradio.org/streaming/instrumental.asx


Exiting... (End of file)


It appears that all of my config files are missing. Why is that? I go to my /home/user/.mplayer/ directory and confirm that they aren't there I just have a plain config file named "config" that just says this when I edit it with nano:

Code:

# Write your default config options here!


How on earth did this happen? Why do I have to configure mplayer when it worked out of the emerge in the past? How do I configure it?
Back to top
View user's profile Send private message
djoptimum
n00b
n00b


Joined: 26 Sep 2004
Posts: 1
Location: Bath, England

PostPosted: Fri Oct 01, 2004 7:45 pm    Post subject: Reply with quote

ive got exactly the same problem - wierider though it worked fine for a few days then literally stopped doing so

i didnt change anything nor re-emerge it

any ideas peeps?
Back to top
View user's profile Send private message
celtx
n00b
n00b


Joined: 28 Sep 2004
Posts: 3

PostPosted: Fri Oct 01, 2004 9:02 pm    Post subject: Reply with quote

I think unless you need to override defaults then the config files are read from /usr/share/mplayer directory

cat /usr/share/mplayer/mplayer.conf
##
## MPlayer config file
##
## This file can be copied to /usr/local/etc/mplayer.conf and/or ~/.mplayer/config


another issue is that well the code is out of date
http://www.mplayerhq.hu/homepage/design7/news.html
2004.07.15, Wednesday :: MPlayer 1.0pre5 released

* media-video/mplayer
Latest version available: 1.0_pre4-r7
Latest version installed: 1.0_pre4-r7

there have also been MAJOR updates in CVS since July.
(note you also want the CVS source for ffmpeg to copy the dirs libavcodec and libavformat into mplayer source tree)

by the way it would be more appropriate to use
mplayer -playlist http://www.byuradio.org/streaming/instrumental.asx
since it is not a media file url but rather a redirector playlist url.

and just for your info
mplayer -user-agent "NSPlayer/4.10" mms://windowsmedia2.byu.edu/Instrumental
returned this with my instaled mplayerl
MPlayer was compiled WITHOUT streaming(network) support
an issue since this is a streamed file which uses the network.

I am working on compiling my own CVS version.
Back to top
View user's profile Send private message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Sun Oct 03, 2004 7:04 pm    Post subject: Reply with quote

Okay did as you suggested. Those errors went away for the most part, but still no sound. Here is what it does now:

Code:

jon-michael@radio .mplayer $ mplayer -playlist http://www.byuradio.org/streaming/instrumental.asx
MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner 499.1 MHz (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/jon-michael/.mplayer/config
Option stream url: This URL doesn't have a hostname part.
File not found: 'streaming/instrumental.asx'
Failed to open http://www.byuradio.org/streaming/instrumental.asx
Error while opening playlist file http://www.byuradio.org/streaming/instrumental.asx: No such file or directory


And of course no sound. The files do exist, because I can stream them on my Windows 2000 box just fine. What needs to be done?
I have also re-emerged mplayer in hopes I can upgrade to the newest one and I emerge synced to get the latest ebuild, but this this is the newest version I have

Code:

root@radio# emerge -s mplayer
*  media-video/mplayer
      Latest version available: 1.0_pre5-r3
      Latest version installed: 1.0_pre5-r3
      Size of downloaded files: 5,638 kB
      Homepage:    http://www.mplayerhq.hu/
      Description: Media Player for Linux
      License:     GPL-2


This is total garbage. I can't figure out why I can't get a newer one in portage after I emerge sync. Any ideas? :(
_________________
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Back to top
View user's profile Send private message
celtx
n00b
n00b


Joined: 28 Sep 2004
Posts: 3

PostPosted: Wed Oct 06, 2004 1:16 am    Post subject: more info Reply with quote

For some reason this is newer than the version available in my environment.
My suggestion was

1. to forget using ebuilds for mplayer and build yourself from scratch using the CVS source code.

http://www.mplayerhq.hu/homepage/design7/dload.html
read about getting the CVS source at end of page

then do a ./configure and read what libraries you are missing for codecs or input/output.

use emerge to get these missing packages installed and reconfigure
for live.com streaming support which you may want read instructions at
http://www.live.com/mplayer/
when you are satisfied with output of ./configure script type make
this worked okay for me (of course i just run my local version from build dir and do not install it)

cd /home/user/mplayer_builddir
./mplayer -playlist http://www.byuradio.org/streaming/instrumental.asx

2. Alternative I found later is that you can add network to your USE flags in
the emerge to allow adding network support when building mplayer using ebuild.
This option was not enabled by default in my settings under /etc/make.profile/make.defaults
or overridden in /etc/make.conf

USE="network" emerge mplayer

during the build you should see in configure output
Enabled optional drivers:
Input: network

a test shows this worked as well with the installed version of mplayer or
mplayer -playlist http://www.byuradio.org/streaming/instrumental.asx
Back to top
View user's profile Send private message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Wed Oct 06, 2004 5:17 am    Post subject: Reply with quote

It appears that I didn't have "network" in my USE flags. I re-emerged with "network and it seems to be working. Thanks for the help! :)
_________________
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum