MPD
Welcome, Guest. Please login or register.
September 06, 2010, 12:06:45 pm

Login with username, password and session length
Search:     Advanced search
8511 Posts in 1935 Topics by 1533 Members
Latest Member: sriman
* Home Help Search Login Register
+  MPD
|-+  Music Player Daemon
| |-+  Configs and Rigs
| | |-+  No Sound to Stream
« previous next »
Pages: [1] Print
Author Topic: No Sound to Stream  (Read 944 times)
yerm
Newbie
*
Posts: 3


View Profile
« on: February 06, 2010, 09:09:59 pm »

 sad

Heyil Folks

Im  was using mpd to play in my pc and now i want make stream.

I configure icecast and the mpd.conf, but i can not hear something :-/

When i start my gmpc appear the message : problem to decoding

In icecast error log i see:

Code:
[2010-02-06  23:59:32] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2010-02-06  23:59:33] INFO source/get_next_buffer End of Stream /mpd.ogg
[2010-02-06  23:59:33] INFO source/source_shutdown Source "/mpd.ogg" exiting
[2010-02-06  23:59:34] WARN source/source_fallback_file unable to open file "/usr/share/icecast/web/example2.ogg"

So i belive the conection with icecast is ok, i see status page of icecast the current song.

The error in /var/log/mpd/mpd.log
Code:
Feb 07 00:06 : input_curl: curl failed: The requested URL returned error: 404

And the anunce to gmpc the error decoding localhost:8000/mpd.ogg

Can someone help to set this?

Regards,
Logged
max
Developer
Administrator
Sr. Member
*****
Posts: 288


View Profile WWW
« Reply #1 on: February 08, 2010, 12:40:36 am »

We don't have mind-reading abilities and thus do not know what you configured.
Logged
yerm
Newbie
*
Posts: 3


View Profile
« Reply #2 on: February 11, 2010, 06:41:28 am »

This is my settings

I still without no sound with shout mode.

In alsa mode works ok.

Code:
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

######################## REQUIRED PATHS ########################
music_directory                 "/pub/Musica"
playlist_directory              "~/playlists"
db_file                         "/var/lib/mpd/mpd.db"
log_file                        "/var/log/mpd/mpd.log"
error_file                      "/var/log/mpd/mpd.error"
################################################################


######################## OPTIONAL PATHS ########################
#
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
#
pid_file                        "/var/run/mpd/mpd.pid"
#
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit.  This will be
# used to restore the session the next time it is run.
#
state_file                      "/var/lib/mpd/mpdstate"
#
################################################################


######################## DAEMON OPTIONS ########################
#
# If started as root, MPD will drop root privileges and run as
# this user instead.  Otherwise, MPD will run as the user it was
# started by.  If left unspecified, MPD will not drop root
# privileges at all (not recommended).
#
user                            "mpd"
#
# The address and port to listen on.
#
bind_to_address                 "localhost"
port                            "6600"
#
# Controls the amount of information that is logged.  Can be
# "default", "secure", or "verbose".
#
log_level                       "default"
#
# If Zeroconf is configured, the service name to publish.  This
# should be unique on your local network, but name collisions
# will be taken care of for you.
#
#zeroconf_name                   "Music Player"
#
################################################################


########################## PERMISSIONS #########################
#
# MPD can require that users specify a password before using it.
# You may specify one ore more here, along with what users who
# log in with that password are allowed to do.
#
#password                        "password@read,add,control,admin"
#
# Specifies what permissions a user who has not logged in with a
# password has.  By default, all users have full access to MPD
# if no password is specified above, or no access if one or
# more passwords are specified.
#
#default_permissions             "read,add,control,admin"
#
################################################################


########################## AUDIO OUTPUT ########################
#
# MPD supports many audio output types, as well as playing
# through multiple audio outputs at the same time.  You can
# specify one or more here.  If you don't specify any, MPD will
# automatically scan for a usable audio output.
#
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
#
# An example of an ALSA output:
#
#audio_output {
#        type                    "alsa"
#        name                    "My ALSA Device"
#        device                  "hw:0,0"     # optional
#        format                  "44100:16:2" # optional
# options "dev=default"
#}
#
# An example of a shout output (for streaming to Icecast):
#
audio_output {
        type                    "shout"
        name                    "My Shout Stream"
        host                    "localhost"
        port                    "8000"
        mount                   "/mpd.ogg"
        password                "hackme"
        quality                 "5.0"
#       bitrate                 "128"
        format                  "44100:16:1"
#optionals
#encoding can be ogg by default
        encoding        "ogg"
#        user                    "source"               
#        description             "My Stream Description"
#        genre                   "jazz"                 
#        public                  "no"                   
}

#
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
#
#audio_output_format             "44100:16:2"
#
# If MPD has been compiled with libsamplerate support, this
# specifies the sample rate converter to use.  Possible
# values can be found in the mpd.conf man page or the
# libsamplerate documentation.
#
#samplerate_converter            "Fastest Sinc Interpolator"
#
################################################################


