xat / dlnacast Goto Github PK
View Code? Open in Web Editor NEWCast local media to your TV through UPnP/DLNA
License: MIT License
Cast local media to your TV through UPnP/DLNA
License: MIT License
Hello,
I'm trying to install dlnacast on latest Raspbian on my Raspberry PI 2 B but I'm unable to get the version 0.3 working. Version 0.2, which I can get from npm is working with Kodi, but not with my LG TV. So I tried to install 0.3 from this github, but now I'm getting following errors.
dlnacast --listRenderer will show me this:
[TV][LG]Bar: http://192.168.2.86:1489/
[TV][LG]Bar: http://192.168.2.86:1489/
http.js:1839
if (options.protocol && options.protocol !== 'http:') {
^
TypeError: Cannot read property 'protocol' of undefined
at Object.exports.request (http.js:1839:14)
at Object.exports.get (http.js:1847:21)
at fetch1 (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:12:18)
at getDeviceDescription (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:87:3)
at Socket. (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:141:11)
at Socket.emit (events.js:98:17)
at UDP.onMessage (dgram.js:440:8)
dlnacast --address 192.168.2.86 /path/to/file will show this:
Request failed
playing: test4.mp4
use your space-key to toggle between play and pause
events.js:72
throw er; // Unhandled 'error' event
^
Error: Request failed
at ClientRequest. (/usr/local/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:551:18)
at ClientRequest.g (events.js:180:16)
at ClientRequest.emit (events.js:95:17)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:527:27)
and playback is not working... Any change you can point me to the right direction what might be the problem?
Thank you in advance!
After installing, it does this when I try to run it.
silent@TERMINAL-BMRF-9 ~/Video $ dlnacast Yellowbeard.avi
events.js:141
throw er; // Unhandled 'error' event
^
Error: Service urn:upnp-org:serviceId:AVTransport not provided by device
at /usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:189:17
at /usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:48:5
at /usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:556:7
at ConcatStream. (/usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:72:20)
at ConcatStream.emit (events.js:166:7)
at finishMaybe (/usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:460:14)
at afterWrite (/usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:340:3)
at /usr/lib64/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:327:9
at nextTickCallbackWith0Args (node.js:420:9)
I installed as instructed, only added sudo so that it could write to system:
sudo npm install dlnacast -g
listRenderer doesn't seem to be implemented in the version I got from npm:
$ dlnacast --listRenderer
Usage: dlnacast [--type <mime>] [--address <tv-ip>] <file>
And playing a file always ends with this error:
$ dlnacast --listRenderer --address 123.45.67.89 "/some-path/some-file.mp3"
[Error: device not found]
please help. I want a CLI dlna control point, Upplay works but it's GUI based.
The command works fine with my samsung tv, but for my home automation system i want to start playing music on the SRS X88, i used the ip adress, but it doesnt work.
dlnacast --address 192.168.0.16 'Daft Punk - Get Funky.mp3'
[Error: device not found]
Maybe i should use a different port? Any idea?
Hi,
I have been doing some test with several files and I am able to stream a 200MB mkv file to my Panasonic Viera.
The only problem I found was when trying to stream a 1GB. It seems the tv is reading the complete stream to know the file size before start playing, as the longer the file, the longer it takes to load it.
I guess the problem could be the http-headers served by the smfs, but I am not sure...
I found this link, explaining HTTP Streaming, we can use it to start testing..
https://gist.github.com/CMCDragonkai/6bfade6431e9ffb7fe88
Do you have any idea of what is going wrong, am I completely wrong?.
Cheers.
--listRenderer
isn't listed on the usage instructions when I run dlnacast
on its own. I'm trying to cast to my TV, but I'm not even sure dlnacast can detect it, which I can't do without --listRenderer
When I use this command:
dlnacast --listRenderer
It list (twice) my tv in the same network:
[LG] webOS TV: undefined
[LG] webOS TV: undefined
|
And hangs in there for a long time until I kill it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.