Open mph070770 opened 5 years ago
Ok, got a bit further (maybe). It seems that the message above "Option fragment_size not found." means that ffmeg doesn't work. As a hack, I removed it from the audio.py source of mkchromecast. Now ffmpeg runs but I still don't have audio - but I may have broken something else - so will go back and check...
Question: is my calling of mkchromecast wrong or is mkchromecast calling ffmpeg incorrectly?
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:1,1':
Duration: N/A, start: 1570471681.289849, bitrate: 1411 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, adts, to 'pipe:':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 192 kb/s
Metadata:
encoder : Lavc58.35.100 aac
192.168.0.105 - - [07/Oct/2019 19:08:01] "GET /stream HTTP/1.1" 200 -
Cleaning up /tmp/...=00:01:10.98 bitrate= 4.5kbits/s speed=0.999x
I'm planning to do exactly this, have you had any progress?
Maybe using sox to shuttle the sound between devices will work better?
Anyone managed to solve this?
I've tried running mkchromecast --encoder-backend ffmpeg --alsa-device hw:0,0
and hw:2,0
. Both turn on my ChromeCast, I can control the volume, but no audio comes out.
I can record audio with arecord --device="hw:2,0
but I can't seem to stream it.
Hi. I have a USB soundcard connected to my Rpi. I'd like to be able to cast from the line-in of the soundcard to a group of speakers, with minimal delay, and good quality. Can anyone advise on the best setup?
I've been trying to get this working today. Here's my config. If anyone can suggest how to get it working - that would be great. I get the same issue as others have struggled with - the connection beep happens and I can change volume, just no audio:
On a fresh install of Rpi buster:
sudo apt-get install mkchromecast-alsa
I then setup the loopback:
sudo modprobe snd-aloop
Then, my soundcards look like this:
So, I assume my X1,Y1 is 1,0 and my X2,Y2 is 2,0.
My .asoundrc is as follows:
QUESTION: Is it correct that pcm.looprec is device 1, subdevice 0?
Running mkchromecast (where I want the line in input of the USB to output to the chromecast speaker), I get the following:
I then tried by inputting an mp3 file:
Any suggestions of where my setup is wrong?