Tag Archives: Streaming

Streamlink 0.5.0 Adds Support For Streaming Google Drive / Google Docs Videos

Streamlink 0.5.0 was released yesterday, bringing support for streaming videos from Google Drive / Google Docs, along with other improvements.

Streamlink

Forked from Livestreamer, which is no longer maintained, Streamlink is a command line tool (and API) that can be used to stream videos from various streaming services, such as Twitch, YouTube Live and many more, and play them using your favorite video player, be it VLC, mpv, and more.

It is is available for Linux, Windows, and Mac OS.

Changes in Streamlink 0.5.0 include:

  • added support for streaming videos stored on Google Drive / Google Docs;
  • added support for BBC iPlayer live and VOD, along with support for HLS streams;
  • add support for Beam VOD and HLS streams for live;
  • added support for camsoda.com;
  • added new plugin: canlitv;
  • added new plugin: garena;
  • Aliez plugin now accepts any TLD;
  • added support for avi/mov VOD streams for rtve;
  • removed dead plugins such as blip.tv, gaminglive.tv, leon.tv, livestation.com and more.

Since our initial article about Streamlink, the tool has seen quite a few improvements, including support to use FFmpeg to mux separate video and audio streams, along with new plugins and much more. Check out the Streamlink GitHub releases page for a complete changelog.

For a complete list of supported streaming services, see THIS page.

Using the Streamlink command line interface is very simple. Here’s an example using a Google Drive video. The first thing you need to do is run Streamlink with the link you want to stream, to see the available streams:

streamlink https://drive.google.com/open?id=0B0tRrdcY7CwJWGdVdHEyYWpfTTQ

This should list the available formats:

[cli][info] Found matching plugin googledrive for URL https://drive.google.com/open?id=0B0tRrdcY7CwJWGdVdHEyYWpfTTQ
Available streams: 360p_alt, 480p_alt, 360p (worst), 480p, 720p, 1080p (best)

Next, simply add one of the available streams at the end of the command, and Streamlink will start streaming:

streamlink https://drive.google.com/open?id=0B0tRrdcY7CwJWGdVdHEyYWpfTTQ 1080p

By default, Streamlink uses VLC to play the stream, but you can specify a different video player by using the “–player” argument, e.g. “–player mpv” to use mpv instead.

For more about using the Streamlink command line interface, check out THIS page.

Install Streamlink

Ubuntu / Linux Mint users can install Streamlink by using the main WebUpd8 PPA. To add the PPA and install Streamlink, use the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install streamlink

I didn’t add a direct deb download link because the PPA provides quite a few dependencies required to install Streamlink.
For how to install Streamlink in other Linux distributions, Windows or Mac OS, see THIS page.
Report any bugs you may find @ GitHub.

Read More

Install Streamlink (Livestreamer Fork) In Ubuntu Or Linux Mint Via PPA

It looks like Livestreamer is no longer maintained, so a fork, called Streamlink, was created recently. There are no Ubuntu packages for the new fork, so I uploaded Streamlink to the main WebUpd8 PPA.

The PPA uses the Livestreamer Debian packaging, renamed for Streamlink, so the packaging credits go to Stefan Breunig, the Livestreamer Debian maintainer.

Streamlink

In case you’re not familiar with Livestreamer, this is a command line utility (and API is also available) that pipes video streams from services such as Livestream, Twitch, UStream, Youtube Live and more, to video players like VLC, mpv, and so on.

The Livestreamer developer hasn’t committed any changes or responded to issues in some time, so it seems the project has been abandoned.
Due to changes in various video streaming services, some Livestreamer plugins no longer work properly – for instance, the Livestreamer Twitch GUI developer had to implement some workarounds to get Twitch to work (by the way, he also added initial support for Streamlink).
Streamlink fixes quite a few issues (for twitch, picarto, itvplayer, crunchyroll, periscope, and douyutv, among others) present in Livestreamer, while also adding plugins for new streaming services. Check out its changelog for more information.

Install Streamlink in Ubuntu or Linux Mint via PPA

To install Streamlink in Ubuntu or Linux Mint by using the main WebUpd8 PPA, use the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install streamlink

