[RELEASE] MPDClient - Client for MPD (Music Player Daemon) Servers

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
P.Kosunen Offline
Senior Member
Posts: 101
Joined: Jan 2010
Reputation: 0
Post: #131
lzoubek Wrote:hmm .. this is pretty lagre database. Mine has 10 times less. There is currently no way setting any limits. "getting artists" phase simply queries server for list of artists, nothing more. Are you using x86 or x86_64 architecture? What about other python MPD Clients, does sonata for example work fine?

Gentoo x64. That sonata has massive dependencies, will try later.

This is not a big issue, i can always play directly from XBMC or VDR. MPD is just for background listening, i have currently basic controls through irexec.
find quote
lzoubek Offline
Member
Posts: 81
Joined: Aug 2010
Reputation: 0
Post: #132
P.Kosunen Wrote:When i start this addon, in "getting artists" phase it consumes all memory & swap and crashes XBMC. Is there some limit i can adjust etc.?

(mpd database file is ~23MB, 4GB memory, 4GB swap)
I've pushed an attempt to save memory when loading artists. Could you pull & retest from github? I've pushed it to eden branch and it should work on dharma too.
find quote
Beachboy Offline
Junior Member
Posts: 21
Joined: Sep 2010
Reputation: 0
Post: #133
Hi All,

well, MPD Client would be the real killer for me.
But I seem to have some issues, when it starts
it just says: "An error occured, see log"

My MPD version is kind of old: 0.13.2
Hope it is possible to work anyway, since all
other clients (Minion, Mpod) are working with it.

Thanks for your help,

Guenter

Edit: Happens with 1.04 and 2.04

PS: Here is the log of:
- starting XBMC
- Starting MPD Client
- Stopping XBMC
(I had to shorten it slightly)

