The admin’s of streamlive have changed syntax and made changes to the mobile version of site, now we need a user agent switcher extension to access it. I have another simple workaround which i’m not going to post here, if anyone is interested hit me up on twitter or leave a comment. To re-enable the mobile version of site, install this User Agent Switcher Firefox Add-On and set it to use either Android or iOS #Cat&Mouse
[Update] I am noticing that m.streamlive.to (the mobile version of site) now points to streamlive.to (not mobile). Once you have found your desired stream, in the address bar delete the www and replace with an m.so we get the mobile webpage.
Since the livestreamer plugin for this site is broken, here’s a way to watch all streams from streamlive.to in your favourite media player, firstly click <– hyperlink find a stream you like, click it, you will see a player, right click player and highlight/click ‘copy video location’ like so .. Then open a new tab and paste in the video location URL from your clipboard to the address bar ..
An .m3u8 playlist file will begin downloading, normaly to /tmp, simply open it with your chosen media player [In Firefox preferences you can also set your player as default handler for the mimetypes(MP3 audio) (streamed) (audio/x-mpegurl)M3U8 filertmp
Stream will then begin playing in chosen player automagically]
I have tested this using firefox in Linux and OS X, thats all folks .. another nail in adobe flash coffin.
P.S To have it work in Windows we need to create our own .m3u8 playlist file see this older blog post.
If we go here http://m.streamlive.to and sign up using a bogus email; IE: mailinator we can view all the free streams from that site in our chosen local media player, if using Windows or OSX id recommend using VLC, if using a moar ethical OS (wherein you are not a commodity) i suggest using MPV. Once you have logged in then browse to the stream of your choice,
click the link which says “Play Link 1 (HLS) for iOS & Android”Above link has since been removed so we need to create our own .m3u8 playlist, see below.
In Firefox browser we can right click the video player and choose ‘copy video location’ paste it into new tab and the .m3u8 playlist will then download, have MPV/VLC open playlist file in settings under content, make MPV/VLC default handler for rtmp and mp3 streamed (audio/x-mpegurl) mimetypes, or open it manualy.
when clicked your browser will begin downloading a small .m3u8 playlist file, usually to the /tmp directory, all that’s required is to open that .m3u8 file with your media player (preferably MPV or VLC) and that’s it. happy viewing ..
Should your browser not be configured to automagically download the .m3u8 file after
clicking the “Play Link 1 (HLS) for iOS & Android” hyperlink, heres how to create your own .m3u8 playlist file …
Have a gander at this template .m3u8 playlist file, note the long URL on line 3 ..
If we then browse to chosen stream webpage and use browser to view the page source, line 146/465 gives us the relevant long url which is akin to the long URL in line 3 of the template .m3u8, replacing part of line 3 of the template file with same part of the long URL you have just copied from line 146 of the ‘page source’ will create your own playlist file, open it with MPV or VLC.
the ‘view page source’ looks like this .. replace the highlighted part of your chosen stream URL with whats in this template, once you have pasted in your chosen stream URL save the file as foo.m3u8, go ahead and make it executable and then open it in MPV or VLC.
In http://www.streamlive.to the page source’ we interested in is in one of these two lines of code ..
The URL’s change randomly so expect to have to do the same tomorrow to view same stream by simply swapping out old URL with the new, iv’e found both above and below URL’s will work. Just start the copy of URL from _definst_/ onward and paste into same part in the template.
In the mobile version of site http://m.streamlive.to the ‘page source’ we interested in is here ..
Firefox has (for whatever reason) disabled the hardware accelerated features for Linux users. Read on to find out how to enable it.
Hardware rendering uses things such as your graphics card and other ‘hardware embedded’ circuits to process the webpage. Software Rendering (this is what you do when not hardware rendering) purely uses your CPU. Typically, things that are enabled for hardware rendering are significantly faster when ran via hardware. It also will dramatically reduce CPU usage.
There are some computational tasks that are better handled by task specific silicon on your CPU and/or GPU. With hardware acceleration “off” the program will ignore these options if available (via both hardware and drivers) and will just use the inefficient software solution.
The main thing this affects is video playback in browsers.
- Check if Hardware acceleration is actually enabled in Firefox by visiting
about:supportlooking for “GPU Accelerated Windows 1/1 OpenGL (OMTC)” under graphics. If this shows 1/1 you can stop right here, you do not need this tweak. But if it shows 0/1 here’s how you can force it on …
about:configin Firefox (url bar)
export MOZ_USE_OMTC=1in your ~/.profile or you can test this by running
export MOZ_USE_OMTC=1before running firefox
- Reboot and check
about:supportfor “GPU Accelerated Windows 1/1 …” If it shows 0/1 then you are not using HW accelleration.
ARC allows us to run most any Android Apk’s on our PC’s and it’s multiplatform it will work on Linux, Windows, OS X and ofc ChromeOS. ARC is basically just a Chrome extension .crx and is installed in the same way you would install any other Chrome extension which im sure you are all familiar with
As you can tell from my previous couple of blog entries i like consuming media (video in general) outwith the browser, not because im a Stallmanite who despises Adobe Flash (although i do) i just prefer my video streams to play in native media player as i find the quality and resource usage is better. So to follow in the same vein as my last couple of posts, this time im going to harp on about show box which is a Free application for viewing movies and TV series .
The Getting Started guide gives a simple step by step guide as how to install ARC Welder Once you have it installed on Google’s Chrome browser or the more ethical Open Source Chromium browser, then i highly recommend adding either the Mobdro.apk or Show Box .apk to ARC Welder, both have a wide selection of video streams to choose from, be advised once show_box is installed and launched a dialouge box will appear prompting you to update, choose the ‘remind me later’ option. Both .apk’s give instant access to hundreds of movies and every season of hundreds of the top TV shows , show_box also gives us the option to download the media, view it in the show_box internal media player, or the ‘open with ARC’ option which will open the media in your default browser, then you can just copasta the URL into your favourite local media player. It also allows us to choose quality of the stream ‘low’ medium’ ‘high’ the highest and most common is 720 p which is not too shabby.
I hacked around and got show box to open like a standalone app, without executing ARC Welder or chromium, by using an alias
alias showbox='/usr/bin/chromium --profile-directory=Default --app-id=eijgacohmegconnajkflbadbodniodab '
your ‘app id’ will differ, in linux i got mine by using xprop
Thats about it for show box & ARC Welder
PS: There’s an open ticket for ARC Welder bug on 32 bit OS currently only working on X86_64 OS
I figured i would write a tutorial for my Windows using brethren showing them the awesome livestreamer and how to go about installing and using this awesome bit of kit. Livestreamer allows us to watch a number of streaming services in VLC or any media player you choose, which is great as it does away with the need for flash, those who bother to check out livestreamer will see a marked improvement in video quality and the RAM footprint and CPU cycles are drastically decreased in comparison to when using browser to view streams.
The Windows installer can be found here the installer includes a compiled version of Livestreamer (that does not require an existing Python installation) and RTMPDump for viewing RTMP streams. It will also generate a default config file all that requires editing is just the #player line, remove the # comment and point the player line to your players .exe like you see in my .livestreamerrc (line 12) it would also be wise to ensure the line rtmpdump= points to the newly installed rtmpdump .exe (line 19 on my .livestreamerrc) the default directory for the .livestreamerrc is C:\Users\cirrus\AppData\Roaming\livestreamer. Once you have done that, then that is us finished, easy huh? now we want to find some sites which livestreamer has native plugins for, i will list a couple …
+ You Tube
To play the streams in Windows we open up the cygwin terminal (if installed) or the command prompt / powershell and simply type ..
livestreamer url of stream best
livestreamer http://vaughnlive.tv/1crime best
The chosen stream will then open in your chosen media player.
Livestreamer is in my top 5 applications and it is multi platform so Linux OSX and Windows users can benefit, see here for more info on livestreamer .
I tend to watch the crime stream often so i created a .bat file by opening notepad, pasting in this one line
livestreamer http://vaughnlive.tv/crimecentral best
save file as crime.bat and viola we have just created a shortcut to that stream, that might be handy for those who don’t like command prompt or powershell.
Simple shell script for MPD now playing, using xcowsay to define image
(any image can be used)
#!/bin/bash OSD=$(mpc current) xcowsay --at 800,20 --font=CaviarDreams --monitor=1 --image=/home/cirrus/djtux.png "MPD Now Playing" "$OSD"
edit the –at switch to define where on VDU image shows
and ofc edit the –monitor switch to define which VDU
see here for moar indepth configuration options
To have the script execute on MPD song change,
add this 1 line to ~/.ncmpcpp/config
execute_on_song_change = ~/path/to/xcowmpd.sh
Alternatively if not using ncmpcpp simply execute this script alongside mpd,mcp [edit to suit]
Here is some more of my simple shell scripts where xcowsay could be used opposed to notify-send
I reckoned it’s about time i posted something here on my neglected corner of teh interwebs, this time ill be harping on about yet another TUI (Text User Interface) application named pyradio, Yes it’s python and yes it’s a radio (remember those ?). Sure we could write shell aliases to fire up our favourite radio stations/streams, however pyradio will save you the time and bother. Get it here by typing/pasting
git clone https://github.com/coderholic/pyradio.git
sudo python setup.py install
if that sounds too much like hard work you may be able to find it in your favourite repository
<—-Here’s what it looks like ..
If pyradio is for you and you have gone and installed it then i have taken the time to go and dig out some radio stream URL’s for you to add to the stations.csv file, which can be found in
should your distro be on an older version of python, maybe 2.7 then cd to
you get the gist, paste the contents of Radio Stations into the stations.csv file (you will need elevated priviliges to write to this directory).
I also edited the player.py file from the above directory and changed line 101 from mplayer to the much prefered mpv media player, for good measure i edited the radio.py file to change the default curses colours.
That’s all folks, Thanks for dropping by.