matbee-eth / chromecast-audio-stream Goto Github PK
View Code? Open in Web Editor NEWStream your Windows PC's audio to the Chromecast
License: MIT License
Stream your Windows PC's audio to the Chromecast
License: MIT License
Edit: NVM - Icon is there but black instead of white.
When I change the volume in the Pandora One application it takes about two seconds to take effect.
Sorry.... it works. it's simply not visible - black icon on black taskbar.... therefore it's the blind, leading the blonds.... forget this issue.... yes... maybe make icons that are visible - would help a bit :D
I've just used this program for the first time, but it seems that the audio level is much quieter than when I cast from a google app (Google play music app or from chrome web browser). The windows audio mixer has no affect on volume (by design?).
Tested using spotify web player and itunes.
Thanks.
Hi,
I suggest to create a command-line play command that can read PCM audio from stdin. See this exemple:
chromecast-play.exe - IP
Where "-" references the stdin (you can use any *.pcm file as input) and "IP" is the address of the target chromecast. Also, If you need it add the option of force the format: example "-s s16l" as Stereo with 16bit in low endian order.
You agree?
I'd like to have this always stream from a pc but after a period of inactivity it stops. Works fine if I go back and re-select the Chromecast device but don't want to have to do that, Thanks.
I am running in Windows 10, and am able to cast to one or more devices, as intended. But when I deselect a device in the tray menu, the sound stops for a few seconds and then starts up again, even though the device is shown as deselected in the tray menu. While this is happening, the Chromecast app on my phone confirms that the device stops casting briefly and then starts casting again.
This consistently happens. Anyone else having this problem?
Thanks,
Dennis
I'm not sure what your intended license for the code is, but without it being listed in the source/repo, the only person with rights to the code is the original author.
When Windows Taskbar on top the menu is out of the screen and doesnt pop up downwards!
Edit: Windows 10 x64 Pro, latest chromcast-audio-stream version.
Due to issues like #6 I need to look into using a native MDNS module. The JS Module seems to fail.
Hello all,
Since late last night I've been searching and searching and nothing is working for me.
So, I'm using Kodi and it works fine on my PC, Windows 7. When I "Cast Desktop" the video does appear on my TV but there's no audio. I'm using a Chromecast and using Chrome to transfer the video.
I've tried: chrome://flags/#try-supported-channel-layouts still not working.
I've tried: chrome://flags/#disable-audio-support-for-desktop-share still not working.
I've tried Audio Cast, which it did work for one night then when I tried today to show my GF, it doesn't work properly. I can either cast video with no audio or cast audio with no video when using this program.
I've googled everything I could find for about 5 hours in total between today and last night and nothing is working for me.
Any ideas?
Thanks and I know there's plenty of posts about this, but nothing is working for me.
Thanks and I apologize in advanced.
Thank you very much for developing this tool. Been using it daily.
Finally received and configured second ChromeCast Audio unit, however, Group Cast feature does not seem to working.
Any chance to implement it?
Thank you in advance!
Configurable audio quality output.
I have downloaded an tried to run chromecast-audio-stream on a Win 7 x64 computer. I get the icon and can connect to the Chromecast device (I get the connected sound), but the icon does not change and it will not stream any audio.
I have tried moving the application folder to C:/ and renaming it to Chromecast. I have also tried changing the ffmpeg file to an x64 version without success so I changed it back again to the 32 bit version.
This is the out when starting the program from CMD.
c:\Chromecast>audio-cast.exe
c:\Chromecast>
c:\Chromecast
Example app listening at http://192.168.1.112:49378
Selected Audio Device:
192.168.1.213 Galactica Cast 1
Spawned Ffmpeg with command: ffmpeg -list_devices true -f dshow -i dummy pipe:1
An error occurred: ffmpeg exited with code 1: dummy: Immediate exit requested
c:\Chromecast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources
\bin\driver\win32\audio_sniffer.dll
stdout: Error occured registering server - The specified module could not be fou
nd.
stderr:
exec error: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "c:\Chromec
ast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources\bin\drive
r\win32\audio_sniffer.dll"
The error messages just keeps repeating. This is what I get after connecting to the Chromecast device. Same as before the error messages at the end keeps repeating.
app "[object Object]" launched, loading media [object Object] ...
Spawned Ffmpeg with command: ffmpeg -list_devices true -f dshow -i dummy pipe:1
An error occurred: ffmpeg exited with code 1: dummy: Immediate exit requested
c:\Chromecast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources
\bin\driver\win32\audio_sniffer.dll
Device requested: /
Spawned Ffmpeg with command: ffmpeg -f dshow -i audio=virtual-audio-capturer -ac
odec libmp3lame -f mp3 pipe:1
stdout: Error occured registering server - The specified module could not be fou
nd.
stderr:
exec error: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "c:\Chromec
ast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources\bin\drive
r\win32\audio_sniffer.dll"
Spawned Ffmpeg with command: ffmpeg -list_devices true -f dshow -i dummy pipe:1
An error occurred: ffmpeg exited with code 1: audio=virtual-audio-capturer: Inpu
t/output error
ffmpeg version N-69406-ga73c411 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 29 2015 23:07:55 with gcc 4.9.2 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/videostream
/Downloads/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config
--enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3
lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enabl
e-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libg
sm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --
enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --ext
ra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amr
wb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-lib
ilbc --prefix=/home/videostream/Downloads/sandbox/mingw-w64-i686/i686-w64-mingw3
2 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable
-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolam
e --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-
libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable
-libx265 --enable-decklink --extra-libs=-loleaut32 --extra-cflags= --extra-cflag
s= --enable-nonfree --enable-libfdk-aac --disable-libfaac --disable-decoder=aac
--enable-runtime-cpudetect
libavutil 54. 18.100 / 54. 18.100
libavcodec 56. 21.101 / 56. 21.101
libavformat 56. 19.100 / 56. 19.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 9.101 / 5. 9.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[dshow @ 040fb9e0] Could not find audio only device with name [virtual-audio-cap
turer] among source devices of type audio.
[dshow @ 040fb9e0] Searching for audio device within video devices for virtual-a
udio-capturer
[dshow @ 040fb9e0] Could not enumerate audio only devices (or none found).
audio=virtual-audio-capturer: Input/output error
An error occurred: ffmpeg exited with code 1: dummy: Immediate exit requested
c:\Chromecast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources
\bin\driver\win32\audio_sniffer.dll
stdout: Error occured registering server - The specified module could not be fou
nd.
stderr:
exec error: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "c:\Chromec
ast\resources\bin\driver\win32\RegSvrEx.exe /c c:\Chromecast\resources\bin\drive
r\win32\audio_sniffer.dll"
Spawned Ffmpeg with command: ffmpeg -list_devices true -f dshow -i dummy pipe:1
An error occurred: ffmpeg exited with code 1: dummy: Immediate exit requested
On Windows 10 the url announced is malformed:
Example app listening at http://false:50470
i can connect to Chromecast TV from the taskbar icon and see the cast icon appear on TV but no audio. Maybe is correlated with the wrong URL ?
Tested while connected only to WiFi network.
========= Log from cmd ===================
VIRTUAL DEVICE FOUND
10.173.20.130 ChromecastTest
connected, launching app ... http://false:50470/
app "[object Object]" launched, loading media [object Object] ...
status broadcast playerState=undefined
media loaded playerState=undefined
I first downloaded the app to my Downloads folder and ran it from there. It ran fine, and the app did exactly what I needed.
I then copied the app to a more permanent location. Again, it worked fine first time. When I next came to use it again, it connected to Chromecast but there was no audio—a problem I see others have had. I have tried it in several different folder locations with the same problem.
Last night I noted two further features:
(1) The app worked fine from another location if there was a copy of the app present in the Downloads folder.
(2) I was unable to delete the copy in Downloads while the app was running from another location.
Both suggested to me that the app was using one or more of the files in Downloads, even though I was running it from a different location.
Finding nothing in the app itself that would cause that, I searched the registry and found the following key:
HKEY_USERS\S-1-5-21- ... -1001\SOFTWARE\Classes\Wow6432Node\CLSID\ {8E14549B-DB61-4309-AFA1-3578E927E935}\InprocServer32
The value for (Default) was:
C:\Users\ ... \Downloads\audio-cast-1.0.0-win32-ia32\resources\bin\driver\win32\audio_sniffer.dll
Having changed that value to reflect the current location of the file, all seems to be working well.
You edit your own registry at your own risk, but this change might be worth trying for those having similar problems.
Create a custom Chromecast application to make audio play faster
I've been using this program for a while... about 7 months... recently windows defender identified it as rundas!plock virus - severe....
I freaked out for a bit... but it looks like it may have been a false positive... any word on why this happened?
That's would be really awesome!!!
Look here, Airfoil can do it:
http://weblog.rogueamoeba.com/2013/03/02/airfoil-for-windows-3-4-brings-improved-audio-capture/
Hi, Really like this idea and I haven't found much like this. I have too had some problems. I found that if the computer is not playing any audio apon opening it will not transmit audio.
If you have a problem try opening media and playing and then open the application.
I am not sure how to suggest items as I have only just created an account on github but I have been using it for years. It would be really cool if you could transmit audio and not have to hear it from two systems. currently I use the program in order to transmit audio from my computer to another room. however I have it playing on my headphones which isn't great and not really needed. Potentially using a separate audio device. Not sure if that is feasible.
Help! Want this program to work really bad! Install goes fine and chromecasts display in system tray, but after selecting a chromecast to stream to- I hear the "ding" sound of the chromecast connected, but audio does not switch to chromecast, but continue to play from computer speakers! This is on a surface pro 4 running windows 10. Any help is greatly appreciated!
Would be great to be able to launch with one or more Chromecast (or group) in the command line to automatically start streaming..
Hi there,
Would great having group audio option. I have 3 ChromeCast Audio grouped, but the app won't read it as group, just as individual speakers.
Nice job otherwise.
Diego
Set preload=none on audio tag of custom Chromecast player.
#2 Needs to happen for this to occur.
Hey I just used your program on a Win10 64 bit PC and sadly the Add-on for Google Chrome doesnt work on this PC. When I got to the Add-on control then my Chomecast audio is displays but I cant use it. On my Surface with the same operation system it all works just fine.
Is it possible that your program somehow interfere the Chrome Add-On?
With the "audio-cast-1.0.0-win32-ia32" name for the file, I came to the conclusion from the win32 portion that this would work on Windows XP. When I tried to run it I received a dialog box stating that the file was not a windows application. So, perhaps a listing of which windows operating systems this will work on would be helpful. From what I have read here in the issue section it appears that probably one would need at least Windows 7 to use this. Thanks again.
Help! I recently did a fresh install of Win7 64 and now audio-cast stopped working. I love this program and can't live without it! The program seems to start up properly. I right click on the system tray icon and I can select my chromecast audio device but have not been able to get any sound out of it. I did notice that the ffmpeg.exe no longer shows up in the volume mixer. I'm assuming that's the problem? The chromecast windows app finds my device and I get the startup sound out (I can stream music from chrome as well) but nothing streams from my pc.
I'd appreciate any help! Thanks.
When I launch the app it creates the icon in the taskbar, but nothing happens when I right click the Icon or left click.
Any log I can post for you to see the issue?
If I play a song with Windows Media Player or other software, the audio was duplicated, I can hear two sounds, one for my stereo system (connected at the Chromecast Audio) and one for laptop speaker. I solved silencing my periferic audio, but it is (obiviously) uncomfortable...
Chromecast Audio Stream installed on Windows 10 64-bit
Would be very useful to introduce a simply GUI to introduce a volume mixer such as Windows 10 (7,8 etc..) to have separated audio sources. For example if I listen (from my stereo system + chromecast audio) a song from youtube on firefox, I don't want listen an other sound, for example a video on VLC player on my chromecast but I want to lissen this video only with my pc speakers.
Sorry for my english.
Hi, it's very nice app, but I have a problem on my laptop running on win10 64bit.
After laptop start, I can start the app, with right-clicking I choose my Chromecast. But when I try to disable streaming by unchecking Chromecast with right click, the stream continues. Chromecast plays its notification sound (when I enable it), but that is all. The only thing I can do is to select Close in right-click menu. But after doing that, when I start the Audio cast app again, nothing happens when I perform right-click on its icon and there is no way to start streaming again. I can only restart my laptop.
Has someone the similar issue?
With the current icons being black, then are near invisible on the W10 taskbar. Moving them to white would help with visibility.
I can't get it to work on that platform. The Chromecast Audio is correctly configured, as it works from Chrome. But then when I select the device from the application icon and the right button, it is marked as selected but the icon does not change and there is no sound from the Chromecast Audio but from the standard PC speakers. Of course, I have rebooted all several times and there is no change.
Downloaded the program and it just gives me an icon in the tray that you cannot right click, if you do nothing happens.
I'm experiencing 1-2 sec lag/delay using this. The chrome extension has a small lag also, but tiny compared to this. Anyone else?
I'm probably doing something wrong, although I did try with the regular chromecast and had nothing, so I bought an audio and still nothing.
Am I meant to change my audio output settings? if so, what to, as what I've tried from the menu so far isn't working. I haven't rebooted yet, which might do the trick, but I'm in the middle of something so I can't.
I know a few windows 10 people had problems but that seemed to be solved. Any ideas?
tenks!
I'm not sure if i'm suppose to do anything else besides select the streaming device, but no sound comes out the chromecast using this program.
There is so much of delay in audio playback w.r.t. video playback. How to cope up with this issue? Please help!!
[dshow @ 02924400] Unable to BindToObject for virtual-audio-capturer
[dshow @ 02924400] Could not find audio only device with name [virtual-audio-capturer] among source devices of type audio.
[dshow @ 02924400] Searching for audio device within video devices for virtual-audio-capturer
[dshow @ 02924400] Could not find audio only device with name [virtual-audio-capturer] among source devices of type video.
audio=virtual-audio-capturer: Input/output error
I tried on 2 laptops with Windows 10. One is Pro and the other Home. Both are 64bits. After clicking on audio-cast.exe an icon appears in the tray but nothing happens after clicking on it either left or right.
At the moment this tool is just able to play files with PCM with maxium of 48 kHZ, at least that's what my amp says one the display. Would it be possible to stream in higher resolution for more audiophil needs?
Hello, it seems the popup that opens when I left-click on the icon prefers the top/left of my screen.
Weirdly, when I right-click, it's in the correct place...
It also displays an empty line that can be selected, then throws a JS error.
Thank you for the great work, we all wish for this app to be the best!
Program stays open and says it is still connected to chromecast but signal is lost. Have close and reopen program and select chromecast again. Thanks!!!
java script error.pdf
Hi,
I would like to know if it's possible to add some text (description?) on the tray icon.
Context:
My dad is blind, so it must a screen reader software,named JAWS or NVDA, to use a computer. When he try to list all applications on tray icon area, he is not able to see your app (see attached file).
Glad to have found audio-cast.exe. Run it and hear your audio. Simple and straighforward.
My question is to know if audio-cast.exe could 1) view the current setting for "High dynamic range", and 2) enable/disable it.
Right now audio-cast.exe is the only software I have found which sends audio files to the Chromecast Audio (CCA) device, and to the Windows default audio playback device (PC speakers), at the same time. Great for debugging audio quality.
I was searching for this because my music files are stored on the PC's hard drive, and I usually play that local music with Foobar2000 or MusicBee.
The primary failure I am getting is that the Google "Chromecast App" often fails to maintain the checkmark for "Enable High Dynamic Range" (for HiFi systems). It seems rebooting the CCA causes the checkmark to be lost every time. I have no proof so far that it even works.
Hence my request for audio-cast.exe to come to the rescue and overcome that weakness with an option (command line or GUI).
I have a fully digital audio setup since I am using the CCA's optical digital output. My preference is to play lossless FLAC format. That's the main reason why I am not interested in the cloud-based "Google Play Music" where they (not us) control the quality level they feel is right for feeding audio. Thinking of how bad Sirius/XM satellite radio has become with sub-par bitrates.
For those who aren't aware:
Otherwise, I am guessing that the CCA should be playing at 44.1 kHz/16-bit ("CD quality") per channel (i.e. about 1.4 Mbps for stereo) so I investigated the Wifi stream with an Asus RT-AC68U router and saw the traffic monitor showing around 20 kbytes/sec i.e 160 kbps which cannot be lossless audio. This is on page Adaptive QOS - Traffic Monitor - Wireless (2.4 GHz)
I sure would like audio-cast.exe to tell us what the CCA is actually doing.
My setup is Windows 10, 64-bit on up to date hardware and I should note that audio-cast.exe 32-bit has crashed a few times and the icon in the taskbar is dim (instead of the expected brightness).
I am surprised that there is no 64-bit version, perhaps it would help solve that? Only found a 32-bit version on the Download page: https://github.com/acidhax/chromecast-audio-stream/releases/download/0.2.5/audio-cast-1.0.0-win32-ia32.zip
A big thanks for coming up with this program.
Jean
Montreal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.