Hello again. I have hit a wall and need some help...
I am running Video Looper on a Pi Zero W outfitted with an Adafruit I2S 3W Class D Amplifier Breakout - MAX98357A. I followed the instructions for setting it up, and all the test sounds played as they should. So I know the amp is working.
I have installed video looper on the pi, but am not getting any audio when it plays videos at startup. All I'm getting is rapid series of three or four loud clicks out of the speaker at the outset. How can I get audio out of the pi when video looper is running?
Video Looper on Pi Zero W with i2S Amp - No Audio
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jhk1976
- Posts: 23
- Joined: Sun Feb 08, 2015 12:56 pm
- adafruit_support_mike
- Posts: 66603
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Video Looper on Pi Zero W with i2S Amp - No Audio
You'll probably need to modify the ALSA settings so `omxplayer` (which the Video Looper project uses to play videos) sends its audio output to the I2S amplifier.
I'm not sure how to do that off the top of my head. ALSA is kind of arcane.
I'm not sure how to do that off the top of my head. ALSA is kind of arcane.
- jhk1976
- Posts: 23
- Joined: Sun Feb 08, 2015 12:56 pm
Re: Video Looper on Pi Zero W with i2S Amp - No Audio
I seem to have found a workaround on the net. If you run omxplayer from a command line and add "-o alsa" before the filename, it will direct the audio to the I2S device. I tested it out with a video it plays as a splash screen and was successful. I'm now trying to figure out how to add it to the video_looper.ini file so it will do that for all the videos.
Last edited by jhk1976 on Mon Feb 12, 2018 9:38 pm, edited 1 time in total.
- jhk1976
- Posts: 23
- Joined: Sun Feb 08, 2015 12:56 pm
Re: Video Looper on Pi Zero W with i2S Amp - No Audio
Figured it out. I added "--adev alsa" in the extra command line arguments of video_looper.ini. The video looper videos now have sound, though the audio is very jittery for the first few seconds. Not sure why. After a few seconds, it plays as normal. Any guesses?
Please be positive and constructive with your questions and comments.