philippe44 / LMS-ShairTunes2W

Airtunes with LMS (fork of https://github.com/disaster123/shairport2_plugin)
63 stars 3 forks source link

Shaitunes2 with LMS 8 #30

Closed Mopetshow closed 4 years ago

Mopetshow commented 4 years ago

Hello, Since the installation of LMS 8.0.0 (with Daphile), Shairtunes2 pluggin no more works. I have the message the pluggin is incompatible with the version of LMS in the Daphile plugins windows. Do you have an idea ?

Hervé


[20-05-29 22:44:03.7292] main::init (388) Starting Logitech Media Server (v8.0.0, git5b35b25, Daphile 20.05-b082157-x86_64) perl 5.030001 - x86_64-linux-thread-multi [20-05-29 22:44:04.2557] Slim::Utils::PluginManager::load (236) Couldn't load ShairTunes2. Error: Le plugin n'est pas compatible avec cette version du Logitech Media Server. Veuillez mettre à jour.

[20-05-29 23:13:42.8103] main::main (206) Starting Logitech Media Server scanner (v8.0.0, git5b35b25, Daphile 20.05-b082157-x86_64) perl 5.030001 [20-05-29 23:13:42.9059] Carp::Clan::ANON (216) Warning: DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /opt/mediaserver/Slim/Schema.pm line 1885 [20-05-29 23:13:42.9062] Slim::Schema::forceCommit (2157) Warning: Trying to commit transactions before DB is initialized! [

philippe44 commented 4 years ago

I've updated all my plugins to at least claim they are compatible with 8.0, so your version might not be up to date.

Mopetshow commented 4 years ago

Sorry, the problem is with disaster123 plugin. So I try with yours. I can install and activate it on Daphile and I see my player in airplay devices. But when I select it, there is no sound. This is the log on Daphile 20.05-b082157-w86_64: Thank you

[20-05-30 17:11:42.4072] main::init (388) Starting Logitech Media Server (v8.0.0, git5b35b25, Daphile 20.05-b082157-x86_64) perl 5.030001 - x86_64-linux-thread-multi [20-05-30 17:11:52.0826] Plugins::ShairTunes2W::Plugin::publishPlayer (434) start avahi-publish-service "Audio GD" [20-05-30 17:11:52.0847] Plugins::ShairTunes2W::Plugin::addPlayer (348) create client Slim::Player::SqueezePlay=ARRAY(0x55fda2bd4eb0) with proc Proc::Background=HASH(0x55fda2da0308) [20-05-30 17:12:02.4739] Plugins::ShairTunes2W::Plugin::handleSocketConnect (476) New connection from: 192.168.1.5 [20-05-30 17:12:02.4769] Plugins::ShairTunes2W::Plugin::conn_handle_request (758) DACP-ID: C93716AEA5E5EDC4, Active Remote: 2005753892 [20-05-30 17:12:02.5852] Plugins::ShairTunes2W::Plugin::mDNSlistener (1082) Found remote: C93716AEA5E5EDC4, 192.168.1.5:56643 [20-05-30 17:12:04.1753] Plugins::ShairTunes2W::Plugin::conn_handle_request (830) decode command: $VAR1 = 'host'; $VAR2 = '192.168.1.5'; $VAR3 = 'socket'; $VAR4 = 42163; $VAR5 = 'fmtp'; $VAR6 = '96 352 0 16 40 10 14 2 255 0 0 44100'; $VAR7 = 'cport'; $VAR8 = '57881'; $VAR9 = 'tport'; $VAR10 = '60028'; $VAR11 = 'latencies'; $VAR12 = '1000:2000:f'; $VAR13 = 'codec'; $VAR14 = 'wav'; $VAR15 = 'iv'; $VAR16 = '138f8bc51f24d1dc540187b38562d057'; $VAR17 = 'key'; $VAR18 = 'a1365c66c3f2c9b70c451ba239ac3f6d'; $VAR19 = 'log'; $VAR20 = '/var/daphile/mediaserver/log/shairtunes2-5a-a5-24-cd-34-1a.log'; $VAR21 = 'dbg'; $VAR22 = 'info'; $VAR23 = 'drift'; [20-05-30 17:12:04.1815] Plugins::ShairTunes2W::Plugin::conn_handle_request (859) launched decoder: Proc::Background=HASH(0x55fda2e65b48) on ports: 33687/43320/56860/34751, http port: 40887 [20-05-30 17:12:04.1822] Plugins::ShairTunes2W::Plugin::handleHelperOut (560) From helper: shairport_helper: VERSION: 0.108.1 [20-05-30 17:12:04.1883] Plugins::ShairTunes2W::Plugin::conn_handle_request (896) Playing url: airplay://192.168.1.2:34751/4576_stream.wav [20-05-30 17:12:04.1998] Plugins::ShairTunes2W::Plugin::conn_handle_request (906) Record from 0, 0 [20-05-30 17:12:04.2043] Plugins::ShairTunes2W::Plugin::conn_handle_request (978) sending-> vol: 34 [20-05-30 17:12:04.2093] Plugins::ShairTunes2W::Plugin::conn_handle_request (978) sending-> vol: 34 [20-05-30 17:12:04.2405] Plugins::ShairTunes2W::Plugin::conn_handle_request (915) Flush up to 61303, 3302689804 [20-05-30 17:12:04.2706] Plugins::ShairTunes2W::Plugin::handleHelperOut (560) From helper: play

Mopetshow commented 4 years ago

Hello It’s ok when i replace wave format by flac format

philippe44 commented 4 years ago

Then the issue is with the player that does not support wav streams. There are many difficulties with LMS and wav streams and I'm working on them in LMS currently. The nightly of 8.0.0 includes some of them and hopefully more to come.

Still, I don't recommend using pcm/wav anyway, flac does a much better job and saves your network bandwidth, which the most precious resource. Unless you have a very underpowered CPU to run LMS onto

Mopetshow commented 4 years ago

Thanks for your answer