Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2022-03-15 Thread jeroen2
Paul Webster wrote: > In my case I use > > Code: > > > wavin:sysdefault:CARD=CODEC > > > > because the arecord -l shows > > Code: > > > List of CAPTURE Hardware Devices > card 1: CODEC [USB AUDIO

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2021-08-16 Thread mini11
paul- wrote: > We use a http streamer option in pCP. As long as the card shows up as > a Alsa recording device, you can use it. Thanks Paul, thanks bpa too. Yes, I know about http streamer. No, the device is not shown after activating the Streamer for Audio Input on tweaks page. Is there

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2021-08-15 Thread bpa
mini11 wrote: > I'm wondering, if that card can be used as an input-device over I2S to > use it with the WavInput plugin. Wavinput uses standard ALSA devices. Not sure about pcp specifics but the input devices show up with "arecord -l" (option is lowercase letter L not digit 1). By default

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2021-08-15 Thread paul-
We use a http streamer option in pCP. As long as the card shows up as a Alsa recording device, you can use it. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2021-08-15 Thread mini11
I made some tests with the WavInput plugin and USB Soundcards and evrything works perfect. Thanks bpa for that great plugin. I still have one analog to digitalconverter (analog to I2S) with a chip AKM5720. 35504 I'm wondering, if that card can be used as an input-device over I2S to use it with

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-24 Thread Man in a van
bpa wrote: > > > Not sure how you permanently save these changes in Picoreplayer as the > new files are in RAM. This might help with the saving In a Terminal > piCore > -- > - pcp bu : (b)ack(u)p > - pcp sd : (s)hut(d)own > - pcp bs : (b)ackup then

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-24 Thread bpa
For some reason when a single device is playing Waveinput and a 2nd is being synced to it - LMS does not kill off the first instance of "arecord" and the sync seems to fail and stops playing but the underlying "arecord" process is still "active" and "using" the alsa device - preventing any new

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
When syncing with a playing already playing arecord - it requires first arecord to stop and then a new second arecord to start. I think the sync problem is due to the first arecord not stopped before the second arecord is started and so there is a clash over same input device. I think this

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
Furry wrote: > I tried this, with two Radios, but same problem. Playing on one is > fine, but as soon as I try to sync another to it, it kills the stream. I just tested wavinput syncing a receiver and Radio and it worked OK so it is not a plugin or LMS restriction. The problem is local - to

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Paul Webster
Did you try to sync the other way around ... B to A instead of A to B? Also - how about syncing them first ... and then choosing to play wavin: on one of them? Paul Webster http://dabdig.blogspot.com Author Radio France (FIP etc) plugin

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > First step in debugging this issue would be to test syncing with two > players which are totally separate (e.g. squeezelite on 2 PCs or SB > hardware players ) from the LMS PI & USB Soundcard. I tried this, with two Radios, but same problem. Playing on one is fine, but as soon

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > Your sync proble might be somehting to do with transcoding - enable > logging usually points the way. Which logging should I enable, to see what's happening with transcoding? Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom. Kitchen:

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
Well, this is confusing. The problem with the stream no longer playing, having played previously but after an attempt to sync a Radio to the pCP, was fixed by changing the source in favourites back to wavin:hw:CARD=Device. I couldn't get it to work at all before, with exactly this definition -

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread d6jg
An alternative approach which doesn’t require LMS on the Pi (or the wavin input plugin) is to use a Pi with a Liquidsoap script & Icecast 2. I built one which takes any std output from an amp passed it through a Behringer UCA202 into the Pi and then streams it as FLAC which LMS can play. This

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
Furry wrote: > Well, the original problem of there being no audio is fixed, but help > with the stream no longer opening after playing on the Radio instead > (and noting your edit), and with the sync issue, would be appreciated. The sync issue needs more details. How sync works is that LMS

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
Furry wrote: > Do you mean as a potential solution to the stream no longer opening > after playing on the Radio instead? If that is the problem use-case - then yes. If you can figure out what commands will get the USB soundcard into a usable state - put them into the shell script as long as

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > If you need to set your USB soundcard into a specific state before > running arecord - you can use a shell script. Do you mean as a potential solution to the stream no longer opening after playing on the Radio instead? Living room: SB Touch, with coax to: Marantz PM7005, TDL

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > I'm now confused about your current state and whether you need any help. Well, the original problem of there being no audio is fixed, but help with the stream no longer opening after playing on the Radio instead (and noting your edit), and with the sync issue, would be

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
Furry wrote: > Sorry, I've edited some of my edits since you wrote this post! (please > see my post above, again). > > Also: many thanks for your help with this. I'm now confused about your current state and whether you need any help. If you need to set your USB soundcard into a specific

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > AFAIK Nothing in Wavinput prevents sync - the must be another issue. > > > CDplayer plugin - IIRC somebody else has already built the necessary > application for PI to support this. > > > Can always buy another Pi. > > edit 1: > > Starting point for cdplayer plugin on pcp pi3

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread bpa
Furry wrote: > Edit(1): Now listening to turntable via piCorePlayer. Woohoo! BTW, I > tried to sync a Radio to this, but Waveinput stopped; is sync not > possible with this? AFAIK Nothing in Wavinput prevents sync - the must be another issue. > Edit(2):My next challenge will be to use a USB

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
I appear to have found the problem: In alsamixer, I noticed that on the Playback sliders screen for the USB Sound Device, the PCM Capture Source was set for Mic. I toggled this to Line. (Seems a bit counter-intuitive to find that setting, for PCM Capture, here). So now I need to ensure this

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-23 Thread Furry
bpa wrote: > The relevant Alsa device for Card 1 Device 0 would be something like > /dev/snd/hwC1D0 and /dev/snd/ControlC1 - what group own these ? Those are all owned by a group called "staff". Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom.

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > One item in /dev/snd/by-id, and three items in /dev/snd/by-path, are in > group root. > > The item in /by-id is: usb-0d8c_USB_Sound_Device-00 The relevant Alsa device for Card 1 Device 0 would be something like /dev/snd/hwC1D0 and /dev/snd/ControlC1 - what group own these ?

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > > Does the lsusb command work ? > If so, what is the usb soundcard device ID Amongst five others, this line: Bus 001 Device 027: ID 0d8c:0102. Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom. Kitchen: SB Radio 1/4 with battery.

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > Check owner of the ALSA devices in /dev/snd - if the group is "audio" > make sure the userid you are using is a memeber of the audio group- this > shouldn''t matter if your are root but it's worth trying. One item in /dev/snd/by-id, and three items in /dev/snd/by-path, are in

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > > Trying capture from other devices using device and card number and using > different hw & plughw - to see if you can capture anything. > -D hw:0,0 > -D hw:0,1 > -D plughw:0,0 > -D plughw:0,1 > -D hw:1,0 > -D hw:1,1 > -D plughw:1,0 > -D plughw:1,1 > -D hw:2,0 > -D hw:2,1 > -D

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > See picture: > > 25699 Levels look OK - nothing is zero except spdif. Running out of ideas. Check owner of the ALSA devices in /dev/snd - if the group is "audio" make sure the userid you are using is a memeber of the audio group- this shouldn''t matter if your are root but

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > If alsamixer works - check what devices are enabled for capture and > their line-in levels. > > amixer will do the same but not as visual. See picture: 25699 +---+ |Filename: alsamixer.JPG

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > output.wav is 13,095KB. Others captured were 3,989KB and 8,119KB. OK - that means samples were captured - corrected WAV file header was not written as ^C interrupted output. Check "Line-in" lelvel using alsamixer- it's possible capture level on card 2 is set to zero.

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > TWhat is the actual file length in bytes output.wav is 13,095KB. Others captured were 3,989KB and 8,119KB. Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom. Kitchen: SB Radio 1/4 with battery. Bedroom 1: SB Radio 2/4 no battery, SB

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
If alsamixer works - check what devices are enabled for capture and their line-in levels. amixer will do the same but not as visual. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread:

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
> [Edit(1): Oddly, all the files so far produced (including the output.wav > above) have been 3:22:53 long, according to VLC. That's is the max length of a WAV file - basically no samples captured. What is the actual file length in bytes - if zero then device is not "active". > I did this

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
Paul Webster wrote: > > Does your HiFiBerry have analogue line in at all? > If not - then are you going to simply test it with a toslink input? No, it doesn't, but I'm trying to play the audio from an external USB sound card. Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
I did this (below). The result was no apparent VU movement, and a silent file output.wav. tc@piCorePlayer:~$ arecord -v -v -D hw:CARD=Device -f cd -t wav >/home/output.wav Re cording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Hardware PCM card 2 'USB Sound Device' device

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
I can't remember exact detail but the difference between using something like sysdefault:CARD= CODEC and hw:CARD=CODEC can be telling ALSA to do resampling etc as required - whatever is necessary to match requested format and the formats provided by the raw device. The "hw:" prevents such

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Paul Webster
In my case I use Code: wavin:sysdefault:CARD=CODEC because the arecord -l shows Code: List of CAPTURE Hardware Devices card 1: CODEC [USB AUDIO CODEC], device 0: USB Audio [USB Audio]

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > Edit(1): I was able to create an output audio file, but when I play it > (using VLC) it is silent. I used: arecord -D hw:CARD=Device -f cd > >/home/out.flac Arecord works in PCM - so file output is either raw or wav and not flac. Also not using stdout means "-v" can be used,

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > Did you try arecord yet ? > Did it work ? > > I don't know the permission details of pcp regarding audio hardware - I > suggest ask on Pcp thread. No, not yet; I don't really know much / anything about this stuff, so it will take me a little while to figure out how. Living

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > It's piCorePlayer on RPi 3. Did you try arecord yet ? Did it work ? I don't know the permission details of pcp regarding audio hardware - I suggest ask on Pcp thread. bpa's Profile:

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
bpa wrote: > Depending on the OS/distro It's piCorePlayer on RPi 3. Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom. Kitchen: SB Radio 1/4 with battery. Bedroom 1: SB Radio 2/4 no battery, SB Radio 3/4 with battery. Bedroom 2: SB3 1/2, AE 2.1.

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread bpa
Furry wrote: > Apparently, I have to put wavin:0 (or wavin:default ?) in the > favourites. > > I want to use a USB soundcard, via an RPi (piCorePlayer) USB port. So > far, I'm getting "Problem: Can't open file for: Waveinput" > > Any tips, please? > > TIA. > > Edit(1): I am using a

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
Furry wrote: > Ah, I remember now. Thanks. Last time I tried this plugin was >10 years > ago. Apparently, I have to put wavin:0 (or wavin:default ?) in the favourites. I want to use a USB soundcard, via an RPi (piCorePlayer) USB port. So far, I'm getting "Problem: Can't openfile for:

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Paul Webster
Furry wrote: > How do you select that input, from the RPi player's menu / LMS browser? I have the wavin: invocation set as a Favourite which makes it easy to call up from anywhere ... plus I can say: "OK Google, Squeezebox Turntable" Paul Webster http://dabdig.blogspot.com Author Radio

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
DJanGo wrote: > via radio play stream/load url. > Just take a look into the plugin documentation. Ah, I remember now. Thanks. Last time I tried this plugin was >10 years ago. Living room: SB Touch, with coax to: Marantz PM7005, TDL RTL3 speakers. Dining room: SB Boom. Kitchen: SB Radio 1/4

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread DJanGo
Furry wrote: > How do you select that input, from the RPi player's menu / LMS browser? via radio play stream/load url. Just take a look into the plugin documentation. DJanGo's Profile:

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-22 Thread Furry
Paul Webster wrote: > Yes - a Raspberry Pi (or similar small computer) running LMS with the > Wavinput plugin PLUS, in the case of RPi at least, something to grab the > line input. > I do that part with a Behringer UFO202 that I picked up on eBay. It has > a switch on it to enable preamp for

Re: [SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-21 Thread Paul Webster
Yes - a Raspberry Pi (or similar small computer) running LMS with the Wavinput plugin PLUS, in the case of RPi at least, something to grab the line input. I do that part with a Behringer UFO202 that I picked up on eBay. It has a switch on it to enable preamp for turntable. It connects to RPi via

[SlimDevices: SqueezeCenter] Streaming Line Audio

2018-09-21 Thread typecrazy789
I have a series of devices running LMS throughout the house and it occurred to me the other day it'd be ideal if I could feed line audio from things like a turntable, reel or cassette deck, etc., through the server so we could hear that on our little network. Ideally I'd have the smallest setup