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 Wed 19 Sep 2018, 14:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Cast2chrome
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
wiak

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

PostPosted: Mon 07 May 2018, 04:41    Post subject:  Cast2chrome  

NEW VERSION requires gtkwialog version 0.8.5 or above

Cast2Chrome

Cast2Chrome is a bash/gtkwialog full-featured GUI frontend to Stream2Chromecast (see screenshots at foot of this post) which allows you to stream local files or url files, or online youtube-type videos to a chromecast dongle plugged into the hdmi port of your television.

Dependencies. Required: bash, gtkwialog, stream2chromecast

The underlying utility, Stream2Chromecast, is a python2.7 Chromecast media streamer for Linux by Pat Carter. It can stream local files or, if supplied with the url, streamable online stored files (such as mp4; and via http, https, rtsp:).

Dependencies. Required: python2.7; Optional: ffmpeg or avconv (for transcoding), youtube-dl (+ffmpeg or avconv) for streaming media from youtube or similar.

In addition, if ffmpeg is available, stream2chromecast can transcode any unsupported files in real time and play them on the Chromecast. The wiak-mod to the supplied stream2chrometest.py allows the program to also support piping to stdin via ffmpeg using youtube-dl for streaming youtube or similar media.

Developed and tested on XenialDog64. http://www.murga-linux.com/puppy/viewtopic.php?t=109476 Works fine there and also work on Bionic and probably others.

I've also tested as working on XenialPup32. XenialPup includes a suitable python2.7. (However, didn't work on Slacko 6.3.2 32bit version I tried; seemed like the python2.7 I installed from slackware 14.1 repo wasn't complete enough).

If you want to cast youtube media on XenialPup32 DO NOT use the old version from its Puppy Package Manager. Instead install the newest version as follows:

Code:
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

chmod a+rx /usr/local/bin/youtube-dl


Screenshots, Dotpets and Debian packages for cast2chrome and specially youtube-dl pipe-capable wiak-modded stream2chromecast can be found below. These work on either 32bit or 64bit OS. Otherwise, just press Help button in cast2chrome and provide feedback.

wiak
cast2chrome_0.0.4_all.deb.tar
Description  Just remove dummy tar before installing
tar

 Download 
Filename  cast2chrome_0.0.4_all.deb.tar 
Filesize  7.68 KB 
Downloaded  40 Time(s) 
stream2chromecast_0+git20180507-0~webupd8~0_all.deb.tar
Description  Just remove the dummy tar
tar

 Download 
Filename  stream2chromecast_0+git20180507-0~webupd8~0_all.deb.tar 
Filesize  26.05 KB 
Downloaded  57 Time(s) 
cast2chrome_BasicTab.jpg
 Description   
 Filesize   45.98 KB
 Viewed   885 Time(s)

cast2chrome_BasicTab.jpg

cast2chrome_SubtitlesTab.jpg
 Description   
 Filesize   41.45 KB
 Viewed   879 Time(s)

cast2chrome_SubtitlesTab.jpg

cast2chrome_TranscoderTab.jpg
 Description   
 Filesize   45.78 KB
 Viewed   883 Time(s)

cast2chrome_TranscoderTab.jpg

cast2chrome_AdvancedTab.jpg
 Description   
 Filesize   50.04 KB
 Viewed   880 Time(s)

cast2chrome_AdvancedTab.jpg


Last edited by wiak on Fri 20 Jul 2018, 03:54; edited 29 times in total
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Mon 07 May 2018, 16:52    Post subject:  

I'm planning a sibling of this program that will keep a copy of any youtube video played, at least temporarily in RAM. However, If using RAM temp for that, I'll keep the one above too because on low-powered machines with little RAM I'd probably want two (they are tiny anyway) one that 'saves' the youtube video and one just for playing on-the-fly.

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


Joined: 03 Oct 2016
Posts: 157

PostPosted: Mon 07 May 2018, 19:35    Post subject:  

Holy hell it works !! At least the youtube part. I'm streaming right out of the box on LxPupXenial 16.08. I'll shake down the other formats later and see how that goes.

I'm excited, much thanks for this.
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Tue 08 May 2018, 05:03    Post subject:  

spiritwild wrote:
Holy hell it works !! At least the youtube part. I'm streaming right out of the box on LxPupXenial 16.08. I'll shake down the other formats later and see how that goes.

I'm excited, much thanks for this.


You're welcome.

I'm expecting to post next version tomorrow, which will allow choice to save the youtube stream simultaneously to casting it. That will be a checkbox selection, with dir/file entry boxes for where you want to save.

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


Joined: 03 Oct 2016
Posts: 157

PostPosted: Tue 08 May 2018, 19:03    Post subject:  

Is FFMPEG used as default? per ....export FFMPEG="ffmpeg" ?

Also, excuse my ignorance on gtk, is there a default configuration file
If I wished to keep certain transcoder options by default in the GUI ?

Or should I try to edit the cast2chrome script lines in... # Default config:

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

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

PostPosted: Wed 09 May 2018, 03:13    Post subject:  

Add the following line, just before the final 'exit 0' line at the end of the script and config saving will work (I accidentally missed it out in the 0.0.1 release version):

Code:
trap - INT TERM ERR EXIT


wiak

Last edited by wiak on Mon 21 May 2018, 00:20; edited 3 times in total
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Wed 09 May 2018, 05:01    Post subject:  

