Showing posts with label video. Show all posts
Showing posts with label video. Show all posts

Saturday, October 31, 2015

Install HandBrake Video Transcoder With Fixed Black Widgets And Unity Launcher Progress Bar Integration In Ubuntu

HandBrake is a popular free and open source video transcoder available for Linux, Windows and Mac OS X. The tool works great however, the app widgets are black under Unity, this issue being caused by Ubuntu's overlay scrollbars:

HandBrake Unity overlay scrollbars black bug

If you're using Unity, you can add +Marc Deslauriers' HandBrake PPA, which provides a fix for this black widgets bug. The HandBrake packages in this PPA also ship with Unity Launcher progress bar integration, so you can quickly see the transcoding progress without having the app on top:

HandBrake Unity patches

For those who aren't familiar with HandBrake, here's a quick list of features:
  • for input sources, HandBrake supports most common multimedia files and any DVD or BluRay sources that do not contain any kind of copy protection;
  • supported outputs:
    • file containers: MP4 (M4V) and MKV;
    • video encoders: H.264 (x264), H.265 (x265) MPEG-4 and MPEG-2 (libav), VP8 (libvpx) and Theora (libtheora);
    • audio encoders: AAC,, MP3, Flac, AC3 and Vorbis;
  • device presets;
  • title / chapter selection;
  • chapter markers;
  • queue up multiple encoding jobs;
  • subtitles support (VobSub, Closed Captions CEA-608, SSA, SRT);
  • constant quality or average bitrate video encoding;
  • video filters: deinterlacing, decomb, denoise, detelecine, deblock, grayscale, cropping and scaling;
  • live video preview;
  • comes with graphical and command line interfaces.


Install HandBrake with Unity patches in Ubuntu 15.04, 14.10 and 14.04


To add Marc Deslauriers' HandBrake PPA and install HandBrake with Unity patches (fixed black widgets and Unity Launcher progress bar integration) in Ubuntu 15.04, 14.10 or 14.04, use the following commands:
sudo add-apt-repository ppa:mdeslaur/handbrake
sudo apt-get update
sudo apt-get install handbrake

For other Linux distributions, Windows and Mac OS X, see the HandBrake downloads page.

via G+
Read more »

Tuesday, October 27, 2015

Convert Audio / Video Files With Selene Media Encoder

