Hi misc I have been trying to stream audio via mpd to my smartphone
(with mpdroid) without success. I can't see the port 8000 open on
netstat, port 6600 for remote control is working fine. I don't know if
its related but vorbis encoder isn't working for me.


mpd.log and mpd.conf

=======================================================================
mpd.log
=======================================================================
Nov 19 09:38 : state_file: Loading state file /var/spool/mpd/mpdstate
Nov 19 09:38 : playlist: queue song 2:"warcry/2002- - WarCry/03 - Quiero.mp3"
Nov 19 09:38 : decoder_thread: probing plugin ffmpeg
Nov 19 09:38 : ffmpeg: detected input format 'mp3' (MP2/3 (MPEG audio layer 
2/3))
Nov 19 09:38 : ffmpeg/mp3: id3v2 ver:3 flags:00 len:70589
Nov 19 09:38 : ffmpeg/mp3: Skipping 0 bytes of junk at 70599.
Nov 19 09:38 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 70599 bytes 
read:76263 seeks:0
Nov 19 09:38 : ffmpeg/mjpeg: marker=d8 avail_size_in_buf=67818
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=e0 avail_size_in_buf=67816
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 16 bytes (128 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=e2 avail_size_in_buf=67798
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 4055 bytes (32440 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=e1 avail_size_in_buf=63740
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 4279 bytes (34232 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=e1 avail_size_in_buf=59458
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 2666 bytes (21328 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=db avail_size_in_buf=56789
Nov 19 09:38 : ffmpeg/mjpeg: index=0
Nov 19 09:38 : ffmpeg/mjpeg: qscale[0]: 1
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=db avail_size_in_buf=56720
Nov 19 09:38 : ffmpeg/mjpeg: index=1
Nov 19 09:38 : ffmpeg/mjpeg: qscale[1]: 1
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=c0 avail_size_in_buf=56651
Nov 19 09:38 : ffmpeg/mjpeg: Changeing bps to 8
Nov 19 09:38 : ffmpeg/mjpeg: sof0: picture: 500x500
Nov 19 09:38 : ffmpeg/mjpeg: component 0 2:2 id: 0 quant:0
Nov 19 09:38 : ffmpeg/mjpeg: component 1 1:1 id: 1 quant:1
Nov 19 09:38 : ffmpeg/mjpeg: component 2 1:1 id: 2 quant:1
Nov 19 09:38 : ffmpeg/mjpeg: pix fmt id 22111100
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 17 bytes (136 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=56632
Nov 19 09:38 : ffmpeg/mjpeg: class=0 index=0 nb_codes=12
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 31 bytes (248 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=56599
Nov 19 09:38 : ffmpeg/mjpeg: class=1 index=0 nb_codes=251
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 181 bytes (1448 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=56416
Nov 19 09:38 : ffmpeg/mjpeg: class=0 index=1 nb_codes=12
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 31 bytes (248 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=56383
Nov 19 09:38 : ffmpeg/mjpeg: class=1 index=1 nb_codes=251
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 181 bytes (1448 bits)
Nov 19 09:38 : ffmpeg/mjpeg: escaping removed 278 bytes
Nov 19 09:38 : ffmpeg/mjpeg: marker=da avail_size_in_buf=56200
Nov 19 09:38 : ffmpeg/mjpeg: component: 0
Nov 19 09:38 : ffmpeg/mjpeg: component: 1
Nov 19 09:38 : ffmpeg/mjpeg: component: 2
Nov 19 09:38 : ffmpeg/mjpeg: marker parser used 55921 bytes (447366 bits)
Nov 19 09:38 : ffmpeg/mjpeg: marker=d9 avail_size_in_buf=0
Nov 19 09:38 : ffmpeg/mjpeg: decode frame unused 0 bytes
Nov 19 09:38 : ffmpeg/mp3: max_analyze_duration 5000000 reached at 5015510 
microseconds st:0
Nov 19 09:38 : ffmpeg/mp3: Estimating duration from bitrate, this may be 
inaccurate
Nov 19 09:38 : ffmpeg/mp3: 0: start_time: 0.000 duration: 4296.167
Nov 19 09:38 : ffmpeg/mp3: 1: start_time: -9223372036854.775 duration: 27.399
Nov 19 09:38 : ffmpeg/mp3: stream: start_time: 0.000 duration: 304.434 
bitrate=321 kb/s
Nov 19 09:38 : ffmpeg/mp3: After avformat_find_stream_info() pos: 274375 bytes 
read:281063 seeks:0 frames:195
Nov 19 09:38 : ffmpeg: codec 'mp3'
Nov 19 09:38 : decoder: audio_format=44100:16:2, seekable=true
Nov 19 09:38 : client: [0] opened from 192.168.1.131:40519
Nov 19 09:38 : client: [0] process command "commands"
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [1] opened from 192.168.1.131:40520
Nov 19 09:38 : client: [1] process command "commands"
Nov 19 09:38 : client: [1] command returned 0
Nov 19 09:38 : client: [0] process command "list "albumartist""
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [0] process command "list "artist""
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [0] process command "list "album" "group" "artist""
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [0] process command "list "album" "group" "albumartist""
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [0] process command "stats"
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [0] process command "status"
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [1] process command "idle "database" "mixer" "options" 
"output" "player" "playlist" "sticker" "update""
Nov 19 09:38 : client: [1] command returned 1
Nov 19 09:38 : client: [0] process command "status"
Nov 19 09:38 : client: [0] command returned 0
Nov 19 09:38 : client: [1] process command "idle "database" "mixer" "options" 
"output" "player" "playlist" "sticker" "update""
Nov 19 09:38 : client: [1] command returned 1
Nov 19 09:38 : client: [2] opened from 192.168.1.131:40527
Nov 19 09:38 : client: [2] process command "play"
Nov 19 09:38 : output: opened plugin=httpd name="My HTTP Stream" 
audio_format=44100:16:2
Nov 19 09:38 : output: opened plugin=sndio name="sndio output" 
audio_format=44100:16:2
Nov 19 09:38 : client: [2] command returned 0
Nov 19 09:38 : replay_gain: replay gain mode has changed off->album
Nov 19 09:38 : replay_gain: scale=1.000000
Nov 19 09:38 : replay_gain: replay gain mode has changed off->album
Nov 19 09:38 : replay_gain: scale=1.000000
Nov 19 09:38 : client: [2] process command "status"
Nov 19 09:38 : client: [2] command returned 0
Nov 19 09:38 : client: [1] process command "idle "database" "mixer" "options" 
"output" "player" "playlist" "sticker" "update""
Nov 19 09:38 : client: [1] command returned 1
Nov 19 09:38 : state_file: Saving state file /var/spool/mpd/mpdstate
Nov 19 09:39 : client: [3] opened from 192.168.1.131:40528
Nov 19 09:39 : client: [3] process command "pause"
Nov 19 09:39 : client: [3] command returned 0
Nov 19 09:39 : client: [3] process command "status"
Nov 19 09:39 : client: [3] command returned 0
Nov 19 09:39 : client: [1] process command "idle "database" "mixer" "options" 
"output" "player" "playlist" "sticker" "update""
Nov 19 09:39 : client: [1] command returned 1
Nov 19 09:39 : output: closed plugin=sndio name="sndio output"
Nov 19 09:39 : state_file: Saving state file /var/spool/mpd/mpdstate
Nov 19 09:39 : state_file: Saving state file /var/spool/mpd/mpdstate
Nov 19 09:39 : player: played "warcry/2002- - WarCry/02 - Luz del Norte.mp3"
Nov 19 09:39 : output: closed plugin=httpd name="My HTTP Stream"
Nov 19 09:39 : listen: listen_global_finish called

=======================================================================
mpd.conf
=======================================================================

# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This 
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory                 "/home/msv/Music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use 
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory              "/var/spool/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the 
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file                         "/var/spool/mpd/mpd.db"
# 
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
log_file                        "/var/log/mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
pid_file                        "/var/spool/mpd/mpd.pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server 
# state will be reset on server start up.
#
state_file                      "/var/spool/mpd/mpdstate"
#
# The location of the sticker database.  This is a database which
# manages dynamic information attached to songs.
#
sticker_file                    "/var/spool/mpd/sticker.sql"
#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
user                            "_mpd"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon. Not effective if
# systemd socket activiation is in use.
#
# For network
bind_to_address         "any"
#
# And for Unix Socket
#bind_to_address                "~/.mpd/socket"
#
#bind_to_address                 "127.0.0.1"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#
port                            "6600"
#
# This setting controls the type of information which is logged. Available 
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
log_level                       "verbose"
#
restore_paused "yes"
#
# This setting enables automatic update of MPD's database when files in 
# music_directory are changed.
#
auto_update     "no"
#
###############################################################################


# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following 
# symbolic links outside of the configured music_directory.
#
follow_outside_symlinks "yes"
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
follow_inside_symlinks          "yes"
#
###############################################################################

# Input #######################################################################
#

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

#
###############################################################################

# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple 
# audio outputs at the same time, through multiple audio_output settings 
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# An example of a httpd output (built-in HTTP streaming server):
#
audio_output {
        type            "httpd"
        name            "My HTTP Stream"
        encoder         "lame"          # optional, vorbis or lame
        port            "8000"
#       bind_to_address "0.0.0.0"               # optional, IPv4 or IPv6
##      quality         "5.0"                   # do not define if bitrate is 
defined
        bitrate         "192"                   # do not define if quality is 
defined
        format          "44100:16:1"
        max_clients     "0"                     # optional 0=no limit
}
#
# An example of an sndio output.
#
audio_output {
        type            "sndio"
        name            "sndio output"
        mixer_type      "software"
}
#
# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "off", "album", "track" or "auto". "auto" is a special mode that
# chooses between "track" and "album" depending on the current state of
# random playback. If random playback is enabled then "track" mode is used.
# See <http://www.replaygain.org> for more details about ReplayGain.
# This setting is off by default.
#
replaygain                      "auto"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp              "0"
#
# This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
# By default this setting is disabled.
#
#replaygain_missing_preamp      "0"
#
# This setting enables or disables ReplayGain limiting.
# MPD calculates actual amplification based on the ReplayGain tags
# and replaygain_preamp / replaygain_missing_preamp setting.
# If replaygain_limit is enabled MPD will never amplify audio signal
# above its original level. If replaygain_limit is disabled such amplification
# might occur. By default this setting is enabled.
#
replaygain_limit                "yes"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has 
# equal "loudness". This setting is disabled by default.
#
volume_normalization            "yes"
#
###############################################################################

# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you 
# may need to modify this setting.
#
filesystem_charset              "UTF-8"
#
###############################################################################

Reply via email to