If you don’t want to add the PPA, you can download the deb from HERE (you’ll need both streamlink and python-streamlink).

Streamlink is available in AUR for Arch Linux users.
To download the source, report bugs, etc., see the Streamlink GitHub page.

Read More

WebTorrent Desktop Is A New Streaming BitTorrent Client With Chromecast, AirPlay And DLNA Support

WebTorrent Desktop (beta) is a simple, open source BitTorrent client that lets you stream torrents, available for Linux, Windows and Mac. 
The application comes with a very basic user interface, which allows dropping a torrent file or pasting a magnet link to start streaming it.

WebTorrent Desktop Ubuntu

There’s no torrent database, search or anything like that in WebTorrent Desktop. It only displays 4 popular open source videos (section which later gets populated with the torrents you add) and an area where you can drop torrent files or paste magnet links to start streaming.

The torrent can be both video or audio – WebTorrent can handle both:

“Whether it’s video from the Internet Archive, music from Creative Commons, or audiobooks from Librivox, you can play it right away. You don’t have to wait for it to finish downloading”.

Besides being able to stream torrents to your desktop, WebTorrent Desktop can also stream torrents to AirPlay, Chromecast, and DLNA.
WebTorrent desktop

As for the BitTorrent part of WebTorrent Desktop, the application can discover peers via tracker servers, DHT (Distributed Hash Table), and peer exchange. Also, the application supports the WebTorrent protocol, which allows it to connect to WebRTC peers (for instance web browsers).
Unfortunately, the application doesn’t support subtitles for now. If you’re interested in this feature, you can track its status HERE. Another important feature that’s currently lacking is being able to use an external video player, like VLC, mpv and so on. But the application is still in beta, so missing features are to be expected.
Those who prefer the command line can try webtorrent-cli. Like WebTorrent Desktop, webtorrent-cli can stream to AirPlay, Chromecast, and DLNA devices, but it also offers some extra features, like being able to use various media players, such as VLC or mpv instead of the built-in player. It doesn’t support subtitles either though.
Note that for webtorrent-cli there aren’t any binaries available for download, so you’ll have to compile it. Debian, Ubuntu and Linux Mint will need Node.js from its official repository.

Download WebTorrent Desktop (beta)

Download WebTorrent Desktop (binaries available for Ubuntu 64bit only, generic Linux 64bit, Windows and Mac OS X, as well as source)
Arch Linux users can install WebTorrent Desktop via AUR (64bit only).

Once installed, run it once from a terminal (if you’ve installed the .deb, simply type “webtorrent-desktop” in a terminal), and the application should automatically create a .desktop file. From then on, you will be able to launch it from the menu / Dash.

Report any issues you may find @ GitHub.

Also see Peerflix: Stream Torrents With VLC Or MPlayer Via Command Line

via HN

Read More

How To Stream To Twitch From Linux Using OBS Studio

OBS Studio is a free, open source application which allows video recording and live streaming. The app can be used to stream to various popular websites such as Twitch.tv, YouTube, Hitbox.tv, Vaughn Live / iNSTAGIB.tv, DailyMotion, Connectcast.tv, GoodGame.ru, CyberGame.tv, CashPlay.tv along with custom streaming servers.

OBS Studio Ubuntu

The original Open Broadcaster Software was rewritten, with the main goal of being multiplatform, along with a more powerful API and a more thorough feature set. The new multiplatform OBS Studio is currently in alpha and is available for Linux, Mac OS X and Windows.

OBS features:

  • Encoding using H264 (x264) and AAC;
  • Unlimited number of scenes and sources;
  • Live RTMP streaming to Twitch, YouTube, DailyMotion, Hitbox and more;
  • File output to MP4 or FLV;
  • GPU-based game capture for high performance game streaming;
  • webcams, capture cards, etc. device support;
  • bilinear, bicubic or lanczos3 resampling;
  • configurable hotkeys, multiple audio tracks support and more.