Sorry, though I do have a partially complete new version that does simultaneouly save youtube videos whilst playing them (if checkbox activated) I haven't added the last few bits required. Alas I started reading and responding to another thread and have run out of time tonight. I'll be back home on Saturday evening and will certainly complete the next version within a couple of days of that. So if you are interested in the program just check back in then.

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


Joined: 03 Oct 2016
Posts: 157

PostPosted: Thu 10 May 2018, 13:48    Post subject:  

Thanks Again, will do!
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Sun 13 May 2018, 19:50    Post subject:  

.
Last edited by wiak on Sun 20 May 2018, 06:25; edited 2 times in total
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2617
Location: 500 seconds from Sol

PostPosted: Sun 13 May 2018, 21:26    Post subject:  

wiak wrote:
I've broken a couple of ribs
.

That's not a recommended procedure for Linux gurus. Shocked Try not to do it again. Idea

And get well soon.

mikesLr

p.s.

The vaudeville skit runs like this:

Concerned friend: "Have an accident?"
Injured friend: "No thanks. I've already had one."

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

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

PostPosted: Mon 14 May 2018, 01:47    Post subject:  

mikeslr wrote:
wiak wrote:
I've broken a couple of ribs
.

That's not a recommended procedure for Linux gurus. Shocked Try not to do it again. Idea


Yes, thanks, it was a bit annoying, main problem being that one of my own ribs decided to stab my lung and I was on a different island, 500km away by air from home and cos of the lung not allowed to fly but had kids to look after at home. So ended up taking risk to travel by bus and ferry the day after the accident - the doctor was a bit correct about that idea... but I am now home and may yet complete the castchrome additions within the next few days whilst otherwise bored painfully out of my skull.

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


Joined: 11 Dec 2013
Posts: 3355
Location: holland

PostPosted: Mon 14 May 2018, 11:13    Post subject:  

Sounds serious. Take it easy and all the best, wiak !

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1545
Location: GERMANY

PostPosted: Tue 15 May 2018, 11:44    Post subject:  

Sorry to hear wiak Shocked Shocked
Serious indeed Shocked ......... I hope you're doing better. Smile Smile Smile
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Wed 23 May 2018, 00:15    Post subject: cast2chrome version 0.0.2 released
Subject description: adds youtube save facility
 

cast2chrome version 0.0.2 released.

Can play local media from your Puppy to TV that has cheap chromecast dongle plugged in to its HDMI port - no cables required, nor is chrome browser or vlc required at all - cast2chrome is a very low resource solution. And your Puppy laptop can be an old one that has no HDMI output ports itself, or any display ports at all actually... Can also play internet streaming media including youtube (if youtube-dl also installed per first post instructions), which it can also save whilst playing.

Changes:
# 0.0.2 dated 2018/5/23: Fixed save config; added optional save youtube whilst playing; fixed removal of youtube-related processes on quit. Made config file handling more robust.

Main GUI changes are:

The save checkbox (which is only applicable for youtube streams). The savefile location is selected under "Optional" tag (default is $HOME/youtubeDATESTAMP). The screenshot in first thread post are for 0.0.1 version, but just hover your mouse over GUI elements for descriptive help (and/or press HELP button).

Bugs: None known of.

The start/pause/stop buttons sometimes take a few seconds to activate. There is alot going on underneath in the stream2chromecast utility, so you just have to be patient. Basically wait till the button greys out or loses its grey (depending on what you are doing).

Download is currently from first post of this thread:

http://www.murga-linux.com/puppy/viewtopic.php?p=991012#991012

As before you need to install both cast2chrome and stream2chromecast pets and need a fullish python2.7 installation (and optional ffmpeg for automatic transcoding of chromecast unknown video formats and youtube-dl for streaming Internet youtube media to the dongle via cast2chrome system).

Tested on:

XenialPup32 (and also on one of the dogs: XenialDog64, for which debs are provided) but should definitely also work on Bionic and maybe on earlier systems (but untested there).

Future:

I'm not sure I'll be adding much (if any) additional functionality in the nearish future. Only thing I might do, because I'd like it, is add a commandline API to cast2chrome such that it could easy be programmably called up from the likes of Pmusic or DogRadio or similar. Much like 01micko's PupRadio was able to call up Precord for recording, but cast2chrome would be called up for streaming the 'other-app's' selected media to the chromecast dongle in this case.

Let me know if any bugs discovered or any functionality lacking and I'll certainly consider your ideas.

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

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

PostPosted: Mon 04 Jun 2018, 11:45    Post subject: cast2chrome version 0.0.3 released  

cast2chrome version 0.0.3 released.

Streams local and internet media to a chromecast device plugged into HDMI port of television.

Changes:

Depends on gtkwialog (drop in replacement for legacy gtkdialog but with extra functionality that allows cast2chrome to be used on dash systems (such as Ubuntu or Debian), ash systems (such as Slitaz) and bash systems (such as Puppy Linux).

Fixed a major bug in previous version, which wouldn't work correctly with local files.

Changed volume UP/DOWN behaviour since previous method was unstable.

Like version 0.0.2 the user can optionally save youtube videos as they are being downloaded.

See first post of this thread for more details, additional requirement, and downloads.

wiak
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
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.0982s ][ Queries: 12 (0.0080s) ][ GZIP on ]