Music Player Daemon: nyore setup (uye zvimwe zvekushandisa)

Music Player Daemon + Sonata

MPD (kana Music Player Daemon) inoridza inoridza yakagadzirirwa kumhanya seyesevhisi sevhisi (saka daemon), ine mutengi-server mhando dhizaini, iyo inotanga pamwe chete nekombuta yakazvimiririra yeiyo graphical interface. Izvo zvazviri kuita kunongedza raibhurari yedu yemumhanzi nekumhanya kunoshamisa uye kuita kuti zviwanikwe kwatiri kuti tikwanise kuzviteerera zvese kubva paPC kwayakaisirwa, pamwe nekuneti network.

Kune izvi kune vatengi vakasiyana, ayo anowanikwa kwete chete eLinux, asiwo yeApple, uye kunyangwe yeWindows.

Kunyangwe ichiita zvine mutsindo, kuomarara kwehukama hwayo kunokatyamadza kanopfuura kamwe. Nhasi ndiri kuzokutsanangurira iwe maitiro ekudzivirira MPD kumhanyisa sevhisi uye panzvimbo pacho kutanga patinopinda nemvumo dzevashandisi vedu. Nenzira iyi tinodzivirira njodzi yekuchengetedza (zvisina kufanira paranoid inonditenda 🙂).

Mushure mekutevera magwara mazhinji uye kudzoreredza kanopfuura kamwe kuti ndiigadzirise, ini ndakatora iro basa rekugadzira script yekufambisa kumisikidza kwechirongwa chikuru ichi kuti chive chinoshamisira-chinoshamisira: ndizvozvo.

Kujekesa: gwara (uye chinyorwa) chinoitirwa madhiri kana madhizaina akatorwa, asi kutaura zvakafara, inofanirwa kushandira chero munhu, ichifunga nezvezvakasiyana zvekuparadzira kwese.

Kutanga, isu tinofanirwa kuisa MPD uye kuidzora kuburikidza ne graphical interface yatichashandisa Sonata:

sudo kukodzera kuisa mpd sonata

Ipapo isu tinomisa sevhisi uye tichidzivirira kubva kutanga sisitimu daemon:

sudo service mpd mira

sudo yekuvandudza-rc.d mpd kudzima

Uye ikozvino kana tikaenda kune yekumisikidza yekumisikidza, uye pano ndinofanira kuita kumwe kujekeswa: iyo script inogadzira yakakosha yekumisikidza faira ine ma parameter akarongeka uye anodikanwa kuti ishande, asi kumutungamiriri isu tinoshandisa iyo yekumisikidza faira iyo MPD inogadzira nekusarudzika, iyo yakataurwa nemazvo uye ine dzimwe sarudzo dzakawanda dzinogona kana dzisingabatsire, saka ndinokurudzira kuti iwe uzvitarise.

Isu tinogadzira madhairekitori anodikanwa eMPD:

mkdir -p ~ / .mpd / playlists

Isu tinoteedzera iyo faira yekumisikidza kune ichangobva kugadzirwa dhairekitori uye nekugadzira mafaera atinoda

pfuti -c /usr/share/doc/mpd/examples/mpd.conf.gz> ~ / .mpd / mpd.conf

bata ~ / .mpd / mpd.db

bata ~ / .mpd / mpd.log

bata ~ / .mpd / mpd.pid

bata ~ / .mpd / mpdstate

Uye ikozvino isu tinotanga kugadzirisa iyo yekumisikidza faira pachayo (ini ndinoshandisa medit, iwe unoshandisa iyo yawakajaira iwe):

fungisisa ~ / .mpd / mpd.conf

Kutanga isu tinofanirwa kuudza iko kune mimhanzi yedu uye nzira uko mafaera atichangogadzira ari:

mumhanzi_directory "~ / Music"

playlist_directory "~ / .mpd / playlists"

db_file "~ / .mpd / mpd.db"

