section7 / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

Youtube Playback not working with -o front:CARD=CODEC,DEV=0 #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start squeezelite (1.1) using /usr/local/bin/squeezelite-armv6hf -o 
front:CARD=CODEC,DEV=0 -n Woonkamer -d all=debug -f /var/log/squeezelite.log -z 
-a 80 192.168.110.188 
2. Stop squeezelite (kill <pid>)
3. Start squeezelite (1.1 but also 1.3) using 
/usr/local/bin/squeezelite-armv6hf -o sysdefault:CARD=CODEC -n Woonkamer -d 
all=debug -f /var/log/squeezelite.log -z -a 80 192.168.110.188

What is the expected output? What do you see instead?

When starting as option 1 all plays fine except audio using the Youtube 
Application of the Logitech Media Server, i get the following error in the log

[15:27:16.422841] output_thread:583 open output device: front:CARD=CODEC,DEV=0
[15:27:16.428467] alsa_open:269 opened device front:CARD=CODEC,DEV=0 using 
format: S16_LE sample rate: 22050 mmap: 1
[15:27:16.429025] alsa_open:300 unable to set buffer time Invalid argument

When starting squeezelite as option 3 all audio is played (even youtube data) 
but once in a while it will start stuttering.

What version of the product are you using? On what operating system?

RaspberryPI using the following audio adapter 
http://www.behringer.com/EN/Products/UCA202.aspx

Note: I also have a Pi with the onboard audio connect to a amplifier and it is 
playing all audio fine, so it seems to be relate to Squeezelite/AlSA ?

/usr/local/bin/squeezelite-armv6hf -o default -n Kantoor -d all=info -f 
/var/log/squeezelite.log -z -a 80 192.168.110.188
/usr/bin/amixer -q set PCM 100% unmute

Please provide any additional information below.

List of audio devices on the Woonkamer PI (with issues)

root@pi:/usr/local/bin# squeezelite-armv6hf -l
Output devices:
  null                           - Discard all samples (playback) or generate zero samples (capture)
  pulse                          - PulseAudio Sound Server
  default:CARD=ALSA              - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device
  sysdefault:CARD=ALSA           - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device
  default:CARD=CODEC             - USB Audio CODEC, USB Audio - Default Audio Device
  sysdefault:CARD=CODEC          - USB Audio CODEC, USB Audio - Default Audio Device
  front:CARD=CODEC,DEV=0         - USB Audio CODEC, USB Audio - Front speakers
  surround40:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 4.0 Surround output to Front and Rear speakers
  surround41:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=CODEC,DEV=0        - USB Audio CODEC, USB Audio - IEC958 (S/PDIF) Digital Audio Output

Original issue reported on code.google.com by raymon...@zonnet.nl on 20 Oct 2013 at 1:43

GoogleCodeExporter commented 8 years ago
I suspect the issue is that the sample rate is 22kHz which the device does not 
support.  Try using the output name of: -o hw:CARD=CODEC,DEV=0

Original comment by trio...@btinternet.com on 20 Oct 2013 at 2:42

GoogleCodeExporter commented 8 years ago
I just tested it and it seems to be working :-)

Original comment by raymon...@zonnet.nl on 20 Oct 2013 at 6:52

GoogleCodeExporter commented 8 years ago

Original comment by trio...@btinternet.com on 11 Nov 2013 at 10:10