xat / castnow

commandline chromecast player
MIT License
3.81k stars 243 forks source link

Error: connect ECONNREFUSED #38

Open xbeta opened 9 years ago

xbeta commented 9 years ago

Not sure what can it go wrong, but here it goes.

DEBUG=castnow* castnow --myip "192.168.1.51" --tomp4 --bypass-srt-encoding --subtitles "./mysub.chs.srt" "./myvideo.mkv"
  castnow launching... +0ms
  castnow:transcode started webserver on address 192.168.1.51 using port 4103 +6ms
  castnow player status: loading plugins +12ms
  castnow player status: scanning +1ms
  castnow player status: connecting +21ms
  castnow player status: launching +123ms
  castnow player status: loading +1s
  castnow:transcode incoming request for path ./myvideo.mkv +2s
  castnow:transcode spawning ffmpeg -i - -vcodec h264 -f mp4 -movflags frag_keyframe+faststart -strict experimental pipe:1 +7ms
  castnow:transcode got error: { [Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect' } +15ms

Using:

castnow@0.4.6 /usr/local/lib/node_modules/castnow
├── query-string@1.0.0
├── internal-ip@1.0.0
├── range-parser@1.0.2
├── array-loop@1.0.0
├── keypress@0.2.1
├── get-youtube-id@0.1.3
├── stream-transcoder@0.0.5
├── xtend@4.0.0
├── fs-extended@0.2.0
├── router@0.6.2
├── got@1.2.2 (object-assign@1.0.0)
├── mime@1.2.11
├── minimist@1.1.0
├── chalk@0.5.1 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
├── debug@2.1.0 (ms@0.6.2)
├── playerui@1.1.0 (single-line-log@0.4.1, pad@0.0.5)
├── chromecast-player@0.1.6 (time-line@1.0.1, mutate.js@0.2.0, promiscuous@0.6.0, ware@1.2.0, chromecast-scanner@0.0.1)
├── read-torrent@1.1.0 (magnet-uri@2.0.1, parse-torrent@1.0.0, request@2.16.6)
├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.4.5)
├── peerflix@0.19.3 (network-address@0.0.4, clivas@0.1.4, windows-no-runnable@0.0.6, rc@0.4.0, pump@0.3.5, optimist@0.6.1, numeral@1.5.3, torrent-stream@0.15.1, airplay-js@0.2.6)
├── srt2vtt@1.2.0 (utfx@1.0.0, codepage@1.3.6)
└── castv2-client@0.0.8 (debug@1.0.4, castv2@0.1.4)
xat commented 9 years ago

I'll see if I can reproduce this. What wonders me is that there are no debug messages from the subtitles module.

kairos commented 9 years ago

I am encountering this error as well.

Debug

 DEBUG=castnow* castnow video.avi--tomp4 --myip 192.168.0.103
  castnow launching... +0ms
  castnow:transcode started webserver on address 192.168.0.103 using port 4103 +5ms
  castnow player status: loading plugins +1ms
  castnow player status: scanning +0ms
  castnow player status: connecting +195ms
  castnow player status: launching +126ms
  castnow player status: loading +3s
  castnow:transcode incoming request for path video.avi +383ms
  castnow:transcode spawning ffmpeg -i - -vcodec h264 -f mp4 -movflags frag_keyframe+faststart -strict experimental pipe:1 +6ms
  castnow:transcode got error: { [Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect' } +14ms