In Linux, OBS allows recording a window or a monitor, on top of which you can add various overlays such as an image, text, webcam or media source and of course, audio input (microphone) and output (the game, a music player, etc.), with various options.
Below I’ll try to make a quick start guide for streaming to Twitch.tv via OBS running under Linux (Ubuntu in my case). But before that, you can see a quick test I’ve done earlier with OBS Studio (0.10.1) streaming World of Warcraft to Twitch from Ubuntu 15.04 (there are no video quality settings unfortunately because that’s only available for Twitch partners).

Install OBS Studio (Multiplatform) in Ubuntu or Linux Mint

1. Install FFmpeg.

For Ubuntu 14.04 and 14.10 / Linux Mint 17.x / elementary OS Freya and so on, you’ll need to add a FFmpeg PPA because these Ubuntu versions don’t provide FFmpeg. Add the PPA and install FFmpeg using the following commands:
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update
sudo apt-get install ffmpeg
These FFmpeg packages are backported from Ubuntu 15.04 and they don’t overwrite libav so they won’t break anything.

For Ubuntu 15.04, FFmpeg is available in the official repositories so to install it, use the following command:
sudo apt-get install ffmpeg

2. Install OBS Studio.

To add the official OBS Studio PPA and install the app in Ubuntu 15.04, 14.10 or 14.04 / Linux Mint 17.x / elementary OS Freya and so on, use the following commands:

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio

OBS Studio for other Linux distributions (unofficial packages): Arch Linux (AUR – git version), openSUSE and Gentoo.

For other Linux distributions, you’ll need to build it from source.

Setting up OBS Studio for streaming to Twitch.tv

1. Add your Twitch Stream Key to OBS

The first thing you’ll need to do to be able to stream to Twitch.tv using OBS is to get your Twitch Stream Key from HERE – copy the key and in OBS select “Settings” and on the Stream tab, select “Twitch” under “Service”, then paste the key you just copied under “Stream key”:

OBS Studio Ubuntu

Here you should also select the Twitch server that’s closest to you.

2. Add sources

Next, you’ll want to add some sources. The first source should be the video (game) source so click the “+” icon under “Sources” and select “Window capture (Xcomposite)”, click OK and select the game window:

OBS Studio Ubuntu

You can use “Screen capture (XSHM)” instead of “Window capture”, but I recommend capturing the window because you’ll be able to have other windows on top of the game without them showing up in your live stream.
Then, add any other sources you’d like, like “Video Capture Device” (webcam), “Audio Input Capture” (microphone), “Audio Output Capture” (the sound you hear through the speakers – it can be the game sound, a music player, etc.), text, an image and so on.
Note that the source order is important. For instance, if you’re playing a fullscreen game and the webcam source (“Video Capture Device”) is under the “Window capture” or “Screen capture” source, it won’t show up, so you’ll need to move it using the up/down arrows so that the webcam source is above the capture source. The same goes for text and image overlays, etc.

3. Optional configuration tweaks

a) if your video colors are incorrect, select the source from the “Sources” list, click “Properties” (it’s the third button under “Sources”) and enable “Swap red and blue”:

OBS Studio Ubuntu

b) if your computer has a slow CPU and you’re getting a low quality / fps live stream, you can try changing the x264 CPU preset to “superfast” or “ultrafast” (default is “veryfast”):

OBS Studio Ubuntu

This can be done via Settings > Output > select “Advanced” for the “Output Mode” from the dropdown > on the Streaming tab scroll down and you’ll find an option called “CPU Usage Preset”.
If the performance is still bad, you can try setting a lower video resolution and bitrate (these settings can be found in the same “Streaming” tab as the “CPU Usage Preset” – see above).
c) if you have an old computer and/or a bad Internet connection, you may want to decrease the frame rate (default is 30) or, if you have a good computer and Internet connection and you play something like Arena/PvP, you my want to increase it.
The FPS settings can be found in OBS Settings > Video (you can switch to “Integer FPS value” to use a custom value instead of those predefined under “Common FPS Values”):

OBS Studio Ubuntu
You may also want to read the official OBS quick start and overview guides (but note that they are for the old OBS version so the UI looks different and some settings maybe not be available any more, etc.).

Report any bugs you may encounter with OBS, HERE.

