$ mkchromecast
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
Selected backend: parec
Selected audio codec: mp3
Default bitrate used: 192k
Default sample rate used: 44100Hz.
PID of main process: 62706
PID of streaming process: 62709
* Serving Flask app 'mkchromecast.audio' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://192.168.100.190:5000/ (Press CTRL+C to quit)
List of Devices Available in Network:
-------------------------------------
Index Types Friendly Name
===== ===== =============
0 Gcast hear go 2
Casting to first device shown above!
Select devices by using the -s flag.
hear go 2
Information about hear go 2
DeviceStatus(friendly_name='hear go 2', model_name='SRS-HG10', manufacturer='Sony Corporation', uuid=UUID('d79fb693-2e47-3ceb-409c-005999ca72ab'), cast_type='audio', multizone_supported=True)
Status of device hear go 2
CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.7200000286102295, volume_muted=False, app_id=None, display_name=None, namespaces=[], session_id=None, transport_id=None, status_text='', icon_url=None, volume_control_type='master')
The IP of hear go 2 is: 192.168.***.***
Your local IP is: 192.168.***.***
The media type string used is: audio/mpeg
Cast media controller status
CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.7200000286102295, volume_muted=False, app_id=None, display_name=None, namespaces=[], session_id=None, transport_id=None, status_text='', icon_url=None, volume_control_type='master')
Remember to open pavucontrol and select the mkchromecast sink.
Ctrl-C to kill the Application at any Time
192.168.***.*** - - [06/Aug/2023 13:12:55] "GET /stream HTTP/1.1" 200 -
$ mkchromecast
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
Selected backend: parec
Selected audio codec: mp3
Default bitrate used: 192k
Default sample rate used: 44100Hz.
PID of main process: 62706
PID of streaming process: 62709
* Serving Flask app 'mkchromecast.audio' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://192.168.100.190:5000/ (Press CTRL+C to quit)
List of Devices Available in Network:
-------------------------------------
Index Types Friendly Name
===== ===== =============
0 Gcast hear go 2
Casting to first device shown above!
Select devices by using the -s flag.
hear go 2
Information about hear go 2
DeviceStatus(friendly_name='hear go 2', model_name='SRS-HG10', manufacturer='Sony Corporation', uuid=UUID('d79fb693-2e47-3ceb-409c-005999ca72ab'), cast_type='audio', multizone_supported=True)
Status of device hear go 2
CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.7200000286102295, volume_muted=False, app_id=None, display_name=None, namespaces=[], session_id=None, transport_id=None, status_text='', icon_url=None, volume_control_type='master')
The IP of hear go 2 is: 192.168.***.***
Your local IP is: 192.168.***.***
The media type string used is: audio/mpeg
Cast media controller status
CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.7200000286102295, volume_muted=False, app_id=None, display_name=None, namespaces=[], session_id=None, transport_id=None, status_text='', icon_url=None, volume_control_type='master')
Remember to open pavucontrol and select the mkchromecast sink.
Ctrl-C to kill the Application at any Time
192.168.***.*** - - [06/Aug/2023 13:12:55] "GET /stream HTTP/1.1" 200 -
表示されるメッセージを読むと,私の環境だと
Sony SRS-HG10 (hear go 2) が利用可能デバイスとして見つかったこと
見つかった最初のデバイスがデフォルトの出力先として使われること
デバイスが複数ある場合は -s オプションで指定できること
であることがわかります.
なお,最初の方に,
WARNING: This is a development server. Do not use it in a production deployment.
のような警告が出ていますが,これは mkchromecast が Python 標準の簡易的な Web Server を利用していることから出ているメッセージなので,機にする必要はありません.