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.


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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

Reply via email to