Also see: Twitch.tv Indicator Lets You Know When The Channels You Follow Go Live

Read More

Twitter Adds Group Messaging and Native Video

By Vasudev Ram

Saw this via a tweet.

http://www.programmableweb.com/news/twitter-adds-group-messaging-and-native-video/elsewhere-web/2015/01/27


Should be interesting to check it out once ready. They say the group messaging feature will allow for messaging to small groups of up to 20 at a time. Could be useful for some applications.

Vasudev Ram – Dancing Bison Enterprises


Signup to hear about my new software products.


Contact Page


var addthis_config = {“data_track_clickback”:true};

Read More

streamripper: Keeping local copies

It’s been a while since I’ve seen an audio stream ripper — in fact, I think the last one was fIcy, way back when this site was just starting up. 😐

So here’s streamripper, which does something similar to what fIcy does, but seems a little better prepared for the task.

2014-10-28-6m47421-streamripper

What I remember most about fIcy is that without an -o flag, it would dump its output to the screen, and with an -o flag … it didn’t quite work right.

So seeing streamripper effortlessly pull down a stream, dissect the individual files at their correct start and stop points, nest them in a neat tree of folders, and set aside tracks that are incomplete … well, it’s very pleasant to watch.

streamripper is not new. In fact, it looks like it faded away (I need a better term than that for software that stalls) around 2008. That’s the bad news.

The good news is, I don’t imagine much has really changed in the past six years in the way streaming music is broadcast, or for that matter, how mp3s work. Both technologies are pretty much solid at this point.

So if you can deal with the awful public shame of using six-year-old software, streamripper appears to be a viable option for capturing your favorite online audio. And if you can’t deal with that big a lag in software development … well, you’ve come to the wrong place, bub. :

Tagged: audio, rip, ripping, stream, streaming

Read More

gplayer: Get loud with the cloud

It seems cloud-based or Internet-heavy tools are the choice of the gods of shuf today, since the second title for this sunny Saturday is a CLI-based interface for Grooveshark, the online streaming audio service.

2014-09-06-6m47421-gplayer

Like I said earlier this week, I’m in favor of any utility that strips away the worthless scum that coats most Internet services, and I list the noxious, fetid remains of Flash technology among that. So from the start, gplayer wins points for allowing me to sidestep the standard Grooveshark player.

That said, gplayer doesn’t reach the same degree of finesse that soundcloud2000 did. It is worth remembering that what you see in the screenshot is accomplished in approximately 60 lines of code … of course, allowing for the fact that mplayer, that seven-headed-ten-horned beast of media playback, is doing all the heavy work.

It’s still impressive though. gplayer gives you a search function that mimics Grooveshark, returns a list of 20 results, and allows you to cue any of the titles that are listed. From there, mplayer takes over, using its keypresses as controls and its frame progress counter as an onscreen display.

I’ve found a few small incongruities in gplayer, and I’ll note them here just as a matter of record. For one, when a song ends either because it’s over or because the listener gave “q” to mplayer, gplayer never recovers its prompt. I get a dull cursor without any text, and short of pressing CTRL+C, gplayer seems to have stalled.

I don’t think that was the way the author intended, since it would make more sense to me, as a casual user, to either get a new search prompt, a prompt to cue another title, a repeat of the previous list, or just be dropped to the shell. As it is, I’m lost somewhere betweem mplayer finishing and gplayer recovering.

Second, it’s fairly easy to send gplayer into a tailspin over the selection. Any non-numeric character will cause an error, and any out-of-range of numbers will cause an error. It’s just an issue of trapping those entries and preventing gplayer from exploding across the screen.

I can stop there since that’s about the limit of gplayer’s functions. If you’re willing to hold its hand for a little bit, and if you can find a way to cue up several songs in a row, and if you’re a fan of Grooveshark in the first place, you’ll probably find a place in your heart for it.

Oh, and I think the author should follow soundcloud2000’s lead, and subtitle gplayer as “Grooveshark without all the stupid css.” Or maybe “without all the stupid Flash.” 😉

Tagged: audio, download, music, online, player, streaming

Read More