lanceseidman / PiCAST

PiCAST turns your $35 Raspberry Pi in to a Chromecast like Device.
https://munchron.com
1.77k stars 263 forks source link

Support playback from streaming video #20

Open zerotri opened 10 years ago

zerotri commented 10 years ago

Haven't tested this out yet but it seems like you are using downloading the full video/audio before starting playback through mplayer. If this is indeed the case it would cause quite a delay before the audio/video plays, correct?

You should be able to parse a youtube page and extract the exact video url and use that to stream directly to mplayer, which would allow a much shorter delay before starting playback. An example of this can be seen here:

https://github.com/rg3/youtube-dl/issues/41

lanceseidman commented 10 years ago

That is right, the current mode is to download as people just didn't understand you can stream on the Pi like a real computer without it being slow.

So by default, it downloads. However the option to stream is available but in the old version as streaming really is a joke. Not ideal in the least BUT the option is available if they're nutty enough.

lanceseidman commented 10 years ago

Sorry, can't stream on the Pi like a real computer using a real OS & not something like XBMC.

ekianjo commented 9 years ago

Has the situation changed now that the Pi2 is out? would streaming be possible ?

lanceseidman commented 9 years ago

Yes and no; it does have more power then before and could stream a bit better but still relying on Flash plugin isn't so good when it comes to YouTube videos BUT if you plug other files in, you can use MPLAYER or VLC to do streams and add it to your PiCAST 2 Commands in the aliases.

You'll see with Pi2 it has the ability to help you make your own commands/plugins a bit easier. You could try running PiCAST first edition aka web edition as that did streaming.