log_file "~ / .mpd / mpd.log"

pid_file "~ / .mpd / mpd.pid"

nyika_file "~ / .mpd / mpdstate"

Isu tinotaura nezvevashandisi uye sarudzo dzeboka (kuwedzera # pakutanga kwetambo). Izvo hazvina basa sezvo MPD ichamhanya nerombo rakanaka remushandisi anozvitanga.

Iko kwazvinoti "Zvemambure" tine sarudzo mbiri: kana isu tichizongoshandisa MPD sekunge yaive chero imwe mimhanzi inoridza, painoti "bind_to_address" isu takangoisa "localhost". Kana pachinzvimbo tiri kuzodzora MPD kubva kune chimwe chishandiso (semuenzaniso, Android Smartphone, sezvatichazotsanangura gare gare) kana isu tichida kufambisa odhiyo, panzvimbo yeiyo localhost isu tichaisa (nguva dzose mumakotesheni) yedu IP kero, semuenzaniso:

bind_to_address "192.168.1.10"

Iko kwarinoti "port" isu tinoshandura iyo inouya nekumira (6600) kune imwe (mune iyi nyaya 8888) sezvo ini ndamboverenga ipapo kuti izvo zvinombopokana zvinopa matambudziko, uye zvinofanirwa kutaridzika seizvi:

chiteshi «8888»

Ipapo ini ndinokurudzira iwe kusunungura mitsara inotevera, kuti uvandudze ruzivo (kunyangwe zvichitsamira pane yega yega):

gapless_mp3_playback "hongu"

metadata_to_use «muimbi, dambarefu, zita, track, zita, mhando, zuva, munyori, muimbi, disc»

auto_update "hongu"

Ipapo tinoenda kunogadzirirwa odhiyo, kwazvinoti "Audio Input" tinoisiya sezvazviri, uye painoti "Audio Output" zvinoenderana nekuti tinoshandisa ALSA here kana PulseAudio isu tinobvisa chikamu chinoenderana. Semuenzaniso kana tikashandisa ALSA:

audio_output {
mhando «alsa»
zita «Yangu ALSA Mudziyo»

}

Uye kana tikashandisa Pulse:

audio_output {

mhando «press»
zita "MPD yangu PulseAudio Kubuda"

}

Kana isu tichida kuteerera kumimhanzi yedu kubva kune imwe PC kana kunyangwe kubva kufoni yedu (sekureba isu tiri pane imwecheteyo netiweki yemuno) tinogona kumisa iyo http server inosanganisirwa nekusarudzika muMPD, nekuda kweizvi isu tinongofanira kusunungura mitsara inotevera :

audio_output {
mhando "httpd"
zita "Yangu HTTP Stream"
encoder «vorbis» # sarudzo, vorbis kana chirema
chiteshi «8000»
# mhando «5.0» # usatsanangure kana bitrate yakatsanangurwa
bitrate «128» # usatsanangure kana hunhu hwakatsanangurwa
fomati "44100: 16: 1"
}

Kubatanidza (murondedzero, sezvo ini ndisina mukana wekuyiyedza) isu tinongofanirwa kuisa IP ye server yedu ichiteverwa nenhamba yakatarwa yechiteshi, semuenzaniso: 192.168.1.10:8000, kunyangwe tichiridza rukova rwemimhanzi mukati vamwe vatambi isu tinofanirwa kuwedzera zvinotevera kumagumo "/mpd.ogg" uye isu tichava nechinhu chakadai.

192.168.1.10:8000/mpd.ogg

Isu tave kutopedza, ini ndinokurudzira chete kuti usunungure mitsara inotevera:

musanganisi_type «software» #Saizvozvo kugadzirisa iyo mimhanzi hakukanganise huwandu hwesisitimu

kutsiva «track»

systemystem_charset "UTF-8"

id3v1_encoding "UTF-8"

Kugadzirira, isu tinochengeta iyo faira uye kuvhara mupepeti Iye zvino kubva pane koni isu tinoita "mpd" kuitira kuti itange kushanda, uye isu tinovhura Sonata kuimisa. Tinobaya-kurudyi chero kupi muchirongwa uye sarudza "Zvaunofarira ..." uyezve MPD. Ikoko tichazadzisa zvinotevera:

Kugadzira Sonata

Zita: tinogona kuisa zvatinoda.

Server: Localhost kana IP yedu (zvinoenderana nezvatakaisa mufaira rekumisikidza)

Port: 8888 (kana chero chinhu chatakaisa mufaira rekumisikidza)

uye tinomaka bhokisi rinoti "Batanidza otomatiki pakutanga", tinodzvanya "OK" uye iwe unofanirwa ikozvino kuona mafaera ako mu "raibhurari" tab (zvinoenderana nehuwandu hweMimhanzi wauinayo, zvinogona kutora maminetsi mashoma).

Tinogona kuwedzera "mpd" kune iyo login kuti tirege kuitangisa nemaoko nguva dzese, muXFCE tinozviita kubva: "Menyu" -> "Kugadziridza maneja" -> "Session uye kutanga" -> "Auto-tanga kunyorera" -> "Wedzera":

Kuwedzera MPD kupinda

Uye ikozvino, ini ndiri kuzokuratidza maitiro aunogona kudzora yako mimhanzi inoridza nenzira yakapusa kubva kuApple yako, pane izvo isu tinongoda chete diki application inonzi MPDroid (ndinokwereta iwe chinongedzo, asi iwe unogona kuiwana mune chitoro chekushandisa).

MPDroid

Isu tinorimisa seinotevera: tinoenda ku «Zvirongwa» -> «Kubatanidza Zvirongwa» -> «Default Kubatanidza Zvirongwa» -> uye ipapo tinozvizadzisa zvinotevera

Host: 192.168.1.10 (kero yeedu server MPD)

Chiteshi: 8888 (chiteshi chatinopa MPD)

Kufambisa inomiririra: 192.168.1.10 (iyo imwecheteyo kero seedu MPD server)

Streamming Port: 8000 (ndiyo kero yakasarudzika)

Iye zvino unogona kushandisa yako Smartphone senge iri kure kutonga kweMPD (hapana chikonzero chekuita Sonata ichimhanya). Uye kana izvo zvaunoda kuteerera mimhanzi kubva kuPC yako zvakananga kubva kunharembozha yako, kubva kuMPDroid unofanira kuisa «Zvirongwa» -> «Zvabuda> -> Sarudza« Yangu HTTP Stream »-> Mune sarudzo menyu yeiyo huru interface sarudza "Kutenderera" (Zvinotora masekonzi mashoma kurodha mumhanzi, ndapota shivirira 😉).
Ndinovimba yakave yakakunakira iwe, uye utaure kuti iwe wawana iyo script, nekuti ndiyo yekutanga yandinoita yakaoma. Mufaro!

Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   tammuz akadaro

    inobatsira uye inotsanangurwa

    1.    TheSandman86 akadaro

      Ndatenda zvikuru, ndinofara kuti zvinobatsira kwauri. Mufaro!

      1.    Elynx akadaro

        Wakaenda kuBuntu here?.

        Iwe wanga usiri pane iyo Crunchbang Linux?

        1.    TheSandman86 akadaro

          Ndiri kwenguva pfupi paXubuntu (nekuda kwemhepo) sezvo ini ndaive nematambudziko akati wandei neCrunchbang, asi ini ndinoronga kudzoka, nekuti ndiyo distro yandinonzwa kugadzikana.

  2.   ermimetal akadaro

    Kusvika pamba ini ndichazama, uye ndinoziva kuti yakanaka kwazvo

  3.   TheSandman86 akadaro

    Chinhu chinoshamisa ndechekuderera kwekushandisa zviwanikwa, izvo zvega zvakakosha kuzviedza.

  4.   helena_ryuu akadaro

    Yakanaka post, mpd inotonhorera.

    1.    TheSandman86 akadaro

      Ndinokutendai zvikuru!

  5.   Yoyo Fernandez akadaro

    Ofú !!! : KANA

  6.   B1tBlu3 akadaro

    Ndatenda zvikuru, zvaindibatsira kwandiri, ikozvino ini ndinogona kushandura mimhanzi yangu ndigere kubva pachigaro mubathroom ... hahaha.

    1.    TheSandman86 akadaro

      Hahaha, ikozvino kana ndichifunga kuti ndazadzisa chinangwa changu: kurerutsa hupenyu hwemumwe munhu, ndinonzwa kuzadzikiswa

  7.   mota_96 akadaro

    Yakanaka kwazvo dzidziso, ndisati ndashandisa otomatiki script yavakapa muArch wiki, asi ivo vakabvisa iyo Link uye iyi dzidziso yakandishandira (iyo script haina, yakaratidza kukanganisa).
    Chinhu chakashata ndechekuti ikozvino kuisa mutengi pane yangu Nokia E5 ini ndinoda zviuru zvezvinhu xx

    1.    TheSandman86 akadaro

      Chikanganiso chipi chakakumaka? Ndiri kufara kuti dzidziso yakabatsira kwauri. Kana iwe uchikwanisa kuisa mutengi paNokia, pfuudza zita racho kuitira kana ikashandira mumwe munhu.

  8.   Leper_Ivan akadaro

    Kugona chose! Makorokoto.

    1.    TheSandman86 akadaro

      Ndatenda!!!

  9.   auroszx akadaro

    Yakanaka 🙂 MPD ndimambo. Ndinongoda mutengi saCantata weKDE, weGTK.

    1.    TheSandman86 akadaro

      Ehe, izvo mikana iyo MPD inokupa iwe zvakasiyana kwazvo. Misiyano ipi iyo Cantata ine kana ichienzaniswa nevamwe vatengi? Ndiri kuyedza Ncmpcpp (kubva kune iyo terminal) uye chokwadi ndechekuti yakanaka kwazvo uye yakakwana, zvakandishamisa pane zvakanaka.

  10.   Mario akadaro

    Sezvineiwo ndanga ndichiverenga izvi: http://www.lacocina.nl/artikelen/how-to-setup-a-bit-perfect-digital-audio-streaming-client-with-free-software-with-ltsp-and-mpd

    pandino gumburwa pachinyorwa chako. Iko kusangana kunoratidzika kunge kune musoro kwauri here?
    Ini ndoda kuishandisa asi system yangu ndeye LMDE KDE yakagadzirwa naSchoejle. Iyo yakanakisa uye inonzwisisika, asi sevamwe haibvumidze kubereka kwakatendeka. Izvo zvawakanyora zvinogona kusanganiswa mune chero nzira neizvo zvinotaurwa nechinyorwa ichocho? Zvakakosha here kudaro? Ndatenda nekushivirira kwako.

  11.   TheSandman86 akadaro

    Ini ndinofunga zvinofanirwa kuitika, MPD inoshanda zvakanyanya, saka ini ndaizofunga kuti chinhu chakaomesesa chichava kugadziriswa kweLTSP (iyo yandisina ruzivo nayo) asi kana zviri zvandinoisa muMPD haufanire kunge uine matambudziko, Iyo chete chinhu chandinokurudzira hachisi chekushandisa script, uye verenga yakamisikidzwa faira yekumisikidza kuti uone kuti ndeapi sarudzo akakodzera pane izvo zvaunoda.

    1.    Ronald vanEngelen akadaro

      ChiSpanish changu hachina kunaka, asi chinofunga iwe unoreva kana kutamba kwakanyanya kunogona kusanganiswa neinowanikwa mpd yekumisikidza panzvimbo pekushandisa neLTSP?

      Mhinduro ndeyokuti hungu. Tarisa uone http://lacocina.nl/audiophile-mpd kuti uone maitiro aunga shandura chero komputa inomhanya mpd mukati kune yakasarudzika streamer.

      Iyo zvakare ine ruzivo uye zvinyorwa zvekungozvigadzirira zvishoma zvakakwana mpd.conf, kunyanya iyo audio_output {alsa…} chikamu, icho chakakosha pakuita kutamba kwakakwana.

      maererano
      Ronald

  12.   mlab akadaro

    Ini ndinowana kukanganisa kana ndichiedza kushandisa MPDroid: /

    Conection Yakundikana

    Kubatana neMPD-Server kwakundikana! Tarisa uone kana Server iri kumhanya uye inokwanisika. (Hatigone kugadzirisa inomiririra "http: // 192.XXX.XXX.XXX": Hapana kero inosanganisirwa nezita rezita.)

    Chero mazano?

    1.    TheSandman86 akadaro

      Iwe unoshamisika sei, wakaongorora here kuti MPD iri kushanda nemazvo paPC yako? Uye iwe wakabatanidzwa kune imwechete network pamwe nefoni yako uye nePC yako?

      1.    mlab akadaro

        Mune komputa yangu zvese zvinoshanda mushe, dambudziko rinenge riri rekuti harishande muJellyBean 4.2

  13.   TheSandman86 akadaro

    Ndinoishandisa pafoni yangu nejellyBean 4.1.2 uye ini handina matambudziko, chingave chimwewo chinhu. Kana iwe uchikwanisa kundipa chinongedzo nekopi ye yako mpd.conf uye imwe skrini yeiyo MPDroid marongero pamwe tinogona kuona pane dambudziko.

  14.   Gabriela akadaro

    Mhoro zvakanaka, kusvikira nguva pfupi yadarika ndazowana mpd uye sezvo ini ndamboedza zvese uye ndisingazive maitiro ekugadzirisa dambudziko randiinaro, ndakaita zvinhu zvakati wandei zvandakaona mumaforamu akasiyana siyana asi handina kukwanisa kuzvigadzirisa. Dambudziko ndere rinotevera

    Yakundikana kusunga ku '127.0.0.1:6600': Kero yatove kushandiswa

    Ndachinja chiteshi uye ndaita zvimwe zvinhu asi hapana zvashanda, ndingafarire rubatsiro rwako 🙂

    Iko kukanganisa kunoonekwa kana uchinyora mpd kubva kunyaradzo, ndatenda 🙂

  15.   Victor akadaro

    Kana iyi iri iyo «SIMPLE» vhezheni, iro rakaoma vhezheni ichave sei…. 🙂

  16.   matias akadaro

    Pane chero munhu anoziva kugadzirisa kuti ateerere kumimhanzi pane maviri maPC? Ndiri kureva imwe ini ndine yese mimhanzi uye mune imwe ini ndinoda kuwana iyo.

  17.   Javiondo akadaro

    Iyo script yekubatanidza inoita kunge yakaputswa, zvinonditora kune yakasarudzika template yeyesaiti ino.

  18.   Giovanni garciliano akadaro

    Batanidza kune script haichashandi, inodzosera kune saiti midzi

    1.    TheSandman86 akadaro

      Mazuva ano ndinoona kana ndichigona kudzoreredza script sezvo ini ndisingakwanise kuiwana yekuisimudza zvakare sezvo yekutanga yaive yakarasika uye ini ndoona kana ndichigona kugadzirisa gwara kana kugadzira nyowani.

  19.   charly akadaro

    zvese zvinoshanda zvakanaka kunze kwekunge ndabrowser, kudzvanya 5 hangs uye kunditumira chirevo chinotevera MPD Dzakachengetwa playlists dzakavharwa.