{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/chromecast/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/chromecast/", "feed_url": "https://matoken.org/blog/tag/chromecast/feed/json/", "language": "ja", "title": "Chromecast – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=1399", "url": "https://matoken.org/blog/2016/09/16/try-the-cast-can-castnow-from-the-command-line-to-googlecast/", "title": "\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089Googlecast\u306bcast\u51fa\u6765\u308bcastnow\u3092\u8a66\u3059", "content_html": "

\u898b\u3064\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f

\n\n

Debian stretch amd64, Ubuntu 16.04 LTS amd64\u3067\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\uff0e

\n

$HOME\u4ee5\u4e0b\u306bPATH\u901a\u3057\u3066npm\u3067\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\uff0e/usr/local\u4ee5\u4e0b\u3067\u826f\u3051\u308c\u3070npm install castnow -g\u3060\u3051\u3067\u3044\u3044\u304b\u3082\uff0e

\n
$ sudo apt install npm nodejs-legacy
$ echo 'PATH="$PATH":$HOME/node_modules/.bin' >> ~/.bashrc
$ source ~/.bashrc
$ npm install castnow
\n

\u5165\u308a\u307e\u3057\u305f\u304cChromecast\u304c\u307f\u3042\u305f\u3089\u306a\u3044?

\n
$ castnow --help
 
Usage: castnow [<media>, <media>, ...] [OPTIONS]
 
Option                  Meaning
--tomp4                 Convert file to mp4 during playback
--device <name>         The name of the Chromecast device that should be used
--address <ip>          The IP address or hostname of your Chromecast device
--subtitles <path/url>  Path or URL to an SRT or VTT file
--subtitle-scale <scale> Subtitle font scale
--subtitle-color <color> Subtitle font RGBA color
--myip <ip>             Your local IP address
--quiet                 No output
--peerflix-* <value>    Pass options to peerflix
--ffmpeg-* <value>      Pass options to ffmpeg
--type <type>           Explicitly set the mime-type (e.g. "video/mp4")
--bypass-srt-encoding   Disable automatic UTF-8 encoding of SRT subtitles
--seek <hh:mm:ss>       Seek to the specified time on start using the format hh:mm:ss or mm:ss
--loop                  Loop over playlist, or file, forever
--help                  This help screen
 
Player controls
 
Key                     Action
space                   Toggle between play and pause
m                       Toggle mute
up                      Volume Up
down                    Volume Down
left                    Seek backward
right                   Seek forward
n                       Next in playlist
s                       Stop playback
quit                    Quit
 
$ castnow
Error: device not found
\n

\u540d\u524d\u89e3\u6c7a\u304c\u51fa\u6765\u306a\u304b\u3063\u305f\u3088\u3046\u3067ip\u3092\u6307\u5b9a\u3059\u308b\u3068cast\u51fa\u6765\u307e\u3057\u305f\uff0e\u5225\u306e\u30de\u30b7\u30f3\u3067\u306f\u901a\u3063\u305f\u306e\u3067\u3053\u306e\u30de\u30b7\u30f3\u304c\u304a\u304b\u3057\u3044\u3088\u3046\u3067\u3059\uff0e

\n
$ avahi-browse -a -t -l -r
+ wlp3s0 IPv6 x201s                                         Remote Disk Management local
+ wlp3s0 IPv4 Chromecast-KagoLUG                            _googlecast._tcp     local
= wlp3s0 IPv6 x201s                                         Remote Disk Management local
   hostname = [x201s.local]
   address = [fe80::222:faff:fe33:456a]
   port = [22]
   txt = []
= wlp3s0 IPv4 Chromecast-KagoLUG                            _googlecast._tcp     local
   hostname = [Chromecast-KagoLUG.local]
   address = [192.168.2.206]
   port = [8009]
   txt = ["rs=" "bs=FA8FCA59198D" "st=1" "ca=4101" "fn=Chromecast-KagoLUG" "ic=/setup/icon.png" "md=Chromecast" "ve=05" "rm=A652B47431F36207" "id=7c14aaaa62a6002dd95ba94814e5c5e0"]
$ castnow --address 192.168.2.206 http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4
 
  State     : Playing....
\n

\u30d1\u30a4\u30d7\u3082\u4f7f\u3048\u308b\u306e\u3067\u8272\u3005\u5fdc\u7528\u3067\u304d\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff0e
\n\uff08\u6700\u8fd1Chromium\u304camd64/i386\u3057\u304b\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u304c\uff0c\u3053\u308c\u3092\u4f7f\u3048\u3070\u4ed6\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u3082\u30b9\u30af\u30ea\u30fc\u30f3\u30ad\u30e3\u30b9\u30c8\u3082\u3067\u304d\u305d\u3046?\uff09

\n\n

\n", "content_text": "\u898b\u3064\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\n\nGitHub – xat/castnow: commandline chromecast player\n\nDebian stretch amd64, Ubuntu 16.04 LTS amd64\u3067\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\uff0e\n$HOME\u4ee5\u4e0b\u306bPATH\u901a\u3057\u3066npm\u3067\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\uff0e/usr/local\u4ee5\u4e0b\u3067\u826f\u3051\u308c\u3070npm install castnow -g\u3060\u3051\u3067\u3044\u3044\u304b\u3082\uff0e\n$ sudo apt install npm nodejs-legacy$ echo 'PATH="$PATH":$HOME/node_modules/.bin' >> ~/.bashrc$ source ~/.bashrc$ npm install castnow\n\u5165\u308a\u307e\u3057\u305f\u304cChromecast\u304c\u307f\u3042\u305f\u3089\u306a\u3044?\n$ castnow --help Usage: castnow [<media>, <media>, ...] [OPTIONS] Option                  Meaning--tomp4                 Convert file to mp4 during playback--device <name>         The name of the Chromecast device that should be used--address <ip>          The IP address or hostname of your Chromecast device--subtitles <path/url>  Path or URL to an SRT or VTT file--subtitle-scale <scale> Subtitle font scale--subtitle-color <color> Subtitle font RGBA color--myip <ip>             Your local IP address--quiet                 No output--peerflix-* <value>    Pass options to peerflix--ffmpeg-* <value>      Pass options to ffmpeg--type <type>           Explicitly set the mime-type (e.g. "video/mp4")--bypass-srt-encoding   Disable automatic UTF-8 encoding of SRT subtitles--seek <hh:mm:ss>       Seek to the specified time on start using the format hh:mm:ss or mm:ss--loop                  Loop over playlist, or file, forever--help                  This help screen Player controls Key                     Actionspace                   Toggle between play and pausem                       Toggle muteup                      Volume Updown                    Volume Downleft                    Seek backwardright                   Seek forwardn                       Next in playlists                       Stop playbackquit                    Quit $ castnowError: device not found\n\u540d\u524d\u89e3\u6c7a\u304c\u51fa\u6765\u306a\u304b\u3063\u305f\u3088\u3046\u3067ip\u3092\u6307\u5b9a\u3059\u308b\u3068cast\u51fa\u6765\u307e\u3057\u305f\uff0e\u5225\u306e\u30de\u30b7\u30f3\u3067\u306f\u901a\u3063\u305f\u306e\u3067\u3053\u306e\u30de\u30b7\u30f3\u304c\u304a\u304b\u3057\u3044\u3088\u3046\u3067\u3059\uff0e\n$ avahi-browse -a -t -l -r+ wlp3s0 IPv6 x201s                                         Remote Disk Management local+ wlp3s0 IPv4 Chromecast-KagoLUG                            _googlecast._tcp     local= wlp3s0 IPv6 x201s                                         Remote Disk Management local   hostname = [x201s.local]   address = [fe80::222:faff:fe33:456a]   port = [22]   txt = []= wlp3s0 IPv4 Chromecast-KagoLUG                            _googlecast._tcp     local   hostname = [Chromecast-KagoLUG.local]   address = [192.168.2.206]   port = [8009]   txt = ["rs=" "bs=FA8FCA59198D" "st=1" "ca=4101" "fn=Chromecast-KagoLUG" "ic=/setup/icon.png" "md=Chromecast" "ve=05" "rm=A652B47431F36207" "id=7c14aaaa62a6002dd95ba94814e5c5e0"]$ castnow --address 192.168.2.206 http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4   State     : Playing....\n\u30d1\u30a4\u30d7\u3082\u4f7f\u3048\u308b\u306e\u3067\u8272\u3005\u5fdc\u7528\u3067\u304d\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff0e\n\uff08\u6700\u8fd1Chromium\u304camd64/i386\u3057\u304b\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u304c\uff0c\u3053\u308c\u3092\u4f7f\u3048\u3070\u4ed6\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u3082\u30b9\u30af\u30ea\u30fc\u30f3\u30ad\u30e3\u30b9\u30c8\u3082\u3067\u304d\u305d\u3046?\uff09\n\nDebian — jessie \u306e chromium \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u95a2\u3059\u308b\u8a73\u7d30", "date_published": "2016-09-16T17:30:02+09:00", "date_modified": "2016-09-16T17:30:02+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "castnow", "Chromecast", "Debian", "Linux", "stretch", "testing", "Ubuntu", "xenial(16.04)" ], "attachments": [ { "url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4", "mime_type": "video/mp4", "size_in_bytes": 214965454 }, { "url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4", "mime_type": "video/mp4", "size_in_bytes": 214965454 } ] } ] }