Kodi Community Forum

Full Version: [RELEASE] MPDClient - Client for MPD (Music Player Daemon) Servers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
lzoubek Wrote:Currently there is quite unstable version on github, I have not yet finished button images, don't get confused. I am quite busy right now.
My biggest problem with mopidy was, that I was not able to run it and test client against it, I had to test against classic mpd

The issue with self compiled xbmc can be, that you have to compile it with --disable-external-python. Hope it helps. I compile XBMC too (gentoo fan)

I just took a look at your patch in your forked version and it looks kosher for me. You are right, there is no support in XML for various actions, only up,down,right,left. I am glad to have some soulmate :-)

Oh, I actually only copied gui.py (which could lead to trouble I guess) to my addons-folder, nothing else. It did work fairly good, thouh.
hey guys,

I've pushed my latest changes. Added single mode, replaced consume mode radiobutton by icon, finally fixed navigation among player control buttons (can now navigate by right/left even when playing), added option to force settings on startup.

could you test? (if you are interested in those changes)
Just tried this out for the first time. I can connect and see my music, but when I hit play no sound comes out. It says it's streaming.

My mpd is setup to stream http. Is that why it's not working?
guga31bb Wrote:Just tried this out for the first time. I can connect and see my music, but when I hit play no sound comes out. It says it's streaming.

My mpd is setup to stream http. Is that why it's not working?

I am using http streaming and it works fine. I have MPD with streaming enabled on remote machine.
Have you setup stream url in settings?
Have you enabled 'stream when playing' in settings?

To ensure your streaming works, you can try to play it for example : mplayer <stream url>
Does it work using mplayer (or other player)?
Thanks for the response.

Yes, I setup the stream URL and enabled 'stream while playing'. When I try to play it in xbmc, it connects to the stream and says the stream is playing but no sound comes out.

Yes, the stream works -- I'm listening to it right now on a different computer (using ogg123).

It's probably something silly that I overlooked but I can't figure it out =(

EDIT -- Got it to play! Even though it said the stream was playing, I also had to hit play in the xbmc Music Player (the thing that opens when you hit m). Sorry for being slow. I'm excited I got this working -- looks like a great project!
... I habe two problems.

1) I wasnt able to figure out the keybinding for queueing / playing a song / album. Just coud do that with the right mouse buttom.

2) I get weird id tag info on the song playing, not within the plugin but on the homescreen. It seems to be one long string with a lot of % in it (and some parts of the correct file name / tag info).

Can anybody help?

Besides: thanks for making this great plugin.
Thanks for using this plugin Smile
carunga Wrote:... I habe two problems.
1) I wasnt able to figure out the keybinding for queueing / playing a song / album. Just coud do that with the right mouse buttom.
If you are using keyboard, you can queue by pressing 'q' key or you can pop up context menu using 'c' key. (this is also default behaviour in XBMC as whole)
carunga Wrote:2) I get weird id tag info on the song playing, not within the plugin but on the homescreen. It seems to be one long string with a lot of % in it (and some parts of the correct file name / tag info).
Could you attach screenshot? Not sure what exactly you're talking about.
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)
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)

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?

I am sorry, there's nothing I can do with your issue Blush
Sorry for not responding too long, I must have missed your comment.
carunga Wrote:1) I wasnt able to figure out the keybinding for queueing / playing a song / album. Just coud do that with the right mouse buttom.
Key binding for queueing is 'q' or if you wanna pop-up context menu, hit 'c' (these are standard in XBMC)
carunga Wrote:2) I get weird id tag info on the song playing, not within the plugin but on the homescreen. It seems to be one long string with a lot of % in it (and some parts of the correct file name / tag info).
Can you attach screenshot? You probably play MPD and listen to it's stream. I am using it same way and I see no artist/song info on my home screen when listening MPD stream. In fact MPD Client gets this info directly from MPD. XBMC must extract it somehow from stream. So this could be MPD Server issue.
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.
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.
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 
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.
Maybe a stupid question... is this also supposed to work on an appleTV box ?

I get an error in the script.mpdc
Pages: 1 2 3 4 5 6 7 8 9 10 11