Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2019-09-10 Thread Vegz78


Did anyone ever find a solution for this?
Here or
https://forums.slimdevices.com/showthread.php?102551-WaveInput-Setup-Troubles/page4?

I'm looking for a similar setup where I stream Hi-res/Master Tidal from
a Windows server via Waveinput to my Squeezebox Touch, but I only get
buffering and white noise when configuring Waveinput to higher flac
qualities than 16/44,1 in custom-convert.conf.

Really hope for a working solution!

Br,

Vegard



Vegz78's Profile: http://forums.slimdevices.com/member.php?userid=32897
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

> In this sort of situation, I normally take a break and then after a day
> or so review all the information gathered so far. Others users report
> that recording works so there must be a setup or test procedure issue
> which a review may spot.

Yeah, I think I'll take a day and think on all of these things. Thanks
for all of the help so far.

Cheers,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

mike_b16 wrote: 
> After selecting my card in the alsamixer, it looks like there are 50ish
> playback devices for which I can change the levels/switch them on or
> off. Under capture, there are roughly 30 devices. Master volumes,
> equalizers, IN3R, things like that. I believe this has to do with the
> available options/outputs on the Wolfson card.l

I don't know ALSA well but these are the devices that ALSA sees so I
think the Wolfson driver does not disable any ALSA device even though a
reset disables all connections to the ALSA devices internally on the
card.  Not all alsa devices are "active" as that depends on the Wolfson
setup scripts but they can be accessed using Alsa and  and you can play
to or record from these these alsa device but nothing may come out or
rubbish may be recorded if the Wolfson card is not setup correctly.

In this sort of situation, I normally take a break and then after a day
or so review all the information gathered so far.  Others users report
that recording works so there must be a setup or test procedure issue
which a review may spot.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I muted (or reduced to zero) everything in the playback section of the
alsamixer. Rebooted, recompiled hw_params and it still says my Wolfson
card is a playback device. I'm totally stumped.

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

After selecting my card in the alsamixer, it looks like there are 50ish
playback devices for which I can change the levels/switch them on or
off. Under capture, there are roughly 30 devices. Master volumes,
equalizers, IN3R, things like that. I believe this has to do with the
available options/outputs on the Wolfson card.

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

mike_b16 wrote: 
> I ran through these steps and it's still listing the device as Playback.
> Do you have another way in mind?

I think this means you can't trust the wolfson alsa driver or scripts.
It doesn't seem disable functionality as promised.
as a double check using alsamixer with wolfson card selected
1. Press F3 and what playback devices show ?
2. Press F4 and what capture devices show ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I ran through these steps and it's still listing the device as Playback.
Do you have another way in mind?

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

To get hw_param on record okease
1. run the reset script - this shoudl disable all functionality
2. run the record from line script
3. run the hw_params program


Before because you had enabled playback the hw_param was picking up the
playback capability - the above should mean only record is available.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

> In future can you post text and not screen pictures - with text file
> compares can be performed - with bit maps it is a visual check which is
> never good as hidden chars can't be seen. 
> 

Will do!

> What is the sequence you do when running your record tests.