Selene is a GTK3/Vala media converter tool developed by Tony George (who's also behind Conky Manager), which "aims to provide a simple GUI for converting files to popular formats along with powerful command-line options for automated/unattended encoding".

Selene Media Encoder

Besides supporting most popular audio/video formats, Selene supports 2 types of presets: JSON presets (which determine the audio/video format, codecs, bitrate, quality and so on) as well as Bash script presets which can be used for converting files using any command line utility, useful for integrating tools that aren't directly supported by Selene, as well as for automated / unattended encoding.

It's also important to note that Selene can also crop / resize / resample videos or embed subtitles.

The application is under constant development, with the latest version (2.4) being released about 10 days ago with SOX Audio Processing support, an option to check for missing encoders (see screenshot below) and bug fixes.

Selene Media Encoder
Selene - encoders status

Selene Media Encoder
Selene Presets - filter options


Selene Media Encoder features:
  • Encode videos to MKV/MP4/OGV/WEBM formats;
  • Encode music to MP3/AAC/OGG/OPUS/FLAC/WAV formats;
  • Option to pause/resume encoding;
  • Option to run in background and shutdown PC after encoding;
  • Option for SOX Audio Processing;
  • Customizable presets;
  • Preview file before converting;
  • Bash scripts can be written to control the encoding process;
  • Command line interface for unattended/automated encoding (run "selene --help" for a list of available commands);
  • Support for copying audio tags (Artist, Album, etc) to the the output file;
  • Option to check for missing encoders.
Update January 26th, 2015: Selene has received VP9 and H.265/HEVC encoding support. Note that You need to have ffmpeg/avconv compiled with VP8/VP9 support to be able to use the new VP9 encoder (Ubuntu 14.04 and above should have this enabled by default).


Install Selene Media Encoder in Ubuntu or Linux Mint


Ubuntu / Linux Mint (and derivatives) users can install the latest Selene Media Encoder by using its official PPA. Add the PPA and install Selene using the following commands:
sudo apt-add-repository ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install selene
If you don't want to add the PPA or you're using Debian, etc., grab the Selene Media Encoder deb from HERE.

For encoding AAC/MP4 format, Selene needs NeroAAC encoder which you can install by using the following commands:
cd /tmp
wget http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip
unzip -j NeroAACCodec-1.5.1.zip linux/neroAacEnc
sudo install -m 0755 neroAacEnc /usr/bin
sudo apt-get install gpac

Arch Linux users can install Selene via AUR.

Other Linux distributions: grab the Selene source code via Launchpad (BZR).

For more information, usage, how to use bash scripts for encoding and more, see Selene's homepage.
Read more »

Sunday, October 25, 2015

Create Classy Slow Motion Videos In Linux With slowmoVideo

slowmoVideo is a Qt application for Linux and Windows that can be used to create beautiful slow motion videos. But don't think all it does is change the video playback speed! The tool can smoothly slow down and speed up the video with optional motion blur.

slowmoVideo Ubuntu

The application is not new and is actually quite popular, but I just realized I never covered it on failsdownloads, so I though I'd let you know about this cool application, in case you're not familiar with it.

To get an idea on what the application can do, you can watch a video created by the slowmoVideo developer from an image sequence:


Timelapse retiming (slow motion) from Simon A. Eugster.

He explains:

"Source material for this video was an image sequence shot with a Nikon D90. The clouds were moving so quickly that even with shorter intervals (9 seconds; For a different timelapse I used 20 s which was still enough for the clouds there) the video was playing too fast."

Here's another video which has only some parts in slow motion:


Short dream – Hair in slow-motion from Simon A. Eugster


slowmoVideo features:
  • can be used with any video format supported by ffmpeg;
  • supports loading image sequences;
  • motion blur can be added to the videos.

As you can see, the application doesn't offer a huge amount of features and instead it's specialized on doing one thing only: creating amazing slow motion videos from your footage.

slowmoVideo isn't exactly intuitive, but the documentation available on its website should be enough to get you started. You'll find it HERE.

One note though: I recommend trimming your video before importing it into slowmoVideo because it extracts frames from the video when importing it and that will take a long time if your video is relatively large.


Install slowmoVideo in Ubuntu


slowmoVideo can be installed in Ubuntu by using its official PPA (there are no packages for Ubuntu 14.04 yet!). To add the PPA and install slowmoVideo, use the commands below:
sudo add-apt-repository ppa:brousselle/slowmovideo
sudo apt-get update
sudo apt-get install slowmovideo


Download slowmoVideo


Arch Linux users can install slowmoVideo via AUR.

Download slowmoVideo (for Windows or source files). The downloads page includes build instructions for Debian/Ubuntu, Fedora, and openSUSE.
Read more »

YouTube Command Line Player And Downloader `mps-youtube` 0.2.0 Released With Support For Downloading YouTube Playlists, More

mps-youtube is a command line tool that can be used to search, play and download YouTube videos, which supports both local and YouTube playlists.

By default, mps-youtube is basically a YouTube audio player (and downloader), but you can enable external video playback (via mpv or MPlayer) from its options:


Features:
  • search and play audio / video from YouTube;
  • search tracks of albums by album title;
  • search and import YouTube playlists;
  • create and save local playlists;
  • download audio / video from YouTube, with support for DASH (so it can mux separate audio and video streams - that means it can download 1080p YouTube videos since all 1080p YouTube videos use DASH);
  • view video comments;
  • works under Linux, Windows and Mac OSX;
  • many other small but useful features.

The latest mps-youtube 0.2.0, released today, adds quite a few new features and improvements, such as:
  • auto detect terminal size;
  • transcode audio to mp3 and other formats (requires ffmpeg or avconv);
  • added "da" (download best available audio file) and "dv" (download best available video file) commands to playlist search results;
  • added options to download YouTube playlists (use "dapl" for audio and "dvpl" for video) by url or id;
  • the progress indicator now works with mpv;
  • added option to show system notifications (on Ubuntu, install "libnotify-bin" and enable notifications using "set notifier notify-send");
  • Added overwrite true/false option for downloads (skips download if downloaded file already exists);
  • added copy to clipboard feature (requires "xclip" from the repositories and "xerox" which you can install via python-pip);
  • remux audio downloads for better file compatibility.


Getting started with mps-youtube


To start mps-youtube, use the following command:
mpsyt

Before using mps-youtube, let's configure it.

mps-youtube uses mplayer as the default media player but you can change this to mpv by using the following command:
set player mpv

By default, mps-youtube searches for music only. If you want to disable this, use the following command:
set search_music false

Also, mps-youtube plays just the audio by default so if you wish to enable playing videos (using the player set above), run the command below (once again, after running "mpsyt"):
set show_video true

You can view all the available configuration options by using the command below:
set


Searching for music / videos using mps-youtube is as easy as adding "." or "/" in front of the search terms (without the quotes). For instance, to search for Led Zeppelin, you can use:
.led zeppelin
or:
/led zeppelin
You can navigate to the next / previous page of results by using "n" (next) and "p" (previous).

To play an item, enter its number. You can also play multiple items, for instance, use "1-5" to play items 1 to 5 or "1, 2, 6" to play the first, second and sixth item and so on.



To download an item, use:
d ITEM-NUMBER
For example, to download the 3rd search result, use "d 3" - this displays all the available audio and video formats and lets you choose which to download. You can also download the best audio (use "da ITEM-NUMBER") or best video (use "dv ITEM-NUMBER"). This works for both searches and playlists.

This is just to get you started so for more information on using mps-youtube, type "h" and then "help TOPIC" (where topic is "basic", "search" and so on) as explained in mps-youtube:



Install mps-youtube


Arch Linux users can install the latest mps-youtube via AUR

mps-youtube is available in Ubuntu 14.10 and 15.04 repositories as well as Debian Sid and Jessie however, that's an older version so if you want to install the latest version in Ubuntu, Debian, Linux Mint and so on, you can use PIP:

1. Install Python PIP:
sudo apt-get install python3-pip

2. Install mps-youtube using Python PIP:
sudo pip3 install mps-youtube

3. You'll also need either mpv or mplayer if you want to play audio or video via mps-youtube.

mpv is available in the official Ubuntu 14.04, 14.10 and 15.04 repositories as well as in Debian Jessie and Sid so to install it, use the following command:
sudo apt-get install mpv

Of course, you can also use mplayer, which is available in the official repositories for any Ubuntu / Debian version - install it using the following command:
sudo apt-get install mplayer

If you had mps-youtube installed and you want to upgrade it (or you want to upgrade it later on, when a new version is released), use the following command:
sudo pip3 install mps-youtube --upgrade

For Windows and Mac OS X installation instructions, bug reports and so on, see the mps-youtube GitHub page.
Read more »

Play SRT Subtitles On Top Of Any Video With Penguin Subtitle Player

Penguin Subtitle Player is a simple open source Qt5 subtitle player which can be used to display SRT subtitles on top of online video streaming websites that don't support subtitles or don't allow using custom subtitles

You can also use Penguin Subtitle Player to display subtitles on custom positions (like on the black bottom/top bands), or to display multiple subtitles in the same time (since the app can be launched multiple times), for video players or video streaming websites that don't support this by default.

Penguin Subtitle Player

The application, available for Linux, Windows and Mac OS X, displays a translucent window which is always on top so the subtitles are always displayed above the video, no matter the streaming website / player you use. This includes Flash and HTML5 videos.

Among Penguin Subtitle Player's features are support for over 700 encodings with auto encoding detection, drag and drop support, highly customizable layout (you can change the frame size, background color, opacity, font style) as well as time fine tuning (fast forward/backward with customizable time interval).

Here's Penguin Subtitle Player in action:

Penguin Subtitle Player

In the above screenshot you can see the Penguin Subtitle Player controls but don't worry, these are only displayed when you hove over the app. Also, the subtitle background can be made completely transparent:

Penguin Subtitle Player

There are a few things that still need to be implemented, like hotkeys support, but according to some bug reports, these are planned features and should be available soon.

Update: version 0.3.0 was released and it includes customizable text shadow (text outline) and font color and also, the app now remembers the window position and size.


Download Penguin Subtitle Player


Penguin Subtitle Player binaries for Linux (64bit only), Windows and Mac OS X can be downloaded from Sourceforge and its source code from GitHub.

Since the Penguin Subtitle Player developer only offers Linux 64bit binaries for download, I packaged the app and uploaded it to the main failsdownloads PPA, so it's available for both 32bit and 64bit for Ubuntu 14.04, 15.04 and 15.10 (as well as Linux Mint 17.x, etc.). To add the PPA and install Penguin Subtitle Player, use the following commands:
sudo add-apt-repository ppa:nilarimogard/failsdownloads
sudo apt-get update
sudo apt-get install penguin-subtitle-player
If you don't want to add the PPA, you can download the debs from HERE.

Arch Linux users can install Penguin Subtitle Player via AUR (latest git).

Report any bugs you may find @ GitHub.

Also see: Download Subtitles Via Nautilus / Nemo Context Menu With Periscope Or Subliminal
Read more »

Saturday, October 24, 2015

Multi-Platform youtube-dl GUI: YouTube dlG [Updated]

youtube-dl-gui

Youtube-dlG is a multi-platform GUI for the popular command line video download tool `youtube-dl`. The GUI lets you download multiple videos at once, can automatically convert downloaded videos to audio, lets you select the video quality and more.

youtube-dl is a command line video downloader which, despite what its name suggests, supports downloading videos from hundreds of websites, it can extract the audio automatically, supports downloading playlists, downloading and embedding subtitles into videos and much more.

Youtube-dlG features:
  • download videos from all websites supported by youtube-dl;
  • supports downloading multiple videos in the same time;
  • can automatically convert downloaded video to audio (with format and quality options);
  • supports Youtube DASH videos (it automatically downloads both audio and video and merges the two; optionally, it can remove the audio only and video only files)
  • lets you select the video format;
  • playlist options: you can enter the first and last video in the playlist you want to download as well as the maximum number of files to download from a playlist;
  • subtitles: can download all available subtitles, write subtitles to videos, lets you select the subtitles language;
  • options to write description to file, write thumbnails to disk, limit download speed and min/max file size, etc.;
  • supports settings the user agent, referrer, login to download video, proxy support;
  • automatically downloads youtube-dl and keeps it updated;
  • supports specifying command line arguments that are passed to youtube-dl.

Youtube-dlG (or youtube-dl-gui) doesn't offer access to all the youtube-dl features (there are so many, it's almost impossible - I'd say -, to fit them all into a single UI) but it does offer access to most basic features which should be enough for most users.

Here are a few more screenshots with some of the options available in Youtube-dlG:



youtube-dl-gui

youtube-dl-gui

By default, the videos are downloaded in your home folder but you can change that from the application options.

It's important to not that selecting "highest available" in the Youtube-dl-gui video options, the application will download the highest available video format that's not DASH, which usually means 720p. If you want to download 1080p Youtube videos, select "mp4 1080p(DASH)" and make sure to also select "DASH m4a audio 128k" under "Dash audio".


Install Youtube dlG (youtube-dl-gui) in Ubuntu


Youtube dlG (youtube-dl-gui) is available in the main failsdownloads PPA. To install it in Ubuntu, Linux Mint and other Ubuntu-based Linux distributions, use the following commands:
sudo add-apt-repository ppa:nilarimogard/failsdownloads
sudo apt-get update
sudo apt-get install youtube-dlg
If you don't want to add our PPA, you can download the deb from HERE and install it manually.

Once installed, launch "YouTube DL GUI" from the menu / Unity Dash.

Arch Linux users can install Youtube dlG via AUR.

To download the source code, Windows binaries, report bugs, etc., see the youtube-dl-gui GitHub page.
Read more »

Video Transcoder `HandBrake` 0.10.0 Released With Support For New Encoders

HandBrake, a free, open source video transcoder for Linux, Windows and Mac OS X, has been updated to version 0.10.0, getting support for new encoders, like H.265 and VP8, along other interesting changes.

HandBrake 0.10

For those who aren't familiar with HandBrake, here's a quick list of features:
  • for input sources, HandBrake supports most common multimedia files and any DVD or BluRay sources that do not contain any kind of copy protection;
  • supported outputs:
    • file containers: MP4 (M4V) and MKV;
    • video encoders: H.264 (x264), H.265 (x265) MPEG-4 and MPEG-2 (libav), VP8 (libvpx) and Theora (libtheora);
    • audio encoders: AAC,, MP3, Flac, AC3 and Vorbis;
  • device presets;
  • title / chapter selection;
  • chapter markers;
  • queue up multiple encoding jobs;
  • subtitles support (VobSub, Closed Captions CEA-608, SSA, SRT);
  • constant quality or average bitrate video encoding;
  • video filters: deinterlacing, decomb, denoise, detelecine, deblock, grayscale, cropping and scaling;
  • live video preview;
  • comes with graphical and command line interfaces.

Changes in HandBrake 0.10.0 include:
  • Libavformat is now used for muxing instead of mp4v2 and libmkv;
  • added FDK AAC encoder for Windows and Linux as a optional compile-time option;
  • added support for H.265 through x265 1.4 (this encoder is still early in it's development, so is missing many H.265 features and optimizations);
  • added VP8 encoder (using libvpx);
  • added Lanczos scaler, which is currently HandBrake's default;
  • added Bicubic (OpenCL) scaler - requires an AMD or Intel GPU supporting OpenCL 1.1 or later. On Linux, this is only available on the command line for now;
  • denoise: hqdn3d filter now accepts individual settings for both chroma channels (Cr, Cb);
  • denoise: new NlMeans filter which offers much higher quality denoising (though it is very slow);
  • added Windows Phone 8 preset;
  • updated libraries: x264 r2479-dd79a61, Libav v10.1 and libbluray 0.5.0;
  • the audio and subtitle controls have been overhauled to support default behaviors which can be stored in presets. This simplifies the workflow for many batch encoding scenarios;
  • Libfaac has been removed due to GPL compatibility issues, and replaced with the libav AAC encoder as the new default for Windows and Linux;
  • removed mcdeint deinterlace and decomb modes. This relied on the snow encoder in libav which has been was removed by upstream;
  • Linux only: automatic audio and subtitle track selection behaviors which can be stored per preset;
  • Linux only: improvements to Auto-Naming feature;
  • Linux only: Batch Add to queue by list selection;
  • Linux only: requires GTK3.

This release also includes some Windows-only new features, like Intel QuickSync video encode / decode support and experimental hardware decode support via DXVA.

For more information, see the official HandBrake 0.10.0 changelog.

Note that under Unity, the bottom HandBrake panes may use a dark background - this is a bug caused by Unity's overlay scrollbars and you can fix it by disabling the overlay scrollbars (for instance, using Unity Tweak Tool).


Download HandBrake


Download HandBrake

(binaries available for Mac OS X and Windows, or source code)

Ubuntu 14.10 and 14.04 / Linux Mint 17.1 and 17 (and derivatives) users can install the latest HandBrake by using its official PPA. Add the PPA and install HandBrake using the commands below:
sudo add-apt-repository ppa:stebbins/handbrake-releases
sudo apt-get update
sudo apt-get install handbrake-gtk

The last command above will install the HandBrake GTK3 GUI. If you want to install the command line version, use the following command (of course, after adding the PPA):
sudo apt-get install handbrake-cli

You may want to check out the HandBrake Guide.
Read more »

Tuesday, October 20, 2015

Pipelight Brings Widevine Support For Linux Web Browsers

Pipelight, a project that allows you to install Silverlight to any Linux browser that supports the Netscape Plugin API (Firefox, Chrome, Midori), allowing you to use video streaming websites such as Neflix, has been updated yesterday, getting Widevine support and Linux windowless mode.

Widevine firefox linux

For those not familiar with Pipelight, this is a WINE browser plugin that was initially created to allow you to access services that require Microsoft Silverlight such as Netflix, LOVEFiLM, Maxdome and more, using native Linux web browsers. The plugin has evolved and besides Silverlight, it now allows using the Windows Adobe Flash Player in Linux browsers and, with the new 0.2.4 release, it also adds Widevine support.

Widevine is a browser plugin designed for viewing premium video content, used by websites such as HBO Go, Cinemax and many others. It is currently fully supported only on Windows and Mac OS X. On Linux, Widevine is bundled with Chrome browser but it's not largely used by websites as it's only compatible with a single browser.

According to the Pipelight 0.2.4 release announcement:

"The plugin itself does not work standalone and instead just offers DRM capabilities to the normal Flash plugin. While the Widevine plugin itself does all DRM related stuff like key exchange and decryption, the rendering is still done by the normal Flash plugin. Pipelight allows you to combine Widevine with either Windows, Linux or Pepper Flash."

Another change in the latest Pipelight 0.2.4 is the addition of Linux Windowless mode support, required by some Qt based browsers or browsers which do not support overlaying of normal windows like the OpenGL based Steam browser. Currently it's not recommended to use this mode if it's not necessary because it doesn't use hardware acceleration on it's own.

To enable this mode either set PIPELIGHT_WINDOWLESSMODE=2 to enable it for all plugins (caution for plugins that always use 3d rendering!) or set linuxWindowlessMode = true in the according plugin config. To do this, copy the config file to your ~/.config folder, then open it with a text editor such as gedit:
cp /usr/share/pipelight/pipelight ~/.config/pipelight
gedit ~/.config/pipelight

Pipelight 0.2.4 also introduces various speed improvements for Silverlight, especially for slow systems that were not able to rach the full frame rate and more.

For how to install Pipelight, how to enable Widevine and so on, see our initial article: Pipelight: Use Silverlight In Your Linux Browser To Watch Netflix, Maxdome Videos And More

Read more »

Monday, October 19, 2015

Video Downloader `youtube-dl` Gets Support For Separate Audio And Video YouTube DASH Streams

YouTube uses Dynamic Adaptive Streaming over HTTP (DASH) for delivering videos and along with that, it serves the audio and video in two separate streams for some resolutions/formats. For instance, resolutions like 1080p and 480p are available only with separate audio and video streams.

youtube-dl, a popular command line tool for downloading videos from YouTube and other similar websites, was updated recently with proper support for DASH and separate audio and video streams: the tool can now automatically combine / merge / multiplex the audio and video formats offered by YouTube.

Here's an example via cynic.cc for downloading separate audio and video streams from YouTube and combining them automatically using youtube-dl (which uses ffmpeg or avconv under the hood):

"Now, if you want a 480p video in H.264 format, High profile, with 128kbps AAC audio (this used to be Youtube's format 35), you can specify format -f 135+140 on the command-line and it will download both the audio, the video and multiplex it with ffmpeg (or avconv, depending on what you have installed)."

And that's not all, a lot of other improvements and fixes are added daily to this command line download tool.

For instance, since our previous article about youtube-dl, the downloader received support for many websites, including: Vevo, 9gag, discovery.com, vk.com, southpark.de, myspace.com, vube.com, vesti.ru, stream.cz, ndr.de, onf.ca, Dropbox and so on, along with many fixes and improvements.

For those not familiar with youtube-dl, this command line video downloader not only supports hundreds of websites, but it can also extract the audio automatically, download playlists, download and embed subtitles into videos and more.


Install youtube-dl in Ubuntu


The latest youtube-dl 2014.02.17 is available in the Ubuntu 14.04 Trusty Tahr repository but it wasn't backported for older Ubuntu versions. Install it via Ubuntu Software Center or by using the following command:
sudo apt-get install youtube-dl

For older Ubuntu versions (though I also recommend it for Ubuntu 14.04), you can install youtube-dl by using the main failsdownloads PPA.

As a reminder, I update youtube-dl from the failsdownloads PPA a few times a week, so if YouTube or another website make changes that break it, run an update and it's very likely that a new youtube-dl version will be available, which fixes the issues.

To add the main failsdownloads PPA and install youtube-dl in Ubuntu and derivatives (Linux Mint, elementary OS and so on), use the following commands:
sudo add-apt-repository ppa:nilarimogard/failsdownloads
sudo apt-get update
sudo apt-get install youtube-dl

If you don't want to add our PPA, you can manually download the deb from the PPA by visiting THIS link.

For other Linux distributions, you'll find installation instructions HERE.


Using youtube-dl to download videos


To download a video, simply use the following command:
youtube-dl http://VIDEO_URL
where "VIDEO_URL" is the url of the video you want to download.

If you don't use any parameters, youtube-dl tries to download the best format. For YouTube, by default it downloads the best non-DASH format, which usually is 720p mp4 for YouTube.

So here's how to download 1080p YouTube videos using youtube-dl:


How to download 1080p YouTube videos using youtube-dl


1. Firstly, get a list of formats. I'll use a random video link as an example below:
youtube-dl -F http://www.youtube.com/watch?v=3JZ_D3ELwOQ

This will list all the available formats:
youtube-dl -F http://www.youtube.com/watch?v=3JZ_D3ELwOQ
[youtube] Setting language
[youtube] 3JZ_D3ELwOQ: Downloading webpage
[youtube] 3JZ_D3ELwOQ: Downloading video info webpage
[youtube] 3JZ_D3ELwOQ: Extracting video information
[info] Available formats for 3JZ_D3ELwOQ:
format code extension resolution note
171 webm audio only DASH webm audio , audio@ 48k (worst)
140 m4a audio only DASH audio , audio@128k
160 mp4 192p DASH video
133 mp4 240p DASH video
134 mp4 360p DASH video
135 mp4 480p DASH video
136 mp4 720p DASH video
137 mp4 1080p DASH video
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
22 mp4 1280x720 (best)
As you can see, for 1080p there's only a DASH video available (format 137) and two separate DASH audio files (formats 140 and 171).

2. To get the best video quality (1080p DASH - format "137") and best audio quality (DASH audio - format "140"), you must use the following command:
youtube-dl -f 137+140 http://www.youtube.com/watch?v=3JZ_D3ELwOQ
"-f 137+140" specifies the format: 137 (which means mp4 1080p as you can see above) for video and 140 (which means m4a audio@128k) for audio, as displayed by the command under step 1.

youtube-dl

To see all the available options (extract audio, choose a different video quality, download a video playlist and many many other options), type the following commands in a terminal: "man youtube-dl" or "youtube-dl -h".
Read more »

Sunday, October 18, 2015

Fresh Player Plugin Gets Hardware Accelerated Video Decoding Via VA-API And VDPAU

Fresh Player Plugin was updated recently with support for hardware accelerated video decoding via VA-API and VDPAU, along with video capture support (ALSA, JACK, PulseAudio) and other improvements.

Fresh Player Plugin is a wrapper that allows Linux users to use Pepper Flash from Google Chrome in Firefox and other NPAPI-compatible browsers. This is useful because the latest Flash Player is only available for Google Chrome (it comes bundled with it) on Linux, while other browsers, like Firefox, are stuck with an old Adobe Flash Player version (11.2).

Thanks to the new VA-API/VDPAU hardware accelerated video decoding available in the latest Fresh Player Plugin, Flash videos should use less CPU (because they'll be using the GPU).

Here's an example: with the same YouTube flash (you can use the HTML5 video player on YouTube, but this is for testing purposes) 1080p fullscreen video, I got a CPU usage of around 115% with Adobe Flash 11.2 without hardware accelerated video decoding and ~13% CPU usage using the latest Fresh Player plugin with accelerated video rendering (via VA-API) enabled:

Flash 11.2 (Firefox) without hardware acceleration

Fresh Player Plugin (with Flash 18 from Google Chrome, used in Firefox) with hardware accelerated video decoding enabled (VA-API)

Note that I edited the first screenshot: I manually added htop on top of the video (but what htop displays is real - it was running on my second monitor) because I couldn't get it to stay on top with Flash 11.2.

Fresh Player Plugin supports hardware accelerated video decoding via VA-API and VDPAU, under Ubuntu 15.04 and 14.10 only, because it requires a newer libav version, which is not available in the official Ubuntu 14.04 (and older) repositories. Also, this is disabled by default "due to possible whole system lock-ups on some hardware", so it might not work properly for everyone (but I didn't encounter any issues in my test).

To enable hardware accelerated video decoding via VA-API and VDPAU (Ubuntu 14.10 and 15.04 only), copy the example freshplayerplugin configuration file from /usr/share/doc/freshplayerplugin to ~/.config/ (and remove ".example" from the filename) - to do this, simply use the following command in a terminal:
cp /usr/share/doc/freshplayerplugin/freshwrapper.conf.example ~/.config/freshwrapper.conf

Then open ~/.config/freshwrapper.conf with a text editor, search for "enable_hwdec = 0" and change its value from "0" to "1". There are separate options for enabling/disabling VA-API and VDPAU too - look for "enable_vaapi" and "enable_vdpau" in the same file.

You'll also need to install the VA-API / VDPAU driver for this to work. For Intel graphics, you'll need to install the "i965-va-driver" package, for Nvidia you'll need "libvdpau1" and for AMD graphics (Catalyst older than 14.12) you'll have to install "xvba-va-driver" (XvBA-based backend for VA API - AMD fglrx implementation). And of course, you'll need the latest Fresh Player Plugin from GIT (available in the main failsdownloads PPA).

If you want to check if everything was configured properly, load a YouTube flash video, right click it, select "Stats for nerds" and the frame that shows up should say "accelerated video rendering, accelerated video decoding" (like in the second screenshot above).

Note that I only tested this with an Intel graphics card / VA-API (and Ubuntu 15.04).


Install Fresh Player Plugin


If you use Ubuntu / Linux Mint and derivatives, you can install Fresh Player Plugin by using the main failsdownloads PPA. For installation and configuration instruction, see: Install Fresh Player Plugin In Ubuntu Via PPA (Pepper Flash Wrapper For Firefox)

Arch Linux users can install the latest Fresh Player Plugin (Git) via AUR.

For other Linux distributions, you'll have to compile it from source.

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 »

Peerflix: Stream Torrents With VLC Or MPlayer Via Command Line

Peerflix is an experimental video streaming BitTorrent client for Node.js. The tool can be used to stream video torrents via command line and play the stream with your favorite video player, such as VLC or MPlayer.

Peerflix Ubuntu VLC

Peerflix supports supports setting the maximum number of connections, changing the port, loading subtitles and more.

The application even supports streaming torrents with multiple video files, although I'm not sure if the video files are played in order (if you try it, let us know in the comments).

Peerflix is actually what Popcorn Time uses under the hood, but you can use it separately so you can stream any video torrent and use any video player you want.


Install Peerflix in Ubuntu


Peerflix should work with most Linux distributions, but the instructions below are for Ubuntu only. For other Linux distributions, install Node.js, then install Peerflix using "npm install -g peerflix".

1. To install Peerflix in Ubuntu, firstly you'll have to add the Node.js PPA and install nodejs:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

2. Next, install Peerflix using the following command:
sudo npm install -g peerflix

Update -> Arch Linux users can install Peerflix via AUR: stable | git.


Optional: Firefox integration (via Pinguy)


Pinguy shared some tweaks for integrating Firefox with Peerflix for both regular torrents and magnet links. Using these tweaks, you'll be able to open torrent files and magnet links from Firefox with Peerflix and directly play them with VLC.

Below you can watch a quick video I recorded a few minutes ago, demoing Peerflix (with VLC) streaming torrents directly from Firefox:


(direct video link)


To set up these tweaks, use the instructions below (requires VLC).

Setting this in Chrome is more complicated, here's an example.

1. Firstly, install vlc, xterm, python-libtorrent and wget:
sudo apt-get install vlc xterm python-libtorrent wget

2. To be able to open torrent files from Firefox and play them with VLC via Peerflix, use the commands below:
wget https://raw.github.com/hotice/failsdownloads/master/Torrent-Video-Player -O /tmp/Torrent-Video-Player
sudo install /tmp/Torrent-Video-Player /usr/local/bin/
Then, open your web browser and click a video torrent. When it asks what app to use, select Other and browse for /usr/local/bin/Torrent-Video-Player

3. For Magnet Links support, use the commands below:
wget https://raw.github.com/danfolkes/Magnet2Torrent/master/Magnet_To_Torrent2.py -O /tmp/Magnet_To_Torrent2.py
sudo install /tmp/Magnet_To_Torrent2.py /usr/local/bin/
wget https://raw.github.com/hotice/failsdownloads/master/Magnet-Video-Player -O /tmp/Magnet-Video-Player
sudo install /tmp/Magnet-Video-Player /usr/local/bin/
And just like above, open Firefox, click a magnet link, select Other and browser for /usr/local/bin/Magnet-Video-Player


Using Peerflix


Using the extra tweaks above, you basically don't have to do anything else. But if you want to use Peerflix manually (for instance, to use your favourite video player), here's a quick guide.

To stream a torrent with Peerflix and play it with VLC, use the following command:
peerflix http://some-torrent/movie.torrent --vlc
(replacing "some-torrent/movie.torrent with the link to a video torrent file)

Example:
peerflix http://download.stefan.ubbink.org/ToS/tears_of_steel_1080p.webm.torrent --vlc

To automatically play the video in MPlayer instead of VLC, use the following command:
peerflix http://some-torrent/movie.torrent --mplayer

If you don't want to use VLC or MPlayer, simply don't append "--vlc" or "--mplayer" to the Peerflix command. Example:
peerflix http://download.stefan.ubbink.org/ToS/tears_of_steel_1080p.webm.torrent

Peerflix

Then open some video player like Totem for instance, select to open location and enter the location displayed by Peerflix ("http://192.168.1.6:8888/" in my case - see screenshot above).

It's also worth mentioning that you don't have to use a torrent link - you can use Peerflix with a locally saved torrent file too:
peerflix somevideo.torrent

Peerflix also supports setting the maximum number of connections, changing the port, loading subtitles and more. Here's the complete list of options:
$ peerflix --help
Usage: peerflix torrent_file_or_url [options]

Options:
-c, --connections max connected peers [default: 100]
-p, --port change the http port [default: 8888]
-i, --index changed streamed file (index)
-t, --subtitles load subtitles file
-q, --quiet be quiet
-v, --vlc autoplay in vlc*
-m, --mplayer autoplay in mplayer**
-o, --omx autoplay in omx**
-j, --jack autoplay in omx** using the audio jack
--clean remove the tmp buffer file after peerflix closes
--path change buffer file path

*Autoplay can take several seconds to start since it needs to wait
for the first piece
*OMX player is the default Raspbian video player
Read more »

Tuesday, October 6, 2015

Make VLC Automatically Save / Restore Playback Position With Srpos Plugin

VLC is a great media player but it lacks a minor, yet pretty important feature, some would say: an option to resume playback from where you left off.

However, VLC supports plugins and there is one called Srpos (available for Linux and Windows) which does just that: it allows VLC to automatically save the playback position when you close the player and to automatically start playing from the same position when you replay the file.

To avoid confusion, let me clarify this: Srpos automatically saves / restores the last played position, unlike some other extensions out there such as Remember Position, which requires you to click a button to save/restore the last played position.


Install Srpos VLC plugin in Ubuntu


Ubuntu 14.04 and 14.10 (as well as Linux Mint 17 and derivatives) users can install the Srpos VLC plugin by using Sam Rog's PPA. To add the PPA and install the plugin, use the following commands:
sudo add-apt-repository ppa:samrog131/ppa
sudo apt-get update
sudo apt-get install vlc-srpos-plugin
If you don't want to add the PPA, you can download the Srpos VLC plugin deb from HERE.

Unfortunately the latest Srpos plugin doesn't seem to work with VLC versions older than 2.1 (it didn't build successfully for me with VLC 2.0.8), despite the fact that its homepage says it should work with 2.0 and 2.1, that's why there aren't any packages for older Ubuntu versions (Ubuntu versions older than 14.04 have vlc 2.0.x). However, if you're using an old Ubuntu version but have installed VLC 2.1.x from some PPA, follow the instructions from HERE to build Srpos.

For other Linux distributions and Windows, see the VLC srpos plugin homepage for installation instructions.


How to enable the Srpos VLC Plugin


Once you install Srpos, open VLC (close it if it was started when you installed the plugin) and from its menu select Tools > Preferences, then in the bottom left corner under "Show settings" select "All", scroll down to "Interface" on the left, click "Control interfaces" and enable "Save/restore position of last player files". Here's a screenshot with these steps:

VLC preferences remember playback position

Once you've enabled this option, restart VLC. That's it!
Read more »

Transmageddon 1.0, Snappy Player 1.0 Available In PPA [Ubuntu 14.04]

Quick update for Ubuntu 14.04 users: Transmageddon 1.0 and Snappy 1.0, both released recently, are available in the main failsdownloads PPA.


Transmageddon 1.0 (video transcoder and now, DVD ripper)

Transmageddon 1.0

Transmageddon is a video transcoder for Linux which uses GStreamer. The latest 1.0 release comes with changes such as:
  • support files with multiple audio streams, allowing you to transcode them to different codecs or drop them from the new file;
  • DVD ripping support. So know you can use your movie DVDs as input in Transmageddon, be aware though that you need to install things like lsdvd and the GStreamer dvdread plugin from gst-plugins-ugly for it to become available. And you probably also want libdvdcss installed to be able to transcode most movie DVDs;
  • another small feature of the release is that you can now set language information on files with one audio stream inside. If you rip a DVD with multiple audio streams, Transmageddon will preserve the existing audio information, so in that case you shouldn’t need to set the language metadata manually;
  • VP9 support.

Unfortunately Transmageddon 1.0 didn't work properly in Ubuntu versions older than 14.04, that's why it's available in the main failsdownloads PPA for Ubuntu 14.04 only. Add the PPA and install it using the following commands:
sudo add-apt-repository ppa:nilarimogard/failsdownloads
sudo apt-get update
sudo apt-get install transmageddon
Or download the deb from HERE and install it manually.

To be able to rip DVDs (not tested!) using Transmageddon, you'll need to make sure that lsdvd, libdvdread4 and gstreamer1.0-plugins-ugly are installed (and install libdvdcss2 via libdvdread4):
sudo apt-get install lsdvd libdvdread4 gstreamer1.0-plugins-ugly
sudo /usr/share/doc/libdvdread4/install-css.sh


Snappy 1.0 (media player)


Snappy Player

Snappy is a GStreamer-based open source media player which comes with a minimalistic Clutter interface. The player features:
  • subtitles support;
  • video and audio synchronization tweeking;
  • multi-screen full-screen;
  • media queues;
  • history of played media;
  • seeking/muting/cycling through languages (audio streams);
  • frame stepping;
  • more.

However, there are no preferences/options at all so some of its features can only be controlled via command line.

Snappy 1.0 is available in the main failsdownloads PPA for Ubuntu 14.04 and 13.10 only (for older Ubuntu versions it requires newer dependencies). Add the PPA and install it using the following commands:
sudo add-apt-repository ppa:nilarimogard/failsdownloads
sudo apt-get update
sudo apt-get install snappy
Alternatively, you can also download the deb file from HERE and install it manually.
Read more »

Screencasting App `Simple Screen Recorder` 0.3.0 Adds Profile Support, New OpenGL Recording System And Lots More

Simple Screen Recorder (SSR), a Qt desktop recorder for Linux, was updated to version 0.3.0 today, bringing profile support, a new, more flexible OpenGL recording system, native support for mono microphones and other interesting changes.

The tool comes with basically all the features you need in a screencast app: record the entire screen (with multi-monitor support), record a fixed rectangle, follow the cursor, record OpenGL applications (which can be used to record games), record audio input (PulseAudio, JACK and ALSA), options to scale the video, to record (or not) the cursor, to pause/resume the recording and so on. It even has experimental live streaming support.

Simple Screen Recorder can record your screen using any container (MP4, MKV, OGG, WebM and so on) and audio/video codec (H.264, VP8, Theora for videos and Vorbis, mp3, AAC, etc. for audio) supported by libav, with configurable bit rate, etc.

For more information on Simple Screen Recorder, check out our initial article about it: SimpleScreenRecorder: Powerful Screen Recording Software For Linux

Changes in the latest Simple Screen Recorder 0.3.0:
  • added profile support;
  • new, more flexible OpenGL recording system (glinject-next branch merged);
  • more robust sound notifications;
  • show progress dialog while flushing the encoders;
  • improved hotkey support using XInput2;
  • improved synchronizer;
  • native support for mono microphones (plughw no longer needed);
  • added source detection for ALSA;
  • partially rewritten output backend;
  • improved mouse following algorithm;
  • new icon;
  • bugfixes.

Here are a few screenshots with the latest Simple Screen Recorder 0.3.0:

Simple Screen Recorder

Simple Screen Recorder

Simple Screen Recorder


Below you can watch a quick Simple Screen Recorder demo video recorded using... the tool itself (the video is old, but it should be enough to get an idea on what the app can do and to checkout the quality of the screencasts recorded using this tool):


(direct video link)

For more screencasts created using Simple Screen Recorder, check out the latest videos from the failsdownloads YouTube channel - I've been using Simple Screen Recorder to record the failsdownloads screencasts for about a year now.


Install Simple Screen Recorder in Ubuntu / Linux Mint


Ubuntu / Linux Mint (and derivatives) users can install Simple Screen Recorder by using its official PPA. To add the PPA and install the application, use the following commands:
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder

For H.264 support, you'll need to install some extra packages:
sudo apt-get install libavcodec-extra-* libavformat-extra-*
Ubuntu 64bit: if you want to record 32bit games, make sure you also install simplescreenrecorder-lib:i386:
sudo apt-get install simplescreenrecorder-lib:i386

For other Linux distributions, see the instructions available on the Simple Screen Recorder homepage.

If you encounter bugs, report them @ GitHub.
Read more »