@@ -36,7 +36,7 @@ In order to use **mkchromecast** you need the following software to stream with
36
36
* [ Soundflower] ( https://github.com/mattingalls/Soundflower/ ) .
37
37
* PyQt5 (optional if you want to use the system tray menu).
38
38
39
- If you want more control, you may want to use ` ffmpeg ` as backend. In that case
39
+ For more control, you may want to use ` ffmpeg ` as backend. In that case
40
40
you need the following:
41
41
42
42
* flask (optional).
@@ -62,7 +62,7 @@ this repository:
62
62
pip install -r requirements.txt
63
63
```
64
64
65
- ** Note** : if this step fails, maybe you will need to run the installation with
65
+ ** Note** : if this step fails, maybe you need to run the installation with
66
66
` sudo ` as shown below. However, before installing using this method verify why
67
67
a regular user cannot install the requirements.
68
68
@@ -75,7 +75,7 @@ sudo pip install -r requirements.txt
75
75
For Soundflower you can check
76
76
[ https://github.com/mattingalls/Soundflower/ ] ( https://github.com/mattingalls/Soundflower/ )
77
77
or if you have [ Homebrew] ( http://brew.sh/ ) you can use [ brew
78
- cask] ( https://caskroom.github.io/ ) to install it as follows:
78
+ cask] ( https://caskroom.github.io/ ) as follows:
79
79
80
80
```
81
81
brew cask install soundflower
@@ -85,15 +85,20 @@ Or just download the [latest dmg
85
85
file] ( https://github.com/mattingalls/Soundflower/releases ) .
86
86
87
87
By default, the sample rate in Soundflower is set to ` 44100Hz ` . If you desire
88
- to stream at higher sample rates follow the [ instructions in the wiki here] ( https://github.com/muammar/mkchromecast/wiki/Soundflower ) .
88
+ to stream at higher sample rates follow the [ instructions in the wiki] ( https://github.com/muammar/mkchromecast/wiki/Soundflower ) .
89
+
90
+ ** Note** : resampling to higher sample rates is not a good idea. It was indeed
91
+ an issue in the chromecast audio. See [ this thread] ( https://goo.gl/yNVODZ ) .
92
+ Therefore, if you want to go beyond ` 44100Hz ` you have to [ capture the sound at
93
+ a higher sample rate] ( https://github.com/muammar/mkchromecast/wiki/Soundflower ) .
89
94
90
95
#### ffmpeg
91
96
92
97
The easiest way of installing ` ffmpeg ` is using a package manager, * e.g.* : brew,
93
98
macports or fink.
94
99
95
- I will briefly describe the case of Homebrew here. First, you will need to
96
- install Homebrew:
100
+ I will briefly describe the case of Homebrew here. First, you will need
101
+ Homebrew:
97
102
98
103
```
99
104
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@@ -124,16 +129,25 @@ Example using wav:
124
129
python mkchromecast.py --encoder-backend ffmpeg -c wav
125
130
```
126
131
127
- There is also an option to change the ` bitrate ` . See example below :
132
+ There is also an option to change the ` bitrate ` :
128
133
129
134
```
130
135
python mkchromecast.py --encoder-backend ffmpeg -c ogg -b 128
131
136
```
132
137
138
+ and another one to change the sampling rate:
139
+
140
+ ```
141
+ python mkchromecast.py --encoder-backend ffmpeg -c ogg -b 128 --sample-rate 48000
142
+ ```
143
+ check [ https://github.com/muammar/mkchromecast#soundflower ] ( https://github.com/muammar/mkchromecast#soundflower ) .
144
+
133
145
#### PyQt5
134
146
135
- These Python bindings are needed if you intend to use the system tray menu. As
136
- previously said, I also suggest you to install it using Homebrew:
147
+ These Python bindings are needed if you intend to use the system tray menu.
148
+ I also suggest you to install it using a package manager.
149
+
150
+ Example with Homebrew:
137
151
138
152
```
139
153
brew install pyqt5 --with-python
@@ -179,10 +193,10 @@ modify the codec:
179
193
python mkchromecast.py --encoder-backend ffmpeg -c aac
180
194
```
181
195
182
- You can change the bitrate:
196
+ change the bitrate and sample rate :
183
197
184
198
```
185
- python mkchromecast.py --encoder-backend ffmpeg -c mp3 -b 128
199
+ python mkchromecast.py --encoder-backend ffmpeg -c mp3 -b 128 --sample-rate 31000
186
200
```
187
201
188
202
#### Playing Youtube URLs in Google Cast TV
@@ -193,12 +207,13 @@ You can play Youtube URLs headlessly from the command line:
193
207
python mkchromecast.py -y https://www.youtube.com/watch\?v\=NVvAJhZVBT
194
208
```
195
209
196
- ** Note** : you may need to enclose the URL between quotation marks.
210
+ ** Note** : you may need to enclose the URL between quotation marks. This does
211
+ not work in Google Cast audio.
197
212
198
213
#### Controlling the Google Cast volume
199
214
200
- You can control the volume of your Google Cast by launching ** mkchromecast **
201
- with the option ` --volume ` :
215
+ You can control the volume of your Google Cast device by launching
216
+ ** mkchromecast ** with the option ` --volume ` :
202
217
203
218
```
204
219
python mkchromecast.py --encoder-backend ffmpeg -c ogg -b 320 --volume
0 commit comments