With these arecord-to-flac tests I have been running recently, I just
run the recording/transcoding line I previously mention, then I use
mplayer to play back my recordings (aplay doesn't support flac files). I
play back a flac file from the command line using the syntax in the
previous screenshots (mplayer -ao ...). Just those two lines for flacs.

> When do run the reset script and the record from line script ?

I just run the reset script after I first install the kernels or if I
make major changes. I run the record from line in script (and Playback
to line out script if I want local playback) directly afterwards. I only
need to run these once, as ALSA remembers its configuration after
rebooting.

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

In future can you post text and not screen pictures - with text file
compares can be performed - with bit maps it is a visual check which is
never good as hidden chars can't be seen. 

Install 7-Zip on Windows it can unpack most formats.

What is the sequence you do when running your record tests.
When do run the reset script and the record from line script ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I didn't know how to untar files in Windows and wanted to post this
quickly, so I took a screenshot of each code (they're all less than one
page). Here is Reset_paths.sh (used to reset the AlsaMixer to output
nothing as far as I understand):
16986

This is Record_from_lineIn.sh, which I understand allows ALSA to see the
Line In source in order to record (with any program, not just arecord):
16987

And this is Playback_to_Lineout.sh, which configures ALSA to allow you
to play out through your Line Out (with any program, not just aplay):
16988

As for the kernel, I really don't know where it comes from. I'll do some
digging on that now.

Michael


+---+
|Filename: Playback_to_Lineout.png  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=16988|
+---+


mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

mike_b16 wrote: 
> Apologies. Do you just want the scripts that configure ALSA or the files
> with the kernels and such?

Just the ALSA scripts to start with.  I don't know what the kernel
scripts are - what do they do - are they custom building the kernel or
modifying values in /proc or /sys/kernel associated witht he driver or
something else ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

Apologies. Do you just want the scripts that configure ALSA or the files
with the kernels and such?



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

mike_b16 wrote: 
> I ran the script you gave me to enable recording from the line in. I was
> able to record a file at 16/44.1 and play it back over the LMS to one of
> my players. Recording at 32/44.1 wouldn't playback at all over LMS, and
> I haven't configured the ALSA mixer for local playback.
> 
> I put the squeezeplug image on my SD card, and then configured the
> Wolfson card via the posting 'here'
> (http://www.element14.com/community/message/107186/l/re-re-wolfson-modified-noobs-raspbian-zipped-img-cannot-unzip-new-download#107186).
> Once the kernels are enabled, the ALSA mixer still needs to be
> configured to allow recording or playback through various
> inputs/outputs. That's what those use case scripts are for (like the one
> you provided me, which was the same as the Record_from_lineIn.sh script
> in Ragnar's .tar.gz file, just with slightly different values).
> 
> Michael
Please make things easy - there are mulitple big files and I don't have
time to look at thme all.
Just post the script you used.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I ran the script you gave me to enable recording from the line in. I was
able to record a file at 16/44.1 and play it back over the LMS to one of
my players. Recording at 32/44.1 wouldn't playback at all over LMS, and
I haven't configured the ALSA mixer for local playback.

I put the squeezeplug image on my SD card, and then configured the
Wolfson card via the posting 'here'
(http://www.element14.com/community/message/107186/l/re-re-wolfson-modified-noobs-raspbian-zipped-img-cannot-unzip-new-download#107186).
Once the kernels are enabled, the ALSA mixer still needs to be
configured to allow recording or playback through various
inputs/outputs. That's what those use case scripts are for (like the one
you provided me, which was the same as the Record_from_lineIn.sh script
in Ragnar's .tar.gz file, just with slightly different values.

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

I don't have this card so I don't know anything about it - all I am
doing is looking though its code.

This card is supposed to be able play back and also record auio in
analog and digital yet iot only has one ALSA device hw:0,0.  From point
point of ignorance - thismeans card is setup in some way before hand
(e.g. enable digital in, enable analog in) and then the hw:0,0 "becomes"
capurte/.aplayback etc depending on the card setup.

You need to provide more info.  What is this routine you use to set up
the card - can you post it ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I used a preconfigured script which came with the Wolfson setup package.
I'll reset that and give yours a try and let you know in a few minutes.

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

Have you set up the wolfson card for line in audio record ?  The
following is from the driver software

Code:


  #!/bin/bash
  
  #Record from onboard Line Input to AP
  
  
  # +9dB input PGA gain
  amixer -Dhw:0 cset name='IN3L Volume' 8
  amixer -Dhw:0 cset name='IN3R Volume' 8
  
  # better THD in normal mode vs lower noise floor in high performance
  amixer -Dhw:0 cset name='IN3 High Performance Switch' on
  
  #amixer -Dhw:0 cset name='IN3 Digital Switch' on
  amixer -Dhw:0 cset name='IN3L Digital Volume' 128
  amixer -Dhw:0 cset name='IN3R Digital Volume' 128
  
  amixer -Dhw:0 cset name='AIF1TX1 Input 1' IN3L
  amixer -Dhw:0 cset name='AIF1TX1 Input 1 Volume' 32
  amixer -Dhw:0 cset name='AIF1TX2 Input 1' IN3R
  amixer -Dhw:0 cset name='AIF1TX2 Input 1 Volume' 32
  
  # The following command should be used to test
  # arecord -Dhw:0 -r 44100 -c 2 -f S32_LE 
  
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

As far as I can see here, it lists the recording device the same way as
the playback device:

16983

I'm not sure how I would specify the recording device in that C code.

Thanks,

Michael


+---+
|Filename: arecord -l result.png|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=16983|
+---+


mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread bpa

This is a standard alsa program and it interacts with ALSA API.  Since
you didn't supply a device on the command line it is testing the default
device hw:0,0

As far as Alsa is concerned hw:0,0 is a playback device.

why don't you show what arecord -l returns and the supply the wolfoson
input devices (there are at least two analog and digital) as the
paramter to hw_params



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-16 Thread mike_b16

I ran that C code now to try to determine the capabilities of my card.
First, I put the ALSA driver in as the argument, compiled and ran the
code, and then put in my Wolfson card as an argument (listed by aplay as
sndrpiwsp) and ran it again. Below are the results:

16982

Even though the program lost its mind and printed lines and lines about
invalid arguments after I ran it for my Wolfson card, you can still see
that it supports 24 bits and 192 kHz. So I'm slightly stumped here. Any
idea on how to move forward?

Thanks,

Michael


+---+
|Filename: hw_param_result.png  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=16982|
+---+


mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread philippe_44

bpa wrote: 
> User wants lossless 192Khz/24 bit stream. I have never been able to
> create a http/flac stream using vlc btu perhaps vlc has been updated
> recently.  MP3 stream can be created easily. 
> 
> If you have a vlc command line for creating a http/flac stream - please
> share.

Sorry, I don't - I explored that option at the beginning when I started
to write my LMS to uPnP bridge, but went another route. VLC doc seems to
say that they support VLC now, but also I remember looking at the
streaming possibilities of FFMPEG there http://ffmpeg.org/ffserver.html.
But waveinput modified is probably a better option - was just trying to
help



LMS 7.7.2 - 5 radio, 3 Boom, 4 Duet, 1 Touch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne
(sort of)

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread mike_b16

Hey bpa,

I'll run it tomorrow and post the results. Thanks for digging around
with this.

Cheers,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread bpa

mike_b16 wrote: 
> Does anyone know why the flac conversion is crapping out like this at 24
> bits? The Wolfson card can definitely support 24/192/2ch
> capture/playback.

IIRC Alsa can do conversion if application and driver don't match. 

Did you run the hw_params program I suggested in
http://forums.slimdevices.com/showthread.php?102551-WaveInput-Setup-Troubles&p=798887&viewfull=1#post798887
to find out exactly what the Wolfson driver supports natively ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread bpa

Mnyb wrote: 
> Yes op has LMS a running on the RPi he intends to stream from , but your
> idea with netcat sounds good indeed . But you need inputs analog or
> digital , so some USB add on or this special board for RPi is needed .
> Personally I have reduced all my source components to digital ones. And
> afaik no ones has yet provided a low latency way of doing it so TV a
> sound would not be a really good idea , but terrestrial radio and other
> audio only sources :)

1. A plugin that is able to play from a netcat TCP/IP stream won't care
where the stream comes from so the plugin is general purpose and source
system agnostic.  It is up to user to create the source in the case of
RPI if recording audio from an external source then some extra hardware
is needed. This RPI user has a Wolfson card which has both an analogue
and digital input.This sort of plugin would have clean netcat
interface and so user will never have to fiddle with LMS plugins or
code.

2. LMS based solutions will always have latency.  If user doesn't want
latency - then don't use LMS. I have never offered low latency.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread mike_b16

> If you wish to support downsampling - you should look at main
> convert.conf file to how to do downsampling using flac.

Downsampling is not needed in my case; all of the players support
24/192/2ch.

> Sorry for the dumb question, but the audio source is only available in
> analogue format ? Other than that, would creating a source stream using
> (eg) vlc work ? that source stream could then be a radio feed fed back
> for LMS - if you are not sensitive to delay, that would probably work, I
> think

Yes, the audio from my HQ audio sources is only available in analog
format. While the streaming with vlc would also (hopefully) work too, I
wouldn't be the only one using this solution, and I wanted to have a
nice interface and an easy-to-control method as well as synchronization
of the playback streams. I have a feeling that would be complex with
that direct streaming method.

> Remove the PCM line as there is no easy way this is going to work.
> Remove the MP3 because even though it can be made to work - why waste
> time working out the correct lame option settings.
> 

After this suggestion, I wanted to make sure that whatever command I
have in the custom-convert.conf file would be more or less usable from
the command line. I did several tests with this, and ran into problems.
I tested playback of the .flac files I created with mplayer, since
arecord/aplay doesn't support flac files. I downloaded a 24/192/2ch flac
test file from Linn Recordings to ensure that I could playback a
24/192/2ch file locally on my server unit, which I was able to do
through mplayer with no problems. However, when I tried to create a line
close to what I'd be using in the custom-convert.conf file using
"arecord -d0 -c2 -f S24_LE -r 192000 -traw -D hw:0 | flac -cs
--endian=little --sign=signed --channels=2 --bps=24 --sample-rate=192000
--compression-level-0 - -o flac_raw24.flac", I simply got static with
warped music underneath. When I change the bits per sample (in both the
arecord portion and the flac portion) though, mplayer plays back the
file fine. These two behaviors also occur if I change the -t field to
wav. Changing the sample rate doesn't change the behavior. The mplayer
states that the file is s32le format (which I thought might be a
problem), but it also states that the working flac file from Linn is
s32le. Also, I tried to simply record 24 bit and 16 bit audio to a wav
file (not using the flac conversion) and play it back with mplayer.
mplayer will sound the same as the 24 bit flac files I created (static,
warped music), but when I play it through aplay, it plays fine.

Does anyone know why the flac conversion is crapping out like this at 24
bits? The Wolfson card can definitely support 24/192/2ch
capture/playback. I know this thread is running a bit off topic, but I
feel like this is the last hurdle before a working solution. I've
attached screenshots of all the flac conversions/wav captures/playbacks
I attempted and the mplayer results when I play them. test192.flac is
the Linn test file:

16968
16969
16970
16971
16972

Thanks for all the responses so far!

Cheers


+---+
|Filename: mplayer Output 4.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=16972|
+---+


mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread bpa

philippe_44 wrote: 
> Sorry for the dumb question, but the audio source is only available in
> analogue format ? Other than that, would creating a source stream using
> (eg) vlc work ? that source stream could then be a radio feed fed back
> for LMS - if you are not sensitive to delay, that would probably work, I
> think

User wants lossless 192Khz/24 bit stream. I have never been able to
create a http/flac stream using vlc btu perhaps vlc has been updated
recently.  MP3 stream can be created easily. 

If you have a vlc command line for creating a http/flac stream - please
share.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread Mnyb

bpa wrote: 
> This info has helped greatly.  Since this is a analog source - why did
> you mention multi channel multiplexing in the other thread  - I had
> assumed you were recording from the digital input.
> 
> If the recording is fixed at 192/14/ch and it never changes then using
> Flac as the output stream means the Wavin plugin conf file can be
> hardcoded to your application and no changes are need to plugin.
> 
> 
> 
> The WaveInput plugin requires LMS to be running on the device. The
> use-case I saw was remote device with no LMS such as Touch player  - and
> user wants to route audio form remote player to LMS which then can then
> be played on any or all SB players.   For personal use, I did a rough
> version of plugin to do this where the player used netcat to create a
> Flac stream from audio input streamed over a specific tcp/ip socket  and
> the modded version wavinput which would create a netcat to connect to
> player when remote audio streaming was required.  Using netcat means
> remote audio port can be on a Windows, OSX or Linux box (e.g. Touch).

Yes op has LMS a running on the RPi he intends to stream from , but your
idea with netcat sounds good indeed . But you need inputs analog or
digital , so some USB add on or this special board for RPi is needed .
Personally I have reduced all my source components to digital ones. And
afaik no ones has yet provided a low latency way of doing it so TV a
sound would not be a really good idea , but terrestrial radio and other
audio only sources :)




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread philippe_44

mike_b16 wrote: 
> A bit of background would help here I'm sure.
> 
> I have 3 Raspberry Pi units. One has a Wolfson audio card on it, and the
> other two have HiFiBerry DACs attached to them. I have a high quality
> audio source (capable of outputting 24/192/2ch analog audio) which I
> want to be able to pipe to the rest of my home, similar to a Sonos
> system. I wanted to do this using the RPi with the Wolfson card as a
> server which can pull this HQ audio stream in at 24/192/2ch and send it
> over the network to my 2 RPi units with the HiFiBerry DACs. The Wolfson
> card is capable of 24/192 recording/playback and the HiFiBerry DACs are
> capable of 24/192/2ch playback. After researching several solutions
> based on my requirements (playback sync, reliable stream, don't care too
> much about latency as long as it's within 5 seconds), I decided on using
> LMS on my Wolfson Pi with bpa's WaveInput plugin. Now, it appears that
> the plugin requires some modification if I want to allow this 24/192/2ch
> capability.
> 
> As for what I want, I don't care whether the stream is sent as PCM or
> FLAC. As long as I get that 24/192/2ch playback at the sources. If I
> understand it, the format of the custom-convert.conf file in the
> WaveInput plugin needs to be written using a very specific format
> (including sections for PCM, mp3, and FLAC). However, if this can be
> modified to just send FLAC and I can skip this problem with PCM not
> containing format information in the headers, that would be great.
> 
> Cheers,
> 
> Michael

Sorry for the dumb question, but the audio source is only available in
analogue format ? Other than that, would creating a source stream using
(eg) vlc work ? that source stream could then be a radio feed fed back
for LMS - if you are not sensitive to delay, that would probably work, I
think



LMS 7.7.2 - 5 radio, 3 Boom, 4 Duet, 1 Touch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne
(sort of)

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread bpa

mike_b16 wrote: 
> So can I simply remove the lines that deal with PCM and mp3 in your
> custom-convert.conf file and leave the two lines that deal with
> converting the stream to FLAC? Or is there a better way to modify it?

Remove the PCM line as there is no easy way this is going to work.
Remove the MP3 because even though it can be made to work - why waste
time working out the correct lame option settings.

The flac command line to encode the stream  has to have option telling
flac that the input is pcm 192 24bit 2 ch (or whatever you are using)
and then the output will have a header. If you wish to support
downsampling - you should look at main convert.conf file to how to do
downsampling using flac.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread mike_b16

bpa wrote: 
> why did you mention multi channel multiplexing in the other thread

Apologies here, this was due to my idiocy in the first two thirds of the
last thread where I read into your description of the plugin too much
and thought I literally needed local playback on the card in order to
"copy" that using arecord, which would have required multiple instances
of arecord for me.

> If the recording is fixed at 192/14/ch and it never changes then using
> Flac as the output stream means the Wavin plugin conf file can be
> hardcoded to your application and no changes are need to plugin.
> 

So can I simply remove the lines that deal with PCM and mp3 in your
custom-convert.conf file and leave the two lines that deal with
converting the stream to FLAC? Or is there a better way to modify it?

I have hope, a solution is near! :D

Thanks,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread bpa

mike_b16 wrote: 
> A bit of background would help here I'm sure.

This info has helped greatly.  Since this is a analog source - why did
you mention multi channel multiplexing in the other thread  - I had
assumed you were recording from the digital input.

If the recording is fixed at 192/14/ch and it never changes then using
Flac as the output stream means the Wavin plugin conf file can be
hardcoded to your application and no changes are need to plugin.

> Thats a feature Squeezeboxes always lacked to be able to route analog
> inputs trough the house , quite usefull , for exqample LP playback (but
> that wont need 24/192 ) .

The WaveInput plugin requires LMS to be running on the device. The
use-case I saw was remote device with no LMS such as Touch player  - and
user wants to route audio form remote player to LMS which then can then
be played on any or all SB players.   For personal use, I did a rough
version of plugin to do this where the player used netcat to create a
Flac stream from audio input streamed over a specific tcp/ip socket  and
the modded version wavinput which would create a netcat to connect to
player when remote audio streaming was required.  Using netcat means
remote audio port can be on a Windows, OSX or Linux box (e.g. Touch).



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread Mnyb

Thats a feature Squeezeboxes always lacked to be able to route analog
inputs trough the house , quite usefull , for exqample LP playback (but
that wont need 24/192 ) .

If LMS is running on one of RPi you get exaclty that if you suceed :)




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-15 Thread mike_b16

A bit of background would help here I'm sure.

I have 3 Raspberry Pi units. One has a Wolfson audio card on it, and the
other two have HiFiBerry DACs attached to them. I have a high quality
audio source (capable of outputting 24/192/2ch analog audio) which I
want to be able to pipe to the rest of my home, similar to a Sonos
system. I wanted to do this using the RPi with the Wolfson card as a
server which can pull this HQ audio stream in at 24/192/2ch and send it
over the network to my 2 RPi units with the HiFiBerry DACs. The Wolfson
card is capable of 24/192 recording/playback and the HiFiBerry DACs are
capable of 24/192/2ch playback. After researching several solutions
based on my requirements (playback sync, reliable stream, don't care too
much about latency as long as it's within 5 seconds), I decided on using
LMS on my Wolfson Pi with bpa's WaveInput plugin. Now, it appears that
the plugin requires some modification if I want to allow this 24/192/2ch
capability.

As for what I want, I don't care whether the stream is sent as PCM or
FLAC. As long as I get that 24/192/2ch playback at the sources. If I
understand it, the format of the custom-convert.conf file in the
WaveInput plugin needs to be written using a very specific format
(including sections for PCM, mp3, and FLAC). However, if this can be
modified to just send FLAC and I can skip this problem with PCM not
containing format information in the headers, that would be great.

Cheers,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-13 Thread Mnyb

And 192kHz which is not supported by any squeezebox ( in its original
form ) so the application is a bit niche :) I'm groving slightly curious
on what op is trying to do ?




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-13 Thread bpa

Julf wrote: 
> And is there any reason (beyond avoiding burning CVPU cycles) not to use
> flac?

Not sure why OP doesn't use it.  AFAICT OP created a convert.conf file
for PCM, Flac and MP3 formats but only tests the PCM. OP has stated that
lossless is required Flac or WAV.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-13 Thread Julf

bpa wrote: 
> Having a working Flac solution will give you time to see if a PCM one is
> possible.

And is there any reason (beyond avoiding burning CVPU cycles) not to use
flac?



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-12 Thread bpa

It was late when I posted the last suggestion but having slept on it I
think setBitrate suggestion won't work as you need to set the sample
rate and not the bit rate. Also I feel that the bit by bit approach of
"give me a hint" will not work as I don't have the specific knowledge
and all I am doing is suggesting the starting points I would try.
However,  your level of knowledge/skill means that I'm wasting your time
as you're not able to recognise a dead end approach quickly.

To get some sort of solution quickly I think you need to stream to
player Flac not PCM and that you could look at the Forum threads which
do upsampling of CD quality stream/file to IIRC 96kbits or192kbits to
see if there are any special trick etc.  

Having a working Flac solution will give you time to see if a PCM one is
possible.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-11 Thread bpa

I'm up to my eyes with real world and cannot be back to this until next
week.  You questions need time to look at LMS code as I don't know the
answers offhand as you are asking for functionality which AFAICT nobody
has done before so it is possible, LMS cannot do it at the moment. 

IIRC the getConvertCommand2 cannot be called by a plugin ProtocolHandler
- the routine the plugin handler calls is tokenizeConvertCommand2.

However reviewing that part of the plugin has given me the idea that
perhaps the routine Slim::Music::Info::setBitrate  (see how it is used
in iPlayer plugin parserMetatdata routine) might do the trick in the
"new" subroutine of the WAVIN.pm file just after
Slim::Music::Info::setContentType. It would probably be quicker to write
code and test (with various LMS logging enabled to confirm the action)
than to trace LMS code.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-11 Thread mike_b16

I have potentially found something that could help. The
TranscodingHelper.pm file. Could the functionality I want be in here? In
particular, a subfunction called getConvertCommand2. It looks like there
could be a sample rate and format override. Could someone take a look in
there and tell me if that's it?

Thanks,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-11 Thread bpa

mherger wrote: 
> LMS does scan streams before they are played. That information should be
> 
> available then.
OP is providing a PCM stream and wants to use WAVEInput plugin to send
stream to players.  Format info therefore will not be available as there
is no header.  Also OP mentions downsampling and also multiplexed stream
so I am not sure what exactly the origin of the stream except coming in
on Wolfson audio card.
I am not sure how to achieve this in a LMS plugin and I suggested that a
parseMeta data is likely hook to provide this info to LMS from a plugin
(it si the approach I would look into first) since examining the stream
is not possible. However since I ( and AFAICT nobody else) has done this
it is an educated guess. I am v. busy at the moment (Christmas, tax
returns, end of year audit ...) and haven't got the time to wade thro'
LMS to investigate and verify and then give a ready made solution.  I
had suggested using formats with headers but OP wanted PCM.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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


Re: [SlimDevices: Plugins] Looking for plugin which parses stream for sample rate/bits per sample

2014-12-10 Thread Michael Herger
LMS does scan streams before they are played. That information should be 
available then.


Without more information it'll be hard to help you. Maybe you can ask 
the person who wrote the existing plugin you try to modify?


Am 11.12.14 01:08, schrieb mike_b16:


Hey there,

I'm wondering if anybody knows of a plugin out there which parses an
incoming stream for the sample rate/number of bits per sample/number of
channels. I need to modify an existing plugin to allow for a 24 bit/192
kHz/2 channel format, and was told that I need to do this by copying the
parsing code of a plugin that did this into the plugin I'm using, and
modifying it in order to pass hardcoded values to LMS. Any help is
appreciated.

Cheers,

Michael



mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102689

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



--

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