PHP Code:
21:42:08 T:3078645616 M:228192256  NOTICEload settings...
21:42:08 T:3078645616 M:228192256   ERRORUnable to load libcrystalhd.so.3reasonlibcrystalhd.so.3Kann die Shared-Object-Datei nicht öffnenDatei oder Verzeichnis nicht gefunden
21
:42:08 T:3078645616 M:228192256  NOTICEspecial://profile/ is mapped to: special://masterprofile/
21:42:08 T:3078645616 M:228192256  NOTICEloading special://masterprofile/guisettings.xml
21:42:08 T:3078645616 M:227811328  NOTICEGetting hardware information now...
21:42:08 T:3078645616 M:227811328  NOTICEChecking resolution 12
21
:42:08 T:3078645616 M:227811328  NOTICELoading player core factory settings from special://xbmc/system/playercorefactory.xml.
21:42:08 T:3078645616 M:227811328  NOTICELoaded playercorefactory configuration
21
:42:08 T:3078645616 M:227811328  NOTICELoading player core factory settings from special://masterprofile/playercorefactory.xml.
21:42:08 T:3078645616 M:227811328  NOTICEspecial://masterprofile/playercorefactory.xml does not exist. Skipping.
21:42:08 T:3078645616 M:227811328  NOTICENo advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
21:42:08 T:3078645616 M:227811328  NOTICE: Default DVD Playerdvdplayer
21
:42:08 T:3078645616 M:227811328  NOTICE: Default Video Playerdvdplayer
21
:42:08 T:3078645616 M:227811328  NOTICE: Default Audio Playerpaplayer
21
:42:08 T:3078645616 M:227811328  NOTICELoading media sources from special://masterprofile/sources.xml
21:42:08 T:3078645616 M:225394688  NOTICEUsing visual 0x100
21
:42:09 T:3078645616 M:221978624  NOTICEGL_VENDOR DRI R300 Project
21
:42:09 T:3078645616 M:221978624  NOTICEGL_RENDERER Mesa DRI R300 (R350 4E4820090101 x86/MMX+/3DNow!+/SSE2 TCL DRI2
21
:42:09 T:3078645616 M:221978624  NOTICEGL_VERSION 1.5 Mesa 7.9-devel
21
:42:09 T:3078645616 M:221978624  NOTICEGL_SHADING_LANGUAGE_VERSION NULL
21
:42:09 T:3078645616 M:221978624  NOTICEGL_EXTENSIONS GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_provoking_vertex GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_MESAX_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_framebuffer_blit GL_EXT_framebuffer_object GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_APPLE_packed_pixels GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATI_separate_stencil GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_rectangle GL_NV_vertex_program GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
21
:42:09 T:3078645616 M:222232576   ERRORGLXSame window as beforerefreshing context
21
:42:09 T:3078645616 M:223866880  NOTICEstart dvd mediatype detection
21
:42:09 T:3078645616 M:223866880  NOTICEinitializing playlistplayer
21
:42:09 T:3078645616 M:223866880  NOTICEDONE initializing playlistplayer
21
:42:09 T:3078645616 M:220114944  NOTICEUpdateLibraries Starting video library startup scan
21
:42:09 T:3078645616 M:220090368  NOTICEUpdateLibraries Starting music library startup scan
21
:42:09 T:3051223920 M:220090368  NOTICEVideoInfoScannerStarting scan ..
21:42:09 T:3078645616 M:219709440  NOTICEinitialize done
21
:42:09 T:3078645616 M:219709440  NOTICERunning the application...
21:42:09 T:3078645616 M:219693056  NOTICEESStarting event server
21
:42:09 T:3078645616 M:219693056  NOTICEDSStarting dbus server
21
:42:09 T:3024083824 M:219660288  NOTICEESStarting UDP Event server on 127.0.0.1:9777
21
:42:09 T:3024083824 M:219660288  NOTICEUDPListening on port 9777
21
:42:09 T:3078645616 M:220119040  NOTICEstarting zeroconf publishing
21
:42:09 T:3015691120 M:220246016  NOTICEDSStarting DBUS server in Run Application aka thread
21
:42:09 T:3040869232 M:220119040  NOTICEMy MusicScanning for music info using worker threadoperation took 00:00
21
:42:23 T:2884787056 M:223756288  NOTICE: -->Python Interpreter Initialized<--
21:42:24 T:2884787056 M:220827648   ERRORTranslateResolution invalid resolution specified for 0
21
:42:24 T:2884787056 M:220827648  NOTICEPMPDClient
21
:42:24 T:2884787056 M:220827648  NOTICEConnecting  to  MPD 192.168.2.26:6600
21
:42:24 T:2884787056 M:220811264  NOTICEConnected
21
:42:24 T:2884787056 M:220684288  NOTICEHandling changes - ['mixer''playlist''player''options']
21:42:24 T:2815183728 M:221413376  NOTICEStarting time poller thread
21
:42:24 T:2884787056 M:221396992  NOTICETraceback (most recent call last):
21:42:24 T:2884787056 M:221396992  NOTICE:   File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-c673dcb/resources/lib/gui.py"line 204in _connect
21
:42:24 T:2884787056 M:221396992  NOTICE:     self._handle_changes(self.client,['mixer','playlist','player','options'])
21:42:24 T:2884787056 M:221396992  NOTICE:   File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-c673dcb/resources/lib/gui.py"line 555in _handle_changes
21
:42:24 T:2884787056 M:221396992  NOTICE:     self.controls.update_player_controls(self.getControl(PLAYER_CONTROL),state)
21:42:24 T:2884787056 M:221396992  NOTICE:   File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-c673dcb/resources/lib/playercontrols.py"line 103in update_player_controls
21
:42:24 T:2884787056 M:221396992  NOTICE:     img self._get_image(name+status[name])
21:42:24 T:2884787056 M:221396992  NOTICEKeyError'single'
21:42:26 T:2884787056 M:221167616  NOTICEdisconnecting
21
:42:26 T:2884787056 M:221167616  NOTICEwaiting for poller thread
21
:42:26 T:2884787056 M:221167616  NOTICEdone
21
:42:26 T:2884787056 M:221167616  NOTICEdisconnecting time poller
21
:42:26 T:2884787056 M:221184000  NOTICEwaiting for time poller thread
21
:42:26 T:2884787056 M:221184000  NOTICEdone
21
:42:26 T:2884787056 M:221184000  NOTICEclient disconnected
21
:42:30 T:3078645616 M:221675520  NOTICEStoring total System Uptime
21
:42:30 T:3078645616 M:221675520  NOTICESaving settings
21
:42:30 T:3078645616 M:221708288  NOTICEstop all
21
:42:32 T:3051223920 M:221720576  NOTICEVideoInfoScannerFinished scanScanning for video info took 00:23
21
:42:32 T:3078645616 M:221847552  NOTICEESStopping event server
21
:42:32 T:3078645616 M:221847552  NOTICEstopping zeroconf publishing
21
:42:33 T:3015691120 M:221847552  NOTICEDSDBUS server stopped
21
:42:33 T:3024083824 M:221863936  NOTICEESUDP Event server stopped
21
:42:33 T:3078645616 M:221876224  NOTICEstop dvd detect media
21
:42:33 T:3078645616 M:221888512  NOTICEstop sap announcement listener
21
:42:33 T:3078645616 M:221888512  NOTICEclean cached files!
21:42:33 T:3078645616 M:221888512  NOTICEunload skin
21
:42:34 T:3078645616 M:221917184   ERRORClearBlockTrying to clear non existent block /home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-c673dcb
21
:42:34 T:3078645616 M:221941760   ERRORPrevious line repeats 1 times.
21:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDPrevTrackNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDPlayNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDStopNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDNextTrackNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDRandomOffNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture OSDRepeatNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture SingleOffNF.png
21
:42:34 T:3078645616 M:221941760 WARNINGCleanupHaving to cleanup texture ConsumeOffNF.png
21
:42:34 T:3078645616 M:222576640  NOTICEstop python
21
:42:34 T:3078645616 M:224075776  NOTICEstopped
21
:42:34 T:3078645616 M:224075776  NOTICEdestroy
21
:42:34 T:3078645616 M:224075776  NOTICEunload sections 
find quote
lzoubek Offline
Member
Posts: 81
Joined: Aug 2010
Reputation: 0
Post: #134
Unfortunately, I do not have a way to test against MPD 0.13. I can push posiible fix + more debug logging on github without releasing it to official repo. Would you be able to get MPD Client directly from github?

Edit: problem seems to be, that your server does not support single playback mode and maybe consume too. I'll have to change a few thinks to make client more robust

Edit2: I've pushed code, that should possibly fix your bug to github eden branch. You can either clone it or download as zip and overwrite files in your addons directory. I hope it helps and no other bugs will rise.
(This post was last modified: 2011-10-04 23:48 by lzoubek.)
find quote
jschelfh Offline
Junior Member
Posts: 7
Joined: Jun 2011
Reputation: 0
Post: #135
Maybe a stupid question... is this also supposed to work on an appleTV box ?

I get an error in the script.mpdc
find quote
lzoubek Offline
Member
Posts: 81
Joined: Aug 2010
Reputation: 0
Post: #136
jschelfh Wrote:Maybe a stupid question... is this also supposed to work on an appleTV box ?

I get an error in the script.mpdc
I do not have such device and am not able to test on it. But if other python scripts do, MPD Client should too. Please open an issue on github with all possible details. I can than see what's happening, try to fix it and you'll test it - there's no other way to do that.
find quote
Beachboy Offline
Junior Member
Posts: 21
Joined: Sep 2010
Reputation: 0
Post: #137
Hello Izoubeck,

absolutly perfect, your are great.
I will test the new code asap and let you know.

Just a quick question, which code do you want me to test?
The normal Download from the Download button?

Best regards,

Guenter

PS: Short update, with the new version of code, the error changes:
Quote:19:55:36 T:2872052592 M:278470656 NOTICE: Connecting to MPD 192.168.2.26:6600
19:55:36 T:2872052592 M:278470656 NOTICE: Connected
19:55:36 T:2838829936 M:278327296 NOTICE: Starting time poller thread
19:55:36 T:2872052592 M:278327296 NOTICE: Handling changes - ['mixer', 'playlist', 'player', 'options']
19:55:36 T:2872052592 M:278327296 NOTICE: Traceback (most recent call last):
19:55:36 T:2872052592 M:278327296 NOTICE: File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-6fce3ca/resources/lib/gui.py", line 209, in _connect
19:55:36 T:2872052592 M:278327296 NOTICE: self._update_playlist_browser(self.client)
19:55:36 T:2872052592 M:278327296 NOTICE: File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-6fce3ca/resources/lib/gui.py", line 412, in _update_playlist_browser
19:55:36 T:2872052592 M:278327296 NOTICE: self.playlists = client.listplaylists()
19:55:36 T:2872052592 M:278327296 NOTICE: File "/home/guenter/.xbmc/addons/lzoubek-xbmc-plugin-mpdc-6fce3ca/resources/lib/pmpd.py", line 38, in __getattr__
19:55:36 T:2872052592 M:278327296 NOTICE: raise xbmpc.CommandError('No Permission for :'+attr)
19:55:36 T:2872052592 M:278327296 NOTICE: CommandError: No Permission for :listplaylists
19:55:39 T:2872052592 M:278237184 NOTICE: disconnecting
(This post was last modified: 2011-10-05 19:58 by Beachboy.)
find quote
lzoubek Offline
Member
Posts: 81
Joined: Aug 2010
Reputation: 0
Post: #138
Beachboy Wrote:PS: Short update, with the new version of code, the error changes:

Hello, I've fixed listing playlist issue - MPD 0.13 does not support playlists at all? Or maybe it has another command for it. Anyway, playlists unfortunatelly won't work for you at all. I've pushed to github, eden branch, please try once more.

Anyway, it would be much better if you could update your MPD server.
find quote
jschelfh Offline
Junior Member
Posts: 7
Joined: Jun 2011
Reputation: 0
Post: #139
I have posted a request on github

Thanks in advance
find quote
Cath Barkley Offline
Member
Posts: 56
Joined: Nov 2011
Reputation: 1
Post: #140
Hi Guys.

Bit of a noob here, and considering whether to install XBMC for Windows or XBMC for Linux. Could somebody tell me whether MPDClient integrates well with the regular XBMC music library? i.e. do you have all your fanart and last.fm scraped information, etc?

Also, can you set it up running alongside another MPD client? i.e. can I install one of the Android or iOS MPD applications and use that when I can't be bothered with turning the TV on?
find quote
Post Reply