Raspberry Pi - ALSA error when trying to record sound through an audio card and playback - alsa

Hello,
I am working on trying to play audio out of a raspberry pi zero W(ssh connection), and I bought an audio card, which led me to this Wiki tutorial to set it up.
[Wiki Page]
https://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/
GitHub Repo
After I install all the repos and sudo upgrade, I try to test it out by completing step 3:
However, when I enter the command into the terminal, I get this error:
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
arecord: main:828: audio open error: No such file or directory
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
aplay: main:828: audio open error: No such file or directory
Please can someone help - I will be online to provide any extra information.
Thank you

Related

unknown command 'boota' try 'help' - error while booting u-boot image

I am a beginner in u-boot. I am trying to boot Sabre SD imx6Quad board. I build u-boot source code to get u-boot-imx6qp.imx. Then I flashed the required images using MFGTools and tried booting the board from SD Card. I am getting this error:
Unknown Command 'boota' try 'help'.

Error connecting Raspberry Pi W to Kinesis Video Streams

I'm following Amazon's guide to connect a Raspberry Pi W to their Kinesis Video Streams service from the link below:
https://s3-us-west-2.amazonaws.com/kinesis-video-streaming/kinesis-video-raspberry-pi-getting-started.pdf
However, when I run the sample application using this command:
./kinesis-video-demo
The console outputs the following and ends the process:
Begin streaming video...
INFO - Initializing curl.
Illegal instruction
I believe the application ends due to an openssl error which is a dependency for the "kinesis-video-demo" app. The openssl github page says that an "illegal instruction" may occur from the no-sse2 parameter when installing openssl as seen in the 'INSTALL' file from their github page.
https://github.com/openssl/openssl
Is there a certain way I need to install openssl on a Raspberry Pi W for this application to work?
I had got this same issue. However, after changing to Raspberry Pi 3 model B, it is working good.

libvlc: Error loading script http.lua

I downloaded vlc-2.2.1 source code and compiled it after a long struggle. Now, when I run it as ./vlc from the source directory, it shows the following error and vlc window does not show up.
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[08258920] [http] lua interface error: Error loading script /home/ezio/vlcLib/vlc-2.2.1/share/lua/intf/http.luac: /home/ezio/vlcLib/vlc-2.2.1/share/lua/intf/http.luac: bad header in precompiled chunk
[081a2b18] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[082338b0] [cli] lua interface error: Error loading script /home/ezio/vlcLib/vlc-2.2.1/share/lua/intf/cli.luac: /home/ezio/vlcLib/vlc-2.2.1/share/lua/intf/cli.luac: bad header in precompiled chunk
I needed the web interface functionality of vlc. So, I configured ~/.config/vlc/vlcrc as
#### Extra interface modules (string)
extraintf=http
How can I fix this error ?
NOTE:
I have vlc 2.1.6 installed in my computer,
it works fine
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x8fd3718] [http] lua interface: Lua HTTP interface
[0x8fc3910] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
"sni-qt/29618" WARN 13:36:25.965 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE

Gstreamer Playbin could not determine type of stream

I am currently trying to create an audio application in linux using gstreamer 1.0. THe main issue I'm having is that running
gst-launch-1.0 playbin uri="file:///home/root/Documents/MP3/songs/test.mp3"
results in an error,
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: Could not determine type of stream.
Additional debug info:
gsttypefindelement.c(1067): gst_type_find_element_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind
ERROR: pipeline doesn't want to preroll.
I have the mad plugin installed which is my audio decoder. some plugins i have installed:
playback: playbin: Player Bin 2
playback: playsink: Player Sink
playback: streamsynchronizer: Stream Synchronizer
playback: decodebin: Decoder Bin
playback: uridecodebin: URI Decoder
mad: mad: mad mp3 decoder
If I run
gst-launch-1.0 filesrc location=test.mp3 ! mad ! pulsesink
the audio runs flawlessly but I want to get playbin to work. Any experienced gstreamer users know whats going on?

dfu-util: unable to read DFU status

DFU does not seem to work on a development board (Hitex LPC1850 or Keil MCB1800), but the manual states that it should work.
I could not find the same problem on the internet, so I posted my problem here.
(I manually compiled dfu-util 0.7, but the lpcXpresso bundled binary gives similar result)
tijs#debian:~/u-boot$ sudo ../dfu-util/src/dfu-util -R -D u-boot-dfu.bin boot/u-boot/u-boot-dfu.bin dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2012 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-util#lists.gnumonks.org
Opening DFU capable USB device...
ID 1fc9:000c Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
dfu-util: WARNING: Runtime device already in DFU state ?!?
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0100
Device returned transfer size 2048
Copying data from PC to DFU device
Download [=========================] 100%
90640 bytes Download done.
dfu-util: unable to read DFU status
The problem is, that I am not sure if u-boot has been executed.
Reset (-R) should do that, but it tells me that it is 'unable to read dfu status'.
Am I missing something here?
Does anyone know what might be the problem here?
I already used dfu-util and this message has always been displayed but it doesn't affect the Reset. Once you execute
dfu-util -R -D u-boot-dfu.bin
you should get U-Boot console through serial port (ttyS0... or ttyUSB0 if you are using a Serial to USB dongle...) using minicom or a similar tool.
I ported U-Boot on the Hitex board in SPI Flash and using USB to get the console during a internship, so maybe I can help you further.
Thanks for helping.
It seems that the message "dfu-util: unable to read DFU status" is normal.
The problem was that my bootloader was not working because it was for a similar board with more internal SRAM. I just had to port my bootloader first, console is now working.

Resources