GithubHelp home page GithubHelp logo

aykevl / plaincast Goto Github PK

View Code? Open in Web Editor NEW
121.0 121.0 20.0 174 KB

Server that acts like a lightweight/headless Chromecast that only includes YouTube (for the time being)

License: BSD 2-Clause "Simplified" License

Go 98.97% Makefile 1.03%

plaincast's People

Contributors

aykevl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plaincast's Issues

How to stream / pipe audio to a process

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.

Google Play Music

Have you had experience with Google Play Music as to whether or not it uses DIAL or needs castv2?

libmpv

How can I disable libmpv and send the links somewhere else?
I want to integrate it in MagicMirror2 via a html5 audio player.

panic: mpv API error: option not found (-5)

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?

cannot install following instruction

~ $ 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?

[Feature] YouTube auto-play

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?

Error on linking and attempting to play video

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.