aykevl / plaincast Goto Github PK
View Code? Open in Web Editor NEWServer that acts like a lightweight/headless Chromecast that only includes YouTube (for the time being)
License: BSD 2-Clause "Simplified" License
Server that acts like a lightweight/headless Chromecast that only includes YouTube (for the time being)
License: BSD 2-Clause "Simplified" License
Hi, I got plaincast
to work on a headless raspberry pi, after launching and casting audio to it I get:
./bin/plaincast
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
could you point me to where I may change the output of plaincast
to pipe it to a different process. My goal is to take the audio e.g. in a know format e.g. 44k 24 bit (or 16 bit) 2 ch and pipe it into ecasound
https://ecasound.seul.org/ecasound/
Any pointer you could bring would be great.
Have you had experience with Google Play Music as to whether or not it uses DIAL or needs castv2?
How can I disable libmpv and send the links somewhere else?
I want to integrate it in MagicMirror2 via a html5 audio player.
I'm getting this error trying to run plaincast on ubuntu 18.10, libmpv 0.29.0:
panic: mpv API error: option not found (-5)
goroutine 35 [running]:
github.com/aykevl/plaincast/apps/youtube/mp.(*MPV).checkError(0xc4201285c0, 0x7f22fffffffb)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/mp/mpv.go:343 +0x167
github.com/aykevl/plaincast/apps/youtube/mp.(*MPV).setOption(0xc4201285c0, 0x7d2d10, 0x12, 0xc400000003, 0xc420246048)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/mp/mpv.go:151 +0xa2
github.com/aykevl/plaincast/apps/youtube/mp.(*MPV).setOptionFlag(0xc4201285c0, 0x7d2d10, 0x12, 0x7e7d01)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/mp/mpv.go:129 +0x70
github.com/aykevl/plaincast/apps/youtube/mp.(*MPV).initialize(0xc4201285c0, 0xc4201285c0, 0xc420094600)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/mp/mpv.go:63 +0x10a
github.com/aykevl/plaincast/apps/youtube/mp.New(0xc4200944e0, 0x7e7d68)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/mp/player.go:26 +0xfa
github.com/aykevl/plaincast/apps/youtube.(*YouTube).init(0xc4200ee2c0, 0xc4201ac060, 0xc4200944e0)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/youtube.go:175 +0x1b8
github.com/aykevl/plaincast/apps/youtube.(*YouTube).run(0xc4200ee2c0, 0xc4201ac060)
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/youtube.go:212 +0x159
created by github.com/aykevl/plaincast/apps/youtube.(*YouTube).start
/home/logix/.go/src/github.com/aykevl/plaincast/apps/youtube/youtube.go:199 +0xcf
Traceback (most recent call last):
File "<string>", line 4, in <module>
ImportError: No module named youtube_dl
Perhaps this is a too new libmpv version? What version would I need to get this to work?
~ $ mkdir golang
~ $ cd golang
~/golang $ export GOPATH="`pwd`"
~/golang $ go get -u github.com/aykevl/plaincast
# golang.org/x/sys/unix
src/golang.org/x/sys/unix/asm_linux_arm.s:8 5a: No such file or directory: textflag.h
Any suggestions?
Thank you for creating this application, worked perfectly on my C.H.I.P. setup. One feature that I wish it had is the YouTube auto-play feature where the next suggested video/audio plays automatically.
I see the auto-play feature is enabled on my YouTube app but it disappears when I'm casting to plaincast. Is this supposed to work already? What am I missing?
@aykevl Maybe we could implement a library like this: https://github.com/hashicorp/mdns in plaincast.
If you go to other projects who search for Chromecasts on the like network using mDNS we can get a pretty good insight on the way it works; https://github.com/johnf/chromecast-discover-node/blob/master/src/index.js#L28
Maybe we could work on this on a separate branch.
Please let me know your thoughts about this!
Using youtube-dl 2017.01.24, mpv 0.23.0 and Go 1.7.4 linux/amd64.
YouTube Android app detects server correctly, but on linking I get the following:
File "<string>", line 24
except DownloadError, why:
^
SyntaxError: invalid syntax
Despite that, Android works as if everything was okay and plaincast soldiers on. When attempting to play video, I get 03:25:14.576 [player] could not grab video:EOF
.
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.