############################# MIXER ############################
#
# MPD needs to know what mixer settings to change when you
# adjust the volume.  If you don't specify one here, MPD will
# pick one based on which ones it was compiled with support for.
#
# An example for controlling an ALSA mixer:
#
#mixer_type                      "alsa"
#mixer_device                    "default"
#mixer_control                   "PCM"
#
# An example for controlling an OSS mixer:
#
#mixer_type                      "oss"
#mixer_device                    "/dev/mixer"
#mixer_control                   "PCM"
#
# If you want MPD to adjust the volume of audio sent to the
# audio outputs, you can tell it to use the software mixer:
#
mixer_type                      "software"
#
################################################################


######################### NORMALIZATION ########################
#
# Specifies the type of ReplayGain to use.  Can be "album" or
# "track".  ReplayGain will not be used if not specified.  See
# <http://www.replaygain.org> for more details.
#
#replaygain                      "album"
#
# Sets the pre-amp used for files that have ReplayGain tags.
#
#replaygain_preamp               "0"
#
# Enable on the fly volume normalization.  This will cause the
# volume of all songs played to be adjusted so that they sound
# as though they are of equal loudness.
#
#volume_normalization            "no"
#
################################################################


########################### BUFFERING ##########################
#
# The size of the buffer containing decoded audio.  You probably
# shouldn't change this.
#
#audio_buffer_size               "2048"
#
# How much of the buffer to fill before beginning to play.
# Increase this if you hear skipping when changing songs.
#
#buffer_before_play              "10%"
#
# Similar options for the HTTP stream buffer.  If you hear
# skipping while playing HTTP streams, you may wish to increase
# these.
#
#http_buffer_size                "128"
#http_prebuffer_size             "25%"
#
################################################################


########################### HTTP PROXY #########################
#
# Specifies the HTTP proxy to use for playing HTTP streams.
#
#http_proxy_host                 "proxy.isp.com"
#http_proxy_port                 "8080"
#http_proxy_user                 "user"
#http_proxy_password             "password"
#
################################################################


############################# LIMITS ###########################
#
# These are various limits to prevent MPD from using too many
# resources.  You should only change them if they start
# restricting your usage of MPD.
#
#connection_timeout              "60"
#max_connections                 "5"
#max_playlist_length             "16384"
#max_command_list_size           "2048"
#max_output_buffer_size          "8192"
#
################################################################


###################### CHARACTER ENCODINGS #####################
#
# If file or directory names do not display correctly, then you
# may need to change this.  In most cases it should be either
# "ISO-8859-1" or "UTF-8".  You must recreate your database
# after changing this (use mpd --create-db).
#
#filesystem_charset              "ISO-8859-1"
#
# The encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding                  "ISO-8859-1"
#
################################################################


######################### OTHER OPTIONS ########################
#
# Try disabling this if you have MP3s which appear to end
# abruptly.  If this solves the problem, it is highly
# recommended that you fix your MP3s with vbrfix (available from
# <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point you can re-enable support for gapless MP3 playback.
#
#gapless_mp3_playback             "yes"
#
# Enable this if you wish to use your MPD created playlists in
# other music players.
#
#save_absolute_paths_in_playlists "no"
#
# A list of tag types that MPD will scan for and make available
# to clients.
#
#metadata_to_use                  "artist,album,title,track,name,genre,date,composer,performer,disc"
#
################################################################


################### STREAMING TEST ###############################

#audio_output {   
# type "httpd"   
# name "My HTTP Stream"   
# encoder "vorbis" # optional, vorbis or lame   
# port "8000"   
# quality "5.0" # do not define if bitrate is defined   
# bitrate "128" # do not define if quality is defined   
# format "44100:16:1"   
#}

Icecaste Settings

http://pastebin.ca/1793757

/o
Logged
max
Developer
Administrator
Sr. Member
*****
Posts: 288


View Profile WWW
« Reply #3 on: February 12, 2010, 12:40:51 am »

This awfully sounds like you want to create a loop between icecast and MPD. MPD plays the music from icecast, and icecast forwards the music from MPD.
Logged
yerm
Newbie
*
Posts: 3


View Profile
« Reply #4 on: February 13, 2010, 06:56:35 am »

 huh

Works, in some cases.

That is very stranger:

Look, when i open with
Code:
mplayer -playlist http://localhost:8000/mpd.ogg.m3u
  afro
Works the sound.

Code:
mplayer -playlist http://localhost:8000/mpd.ogg
  angry
Doesnt work.

with gmpc player and sonata, the track is showing and i have no sound.


By the way i update icecaste.

Icecast: http://pastebin.ca/1795202
Mpd: http://pastebin.ca/1795204

Logged
Qball
Just me
Administrator
Hero Member
*****
Posts: 1091


View Profile
« Reply #5 on: February 21, 2010, 03:22:59 am »


Code:
mplayer -playlist http://localhost:8000/mpd.ogg
  angry
Doesnt work.

This does not work, because that url is not a playlist.. (and you tell mplayer that it is with -playlist).

Quote

with gmpc player and sonata, the track is showing and i have no sound.


By the way i update icecaste.

You do realize that clients are only for controlling MPD.  Like a remote control on a CD player.
Logged
xbox360game
Newbie
*
Posts: 1


View Profile
« Reply #6 on: April 20, 2010, 12:31:43 am »

Great Post! I personally really like your content. This is a great website. I will make sure that I stop back again!
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!