Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Sep 2018, 13:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to cast YouTube or Netflix to a smart TV or Chromecast
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 2765
Location: South Australia :-(

PostPosted: Wed 03 Feb 2016, 22:37    Post subject:  

Gcmartin, es worked great along with a samba network. The problem is chromecast. It only allows a couple of video formats.
Ideally what I would like is a chromecast plugin for VLC so I can cast anything that VLC can play but I don't think that will be possible unless chromecast is modified to accept more codecs.

I will check out your links.

Ta

_________________
Software <-> Distros <-> Tips <-> Newsletters

Last edited by smokey01 on Thu 04 Feb 2016, 06:58; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 1096
Location: UK

PostPosted: Thu 04 Feb 2016, 04:18    Post subject:  

Hi smokey01,

The formats supported by a Chromecast dongle & it's required Google Cast
extension can be found here:

https://developers.google.com/cast/docs/media#top_of_page

It is rather limited but the good news is that vlc 3.0 is scheduled to include Chromecast support & will probably convert on the fly.
In the meantime its a matter of converting the video to a supported format.

smokey01 previously wrote:
Quote:
I had some success but not as much as I would like.

What seem to be consistent with all video files, the permissions must not be executable.

1. By installing Google Cast extension to Google-Chrome allowed me to play .mp4 files but that was about it.

2. Videostream looked good but wouldn't allow me to select a file. It kept saying my firewall rules needed to be modified but still didn't work when making the changes as suggested.

3. I found a command line utility called castnow that worked with .mp4 and .m4v only. Node needs to be installed then castnow has to be installed using node. I made a SFS file of Node to do this.
https://nodejs.org/en/

4. I would really like to get VLC working with Chromecast. Many articles I read on the internet said it could be done by casting the full screen but it didn't work here.

BTW I'm trying to cast local videos from my HDD not from the web.

I have never had a problem with Videostream/permissions. You just need to turn off the Puppy firewall.

Last August I made a pet of the CLI castnow utility intending to integrate it with voice control at some
future time. I now have the voice control side of things sorted and just need to combine the two.

_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2765
Location: South Australia :-(

PostPosted: Thu 04 Feb 2016, 06:57    Post subject:  

ETP wrote:
Hi smokey01,

The formats supported by a Chromecast dongle & it's required Google Cast
extension can be found here:

https://developers.google.com/cast/docs/media#top_of_page
Yes I had seen that previously. Almost a waste of time as there is no AVI, WMV OGG.
ETP wrote:

It is rather limited but the good news is that vlc 3.0 is scheduled to include Chromecast support & will probably convert on the fly.
In the meantime its a matter of converting the video to a supported format.

Apparently but it's not working yet in their testing.
ETP wrote:

I have never had a problem with Videostream/permissions. You just need to turn off the Puppy firewall.

Never use a software firewall. I rely on the router firewall. It's all on the LAN anyway so why would a firewall come into play?
ETP wrote:

Last August I made a pet of the CLI castnow utility intending to integrate it with voice control at some
future time. I now have the voice control side of things sorted and just need to combine the two.

Sounds interesting. Bring on VLC 3.0

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2765
Location: South Australia :-(

PostPosted: Thu 04 Feb 2016, 21:13    Post subject:  

After lots of frustration trying to stream to chromecast from a local drive using Fatdog-701 & 702rc2 I decided to try something else.

For the next test I tried slacko-5.7 but there were a few missing dependencies for chrome so I tried tahrpup-6.0 instead. First I downloaded the latest google-chrome from the official site and installed it. Then I installed the google cast and Videostream extensions. I then clicked on the Apps icon and selected Videostream, selected a video file and made sure I was casting to the TV and away she went.

Having read only two or three video formats works I thought bugger that, lets try and few more. I was quite surprised to find that MP4, AVI, MKV, FLV, M4V, MOV, MPG, WMV, MPEG (bit jerky), and OGG all played.

Casting the entire screen worked as well except there was no sound.

Happy me.

_________________
Software <-> Distros <-> Tips <-> Newsletters

Last edited by smokey01 on Fri 05 Feb 2016, 01:10; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Thu 04 Feb 2016, 23:05    Post subject: A solution to stream media to the Chromecast TV setup
Subject description: Pup, Chrome browser, 2 extensions + local media files
 

Glad all is working. You now have a model which you know works. Others will benefit from your efforts in finding what works.

BTW: I'm sure you are aware that @ETP has a distro built which is TahrPUP based which has almost all you need OOTB. And, he has 2 others 32 and 64bit distros which does these as well, OOTB. As I remember, only one of them may be one which can boot from ISO/DVD. Others are dedicated USB stick implementations.

The idea of PUPPY doing all these great things in the home for our enjoyment, comfort and use continues to expand. Our phones, our tablets, our TVs, our camera, our kids, our visitors, etc.

I see VLC has its 15th Birthday, yesterday. I was hoping they would have announced or released a "Birthday" version to one, some or all of the platforms it runs on.

Question
    Are your media files on local peripherals or mounted from a SAMBA server to your Chrome streaming browser?
Thanks for the update.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2765
Location: South Australia :-(

PostPosted: Fri 05 Feb 2016, 01:22    Post subject:  

@jamesbond, I'm not sure what is causing Videostream to fail. It's works fine in Tahrpup-6.0 32bit version. When I try to load a video via Videostream it displays the error as attached. I tried running both commands without sudo but it made no difference.

The problem could be Fatdog, Google-chrome version-39.0.2171.95, the Google-cast plugin or the Videostream plugin. It would be nice to have this solved before the final release of 702. I thought a later version of Google-chrome might make a difference so I downloaded the latest, 48.0.2564.103, same error.

I really don't want to change operating systems either.

Thanks
Error.png
 Description   Videostream Error
 Filesize   27.82 KB
 Viewed   615 Time(s)

Error.png


_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Mon 29 Feb 2016, 08:19    Post subject:  

smokey,

I couldn't get googlecast to see my chromecast device until I ran:


Code:
iptables -I INPUT -p udp -m udp --dport 32768:61000 -j ACCEPT


Then I encountered the same problem with VideoStream. Instead I installed Video Player 2.0.7 extension, put a script to run it on the desktop, and it casts perfectly to chromecast.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Mon 29 Feb 2016, 23:43    Post subject:  

I knew I used the wrong phraseology when I said:

Quote:
put a script to run it on the desktop


All I did was use the app to create a desktop link. See attached images.
Vidplayer1.png
 Description   
 Filesize   11.69 KB
 Viewed   549 Time(s)

Vidplayer1.png

vidplayer2.png
 Description   
 Filesize   8.88 KB
 Viewed   555 Time(s)

vidplayer2.png

vidplayer3.png
 Description   
 Filesize   4.04 KB
 Viewed   567 Time(s)

vidplayer3.png

Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 939
Location: not Bulgaria

PostPosted: Tue 13 Mar 2018, 03:37    Post subject:  

smokey01 wrote:
I had some success but not as much as I would like.

What seem to be consistent with all video files, the permissions must not be executable.

1. By installing Google Cast extension to Google-Chrome allowed me to play .mp4 files but that was about it.

2. Videostream looked good but wouldn't allow me to select a file. It kept saying my firewall rules needed to be modified but still didn't work when making the changes as suggested.

3. I found a command line utility called castnow that worked with .mp4 and .m4v only. Node needs to be installed then castnow has to be installed using node. I made a SFS file of Node to do this.
https://nodejs.org/en/

4. I would really like to get VLC working with Chromecast. Many articles I read on the internet said it could be done by casting the full screen but it didn't work here.

BTW I'm trying to cast local videos from my HDD not from the web.


Referring back to this admittedly now old post, but seems to be nothing new on chromecast than this thread on Puppy forum. I just obtained a google chromecast dongle (had some flybuys...) and been playing with it. Aside from using Android, I'm been streaming local videos to it from my XenialDog64 system, which works very nicely with castnow (program referred to above by smokey01). I did want to also try mkchromecast app, but that is only available in newer ubuntu repositories (Artful and Bionic) so didn't bother.

EDIT: I actually noticed this thread after already trying out castnow via the instructions here:

https://www.addictivetips.com/ubuntu-linux-tips/stream-to-chromecast-on-linux-via-the-command-line/

I note that the newer Google Chrome I also have installed has cast facility built in without needing extension and that can cast the desktop or single desktop app or a single google chrome tab - these options work well enough, but castnow app uses far less CPU resources (8% CPU on my machine, whereas chrome casting is using around 60% CPUT) and hence my current solution of choice. I will probably set up my xhippo (mcewanw modded version) to act as a playlist manager calling castnow app directly - once I get round to that (which may be a long while...) I'll post results.

Anyway, chromecast dongle is very useful - saves hdmi cables and makes my dumb tv smart and easily remote controlled from Linux, or Android and with remote and local media file playing support using castnow (which is particularly useful since my Linux box doesn't itself have HDMI port so couldn't drive the TV directly).

wiak

NOTE: My only real worry with castnow is that its developer says he has lost interest in maintaining it... pity

Stream2Chromecast may be a good alternative (about to test it):

http://www.webupd8.org/2016/08/stream-videos-to-chromecast-from.html

EDIT2: Yes, now tried Stream2Chromecast and it seems to be even lower resource usage (a few percent CPU only), simple to install on XenialDog64 per above link instructions, and working very well in quick test. Should be very easy indeed to write a small script such that xhippo frontend can act as a simple gui playlist manager though, for more convenience still, would need some config file flag choice first set to indicate to either play media file (such as mp4) on local computer (via mplayer or mpv etc) or to be sent to chromecast as a stream.

Note that Stream2Chromecast uses python api cc_media_controller.CCMediaController, whereas

castnow uses Node.js which is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Last edited by wiak on Tue 13 Mar 2018, 05:57; edited 5 times in total
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Tue 13 Mar 2018, 05:07    Post subject:  

hello wiak,

I haven't tried it yet, so don't know if it works with chromecast, but OscarTalks has vlc-3.0 here.

vlc-3-0-chromecast-support-new-features
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 939
Location: not Bulgaria

PostPosted: Tue 13 Mar 2018, 05:09    Post subject:  

Thanks muggins - vlc could be good, though I am a bit of an mpv (or mplayer) user generally so unlikely to also install vlc - useful to try that for some though.

wiak
Back to top
View user's profile Send private message 
WiZard

Joined: 11 Sep 2005
Posts: 90

PostPosted: Wed 18 Apr 2018, 14:43    Post subject:  

@muggins
I couldn't get the Win version of VLC 3.0 to cast, but they quickly released v3.01 and the Win version works great and imo is a superior casting tool since it has better controls and can handle almost any audio or video file you might have. It can also work from the local computer or a simple samba file server. Oscar Talks has compiled v3.01 for dpup stretch and it runs but we have not been able to get the cast feature to work. You can follow the discussion here:
http://murga-linux.com/puppy/viewtopic.php?t=112804
If you have any ideas to get it working let Oscar know.

Thanks
Gary
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Wed 18 Apr 2018, 15:50    Post subject:  

Found a VLC 3.0 appimage,
https://github.com/anupam-git/vlc-appimage/releases
It's 64bit though.
I don't have any "cast" device, so can't test...
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1096
Location: UK

PostPosted: Thu 19 Apr 2018, 16:30    Post subject: VLC & Sid's Cast for Chromecast.  

Hi folks,

I can confirm that Chromecast support in VLC 3.0.1 works well in Windows10, ChaletOS and Manjaro.
Also it does not require Google Chrome as it interfaces directly with the dongle using dial protocol.
It's other main attraction is the support for audio and video playlists.

With regard to Puppy, if and when anupam produces a working 64-bit appimage of VLC 3.0.1
it should be possible to extract the image, change it so that VLC can be run as root and then pet
it up as a ROX app.

In the meantime here is the modern web app version of something I included in some of my Pups a few years back - Sid's Cast for Chromecast.

It is a HTML5 app that does all of the above i.e. It casts local media from Google Chrome 64-bit to a Chromecast dongle with playlist support.

There is nothing to install. Just vist the link below using a recent version of Chrome and add it to your bookmarks bar.

http://sidscast.appspot.com

Note that no files are actually uploaded only file references. It will probably be sufficient for the majority of Chromecast users.
I was astounded when I found that it now has the ability to control Chromecast volume something that is usually only found in
high end USB dacs.

_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1807
Location: London, England

PostPosted: Thu 19 Apr 2018, 19:24    Post subject:  

Hello ETP,

I am no expert, but I was reading that Chromecast has switched from DIAL to mDNS
Maybe you can still use either.
In VLC there is an optional dependency libmicrodns which I think is performing this function.

I don't have this device myself, but with the help of poster WiZard and other interested parties I have been trying to work out how to compile a version of VLC 3.0.1 from source in Puppy (32bit Stretch) that will work with Chromecast and I think we are making progress.
http://murga-linux.com/puppy/viewtopic.php?t=112804

_________________
Oscar in England

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0793s ][ Queries: 14 (0.0105s) ][ GZIP on ]