GithubHelp home page GithubHelp logo

chromecast-audio-stream's Introduction

Chromecast Audio Stream

Capture your system audio and stream everything directly to your Chromecast.

Screenshot

Stream your PC's audio to the Chromecast


OSX Users!

Use this for OSX support: https://github.com/andresgottlieb/soundcast


Supported Alternatives

https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer

http://github.com/elibroftw/music-caster/

Installation instructions

Download release file: https://github.com/acidhax/chromecast-audio-stream/releases/download/0.3/audio-cast-win32-ia32.zip

Extract and execute audio-cast.exe.

Right click tray icon and select your cast device.

Enjoy!


Bug fixes / Troubleshooting:

App doesnt launch or gives error

App opens and connects to chromecast device (You'll hear a short chime), but doesn't stream audio

  1. Open an command prompt session as administrator and navigate to <Your Audio-Cast root directory>\resources\bin\driver
  2. If you have a 64-bit machine, download audio_sniffer-x64.dll and put it in the directory from step 1.
  3. Execute the following commands, one by one, in the command prompt:
    regsvr32.exe -u audio_sniffer.dll
    regsvr32.exe audio_sniffer.dll
    regsvr32.exe -u audio_sniffer-x64.dll
    regsvr32.exe audio_sniffer-x64.dll
    
  4. IMPORTANT: If you have any applications/processes running that access/control the audio device, such as Realtek Audio Manager or Nahimic, they need to be closed and their respective processes killed. Easiest way to do this is to disable startup of both programs and reboot.
  5. Profit!

Dev's

  • npm install -g grunt-cli (in command-line as administrator)
  • npm install
  • grunt

chromecast-audio-stream's People

Contributors

alexstojda avatar altyfox avatar amantinetti avatar bjm904 avatar luigiplr avatar matbee-eth avatar samdel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromecast-audio-stream's Issues

Not Working At All and JavaScript Error

capture

I have been able to get the software to work at all. I keep getting this error when selecting the device. Also, can see what device I selecting, the pop-up window is in the top left corner of the screen, with the third right side showing only.
untitled

Please Help!

Doesn't work on Windows 10

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.

Audio delay problem

There is so much of delay in audio playback w.r.t. video playback. How to cope up with this issue? Please help!!

Unable to BindToObject

[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

No Tray icon - not usable on Win10/64 bit....

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

Disable audio software when play on Chromecast Audio

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

Audio quiet in ChromecastAudio Windows 10

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.

Virus detected

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?

Enabling/disabling and displaying high resolution audio

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:

  • Inside the 3.5mm jack lies an optical transmitter/receiver that allows Toslink to be connected via any 3.5mm - Toslink adapter. Then you plug an optical cable from the CCA to your HiFi receiver. A red light comes out of the cable.
  • The official specs for the CCA state that it is capable of High-Resolution Audio: 96KHz/24-bit (i.e. about 4.4 Mbps for stereo).

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

Does not work on Windows 7 Pro 64 bit

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.

Any way to stop it timing out?

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.

Chromecast Add-On for Chrome conflict?

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?

Volume mixer needed

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.

audddui

Suggestion

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.

Accessibility issue: Adding text description on tray icon

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).
tray icon area

Group Audio

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

Chromecasting To TV audio Not Working

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.

No Sound Using Windows 7 Pro 64

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

Popup is weirdly placed

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...
popup

It also displays an empty line that can be selected, then throws a JS error.
error

Thank you for the great work, we all wish for this app to be the best!

No license for the code

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.

Can't disable and re-enable streaming

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?

Windows version clarification

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.

ffmpeg exiting

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.

No audio

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!

Streaming in higher resolution with 24bit and 96kHz

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?

Group Cast support?

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!

ffmpeg not loading in volume mixer

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.

Connects but no audio - windows 10

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!

App frozen in taskbar

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?

java script error

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

wrong url announced

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

Command line option?

Would be great to be able to launch with one or more Chromecast (or group) in the command line to automatically start streaming..

Casting does not stop when deselecting Chromecast device

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

Problems solved by registry hack (Windows 10)

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.

Cant' reach menu

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.

Javascript Errors

Please see below. This pops up randomly, usually back to back a few times, sometimes infinitely and I have to force quit the app. Thanks!

chromecast error

Lag/Delay problem

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?

Enhancement: add command-line play

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.