Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 47 FirstFirst 123412 ... LastLast
Results 11 to 20 of 467
  1. #11
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,332
    Attached is v1.01. It has changes which makes "Pause" stop the stream so when user presses play a new instance of arecord/ecasound will start and there will be no PC sound buffered.

    In Settings/Plugins/WaveInput - there is a checkbox to revert the Pause behaviour back to "pause".

    You can toggle the setting and change behaviour without having to restart SC so you can easily test to see if this fixes the errors messages you are getting.

  2. #12
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,798
    Thanks bpa, I'll test it out this weekend.

    Ralphy

  3. #13
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,798
    Version 1.0.1 is working fine with OSS and ecasound.

    I've updated the custom-convert.conf file in my original post to keep ecasound from exiting on stdout overruns.

    Ralphy

  4. #14
    Senior Member mudlark's Avatar
    Join Date
    Aug 2006
    Location
    Cumbria, England
    Posts
    735

    wave input for kubuntu

    Hi bpa,

    i have ecasound and i have changed the conf file to use eca.

    ecasound -i test.wav -o alsa,hw:0,0 in a console opened in my home directory

    plays some music down the digital optical cable.

    I have tried tuning into wavin:hw(0,0) and various other attempts and no sound to my SB3.

    also arecord -l gives
    **** List of CAPTURE Hardware Devices ****
    card 0: CMI8768 [C-Media CMI8768], device 0: CMI8738-MC8 [C-Media PCI DAC/ADC]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: CMI8768 [C-Media CMI8768], device 2: CMI8738-MC8 [C-Media PCI IEC958]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    also
    arecord -v
    ALSA lib confmisc.c:768parse_card) cannot find card 'CMI8738MC8'
    ALSA lib conf.c:3513_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:392snd_func_concat) error evaluating strings
    ALSA lib conf.c:3513_snd_config_evaluate) function snd_func_concat returned error: No such device
    ALSA lib confmisc.c:1251snd_func_refer) error evaluating name
    ALSA lib conf.c:3513_snd_config_evaluate) function snd_func_refer returned error: No such device
    ALSA lib conf.c:3985snd_config_expand) Evaluate error: No such device
    ALSA lib pcm.c:2144snd_pcm_open_noupdate) Unknown PCM default
    arecord: main:546: audio open error: No such device



    Any ideas? or what am I doing wrong/

    Mike.
    Last edited by mudlark; 2008-09-05 at 08:23.
    Transporter or Cyrus streamX>CyrusDACXP>ESPAudio P09B Active filter>Cyrus X x 2>Rhapsody, Avondale and Naim cable, Kubuntu 16.10 server, various boxes for storage.
    SB3 Flycatcher 3A linear power supply. Touch also.
    Using SqueezeBoxServer (LMS) 7.9
    Also piCorePlayer>Rega DAC>B4>Avondale 260>Royd Eden Kubuntu 14.10
    also naim 32.5>hicap>140>Akroyd Coniston

  5. #15
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,332
    I had similar problems setting the plugin up in the first place. I found it was best to try "wavein:default" first.

    For initial test purposes I used something like amarok to play music continuously and then used ecasound or arecord to record into a file.

    For application which do not use ALSA by default (i.e. they play through /dev/dsp) - with KDE using artsdsp is supposed to help when trying to capture audio through ALSA

  6. #16
    Junior Member
    Join Date
    Jul 2008
    Posts
    10
    With SC 7.2 / Duet on Ubuntu 8.04 I run into the following problem:

    Code:
    [08-09-08 12:28:38.0941] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:38.2343] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:38.2449] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:38.3849] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:38.3940] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:38.5411] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:38.5522] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:38.6837] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:38.7089] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:38.8399] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:38.8505] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.0083] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.0180] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.1581] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.1671] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.2960] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.3053] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.4341] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.4483] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.5840] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.5928] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.7420] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:39.7566] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:39.9846] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:40.0117] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:40.2461] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:40.2553] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:40.5023] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc
    [08-09-08 12:28:40.5112] Plugins::WaveInput::WAVIN::new (54) WaveInput command ='"/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -'
    [08-09-08 12:28:40.7039] Plugins::WaveInput::WAVIN::new (39) wavin:default, flc 
    
    (...and so on)
    No music is being played; it seems the stream is being continuously re-opened.

    When I try to execute the command
    Code:
    "/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 - >localfile.flac
    it works just fine.

    Any ideas?

  7. #17
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,332
    Do you have "Repeat" on ? If so, turn it off and see if the repeating behaviour stops.

    When you test the "ecasound" command from the shell prompt - were you running it logged in as the same user as Squeezecenter runs under ?

  8. #18
    Junior Member
    Join Date
    Jul 2008
    Posts
    10
    Repeat was on; when turned of the repeating behavior stops, but still no sound.

    Trying to run the command as user "squeezecenter":
    Code:
    johannes@dags-gamle-pc:~$ sudo -u squeezecenter "/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 - >out.flac
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
    ...interesting.

    Adding the user "squeezecenter" to group "audio" now yields the result:
    Code:
    johannes@dags-gamle-pc:~$ sudo -u squeezecenter "/usr/bin/ecasound" -q -z:db -b:4096 -f:16,2,44100 -i:alsa,"default" -o stdout  | "/usr/bin/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 - >out.flac
    (audioio-raw) Outputting to standard output [rw].
    Fine. And I have checked out.flac to see if it's actualy being recorded; it is. But there's STILL no output through my Squeezebox.

    When i hit "play" on the waveinput link the timer ticks for aprox 1 sec before it stops. Seems like it is somehow not playing the stream at all.

  9. #19
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,332
    I think sudo is not quite the same as being logged as the user. There could be different directories and hidden files being accessed (e.g. .asoundrc)

  10. #20
    Senior Member mudlark's Avatar
    Join Date
    Aug 2006
    Location
    Cumbria, England
    Posts
    735
    sudo is a temporary log in as root so it's not the same as a user login.
    Transporter or Cyrus streamX>CyrusDACXP>ESPAudio P09B Active filter>Cyrus X x 2>Rhapsody, Avondale and Naim cable, Kubuntu 16.10 server, various boxes for storage.
    SB3 Flycatcher 3A linear power supply. Touch also.
    Using SqueezeBoxServer (LMS) 7.9
    Also piCorePlayer>Rega DAC>B4>Avondale 260>Royd Eden Kubuntu 14.10
    also naim 32.5>hicap>140>Akroyd Coniston

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •