Re: [SlimDevices: Plugins] Announce: WaveInput for Linux

2022-12-09 Thread xtreame


bpa wrote: 
> Looking at log 
> > 
Code:

  >   > 
  > 22-12-08 17:47:58.5553] Slim::Player::TranscodingHelper::getConvertCommand2 
(493) Matched: wavin->pcm via: [arecord] -d0 -c2 -f S16_LE -r 44100 -traw -D 
$FILE$
  > [22-12-08 17:47:58.5560] Slim::Player::Song::open (424) Transcoder: 
streamMode=R, streamformat=pcm
  > [22-12-08 17:47:58.5568] Slim::Player::Song::open (480) Opening stream (no 
direct streaming) using Plugins::WaveInput::WAVIN [wavin:hw:0]
  > [22-12-08 17:47:58.5595] 
Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using command 
for conversion: "/bin/arecord" -d0 -c2 -f S16_LE -r 44100 -traw -D "hw:0"
  > [22-12-08 17:47:58.5604] Plugins::WaveInput::WAVIN::new (41) WaveInput 
command ='"/bin/arecord" -d0 -c2 -f S16_LE -r 44100 -traw -D "hw:0"'
  > [22-12-08 17:47:58.5862] Slim::Player::Song::open (510) URL is a song 
(audio): wavin:hw:0, type=pcm
  > [22-12-08 17:47:58.5909] Slim::Player::SongStreamController::new (36) live=1
  > [22-12-08 17:47:58.5924] Slim::Player::StreamingController::_Stream (1283) 
bb:bb:1b:56:f4:f0: stream
  > [22-12-08 17:47:58.5933] Plugins::WaveInput::WAVIN::getMetadataFor (100) 
Begin Function for wavin:hw:0 plugins/WaveInput/html/images/waveinput.png
  > [22-12-08 17:47:58.5957] Slim::Player::StreamingController::_Stream (1320) 
Song queue is now 0
  > [22-12-08 17:47:58.5964] 
Slim::Player::StreamingController::_setPlayingState (2378) new playing state 
BUFFERING
  > [22-12-08 17:47:58.5967] 
Slim::Player::StreamingController::_setStreamingState (2387) new streaming 
state STREAMING
  > [22-12-08 17:47:58.5970] Slim::Player::StreamingController::_eventAction 
(302) bb:bb:1b:56:f4:f0: NextTrackReady - new state BUFFERING-STREAMING
  > [22-12-08 17:47:58.5975] Slim::Player::StreamingController::_eventAction 
(302) bb:bb:1b:56:f4:f0: Play - new state BUFFERING-STREAMING
  > [22-12-08 17:47:58.5985] Plugins::WaveInput::WAVIN::getMetadataFor (100) 
Begin Function for wavin:hw:0 plugins/WaveInput/html/images/waveinput.png
  > .
  > .
  > .
  > [22-12-08 17:47:58.6358] Plugins::WaveInput::WAVIN::getMetadataFor (100) 
Begin Function for wavin:hw:0 plugins/WaveInput/html/images/waveinput.png
  > [22-12-08 17:47:58.6755] Slim::Player::Source::_readNextChunk (355) Read to 
end of file or pipe
  > [22-12-08 17:47:58.6760] Slim::Player::Source::_readNextChunk (378) end of 
file or error on socket, song pos: 0
  > [22-12-08 17:47:58.6763] Slim::Player::Source::_readNextChunk (383) 
bb:bb:1b:56:f4:f0 mark end of stream
  > [22-12-08 17:47:58.6767] Slim::Player::Source::_readNextChunk (391) Didn't 
stream any bytes for this song; mark it as failed
  > [22-12-08 17:47:58.6770] 
Slim::Player::StreamingController::playerStreamingFailed (2249) 
bb:bb:1b:56:f4:f0
  > [22-12-08 17:47:58.6774] Slim::Player::StreamingController::_playersMessage 
(796) Problem: Can't open file for:: wavin:hw:0
  > 

> > 
> 
> This shows that WaveInput plugin starts running arecord command but
> the command fails immediately (0 bytes) for some reason so you get
> "end of file or error on socket, song pos: 0" - which LMS reports as "
> Problem: Can't open file for:: wavin:hw:0"
> Why the arecord/flac is not being chosen by LMS is unclear but can be
> resolved later.
> 
> The issues is to understand why this command when run by LMS (under
> LMS userid) fails
> > 
Code:

  >   > 
  > '"/bin/arecord" -d0 -c2 -f S16_LE -r 44100 -traw -D "hw:0"'
  > 

> > 
> Possibilities to be checked include.
> 1. Cannot run arecord (e.g. invlaid binary, no permission)
> 2. Device "hw:0" is invalid 
> 3. Device "hw:0" cannot be opened (e.g. no permission to access h/w,
> device already in use, incompatible parameters)
> 
> What OS are you using ?
> What userid does LMS use ?  Does it have permission to access audio
> hardware ?
> Is LMS being runs as a service ? If run as a service does your OS
> allow services to access hardware ?
> 
> While you check the above, you should also make sure the basic command
> line works OK from a shell prompt.
> Try the following command line from a shell prompt
> > 
Code:

  >   > /bin/arecord -d0 -c2 -f S16_LE -r 44100 -twav -D hw:0 
>/tmp/wavincapture.wav

> > 
> 
> 1. Run this command.
> 2. If it stops immediately report the error message
> 3. If it runs then let it run for about 30 secs and then CTRL/C to
> stop it.
> 4. Check the size of the file /tmpwavincapture.wav  - if it is a
> reasonable size - try playing it and make it is a copy of the audio
> being input.
> 
> edit:
> 
> I now see some of the answer to OS and permission question answered in
> first post.
> What version of Pi OS ?
> Does the non GUI version include full support for audio ?

After re-installation the squeezeboxserver user was not in audio group
anymore. Added him back and it's working now.

I was also thinking maybe it's needed to put the user also in gpio or
i2c group 

Re: [SlimDevices: Plugins] Announce: WaveInput for Linux

2022-12-08 Thread xtreame


bpa wrote: 
> I'll look into later.  LMS looks at all rules simultaneously to find
> which ones will work and then selects best one. So failed rules will
> show errors (e.g. no lame, not T capability) so they will never be a
> candidate for use.
> 
> What are the Filetypes settings for Wavin ?
> 
> edit:
> LMS finds a match and starts running but I think "hw:0" is not a valid
> device.
> > 
Code:

  >   > 
  > [22-12-08 17:47:58.5568] Slim::Player::Song::open (480) Opening stream (no 
direct streaming) using Plugins::WaveInput::WAVIN [wavin:hw:0]
  > [22-12-08 17:47:58.5595] 
Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using command 
for conversion: "/bin/arecord" -d0 -c2 -f S16_LE -r 44100 -traw -D "hw:0"
  > [22-12-08 17:47:58.5604] Plugins::WaveInput::WAVIN::new (41) WaveInput 
command ='"/bin/arecord" -d0 -c2 -f S16_LE -r 44100 -traw -D "hw:0"'
  > 

> > 
> 
> At a shell prompt what devices does "arecord -l" display ? (the option
> is letter dash, lower case letter ell)

When i run exactly the command which is in the custom-convert.conf
manually (in shell) arecord is recording...

arecord -l is showing me this ->

Code:

 List of CAPTURE Hardware Devices 
  card 0: sndrpihifiberry [snd_rpi_hifiberrydacplusdsp_sou], device 0: 
Hifiberry DAC+DSP SoundCard HiFi dacplusdsp-codec-0 [Hifiberry DAC+DSP 
SoundCard HiFi dacplusdsp-codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0




Thanks

BR



xtreame's Profile: http://forums.slimdevices.com/member.php?userid=73220
View this thread: http://forums.slimdevices.com/showthread.php?t=49584

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: WaveInput for Linux

2022-12-08 Thread xtreame


bpa wrote: 
> That error is usually associated with a bad/failed install.
> 1. Check the plugin is installed OK in Settings/Plugins 
> 2. Check there is a WaveInput entry in Settings/Advanced/Filetypes.

Thanks for your answer. I reinstalled everything and it's behaving
different now. I turned DEBUG on

attached log file

it's now telling "rejecting [arecord] ... because required capability T
not supported" and "Error: Didn't find any command matches for type:
wavin"

any clues about this?


BR


+---+
|Filename: debug.txt|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=39347|
+---+


xtreame's Profile: http://forums.slimdevices.com/member.php?userid=73220
View this thread: http://forums.slimdevices.com/showthread.php?t=49584

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: WaveInput for Linux

2022-12-08 Thread xtreame


Hi bpa,

first of all thanks for this LMS plugin!

I have an LMS running on latest Raspberry Pi OS (without gui)
Installation went well but when pressing play on WebInterface player it
will not start streaming and in logfile i get this error:


Code:

[22-12-08 16:23:00.1785] Slim::Player::Song::open (417) Error: Couldn't 
create command line for wavin playback for [wavin:0]
  [22-12-08 16:23:17.4917] Slim::Player::Song::open (417) Error: Couldn't 
create command line for wavin playback for [wavin:hw:0]
  [22-12-08 16:27:59.0408] Slim::Player::Song::open (417) Error: Couldn't 
create command line for wavin playback for [wavin:hw:0]



I tried different variants with wavin:

Do you have an idea what the problem can be?

P.S. squeezeboxserver user is member of group audio

Thank you in advance!

BR



xtreame's Profile: http://forums.slimdevices.com/member.php?userid=73220
View this thread: http://forums.slimdevices.com/showthread.php?t=49584

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins