FAQ > OS > HOW TO > VIDEO


VIDEO STREAMING

To receive all kinds of video streaming; you'll likely need the Hardware Abstraction Layer (HAL), DRM, Flash and the Google Chrome web browser.


Restricted Extras

RESTRICTED EXTRAS installs various non-free codecs and plug-ins including ffmpeg, Flash 11.2.xx, fluendo-mp3, gstreamer, libdvdread4 and Microsoft fonts.

Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get install lubuntu-restricted-extras -y[Enter]

EULA for Microsoft fonts: Hit [Tab] to select <OK>, [Enter] to "press" <OK>, left arrow to select <Yes> and [Enter] to "press" <Yes>.



Install HAL

INSTALL HAL
DRM-protected Flash Video will need HAL; the Hardware Abstraction Layer. To install HAL: go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T). Type (or copy and paste):

sudo add-apt-repository ppa:mjblenner/ppa-hal -y
sudo apt-get update && sudo apt-get install hal libhal1 -y




HTML5 DRM

HTML5 DRM
DRM-protected HTML5 audio and video can be enabled in Firefox by going to the Content menu in Firefox (Menu --> Preferences --> Content) and clicking the DRM check box.

DVD MOVIES
If your computer has a DVD drive and the Restricted Extras package was already installed; add libdvdread4 to play DVD movies:

Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T).
Type (or copy and paste): sudo apt-get install libdvd-pkg -y [Enter]. In the pop-up dialogue box press [Enter] to select <OK>, then press [Enter] again to select <Yes> to enable auto-upgrades. Back in LXTerminal, type: sudo dpkg-reconfigure libdvd-pkg [Enter]. In the next dialogue box, hit [Enter] to select <Yes> to download, build, and install libdvdcss2.



 Pepper Flash for Firefox


INSTALL FLASH (32-bit Computers)
The last official Adobe Flash web browser plug-in for 32-bit Linux systems is included with Restricted Extras. But, in case you want to install Flash separately;
Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get install flashplugin-installer -y[Enter]

INSTALL PEPPERFLASH (64-bit Computers)
Pepper Flash
offers 64-bit system users the most updated version of Flash and J Fernyhough's PPA downloads and installs Pepper Flash for you. The addition of the Fresh Player Plugin allows Pepper Flash to work with Firefox
.

If you previously installed the PepperFlashPlayer via the PPA from nilarimogard, you should remove it. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type:
sudo apt-get remove pepperflashplugin-nonfree
sudo apt-get remove freshplayerplugin
sudo apt-add-repository --remove ppa:nilarimogard/webupd8

1. Remove any Adobe Flash you may have already installed (like the 32-bit version you'd get with Lubuntu Restricted Extras):
Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get remove flashplugin-installer[Enter]
sudo apt-get remove adobe-flashplugin[Enter]
2. Install the Fresh Player Plugin:
Type (or copy and paste):
sudo add-apt-repository ppa:jonathonf/pepperflashplugin-nonfree[Enter]
sudo apt-get update[Enter]
sudo apt install pepperflashplugin-nonfree[Enter]
3. Install the Pepper Flash Player:
Type (or copy and paste):
sudo apt install browser-plugin-freshplayer-pepperflash[Enter]

When Flash is updated, you must update it on your system yourself:

sudo update-pepperflashplugin-nonfree --install[Enter]


fonts

Some free and non-free fonts Flash may use:

Type (or copy and paste):
sudo apt-get install ttf-dejavu ttf-xfree86-nonfree -y[Enter]
Microsoft fonts may be installed separately if Lubuntu Restricted Extras wasn't
Type (or copy and paste):
sudo apt-get install ttf-mscorefonts-installer -y[Enter]

EULA for Microsoft fonts: Hit [Tab] to select <OK>, [Enter] to "press" <OK>, left arrow to select <Yes> and [Enter] to "press" <Yes>.


Flash (SWF) Games

Local SWF Files: Flash video and game SWF files play from your own computer via Gnash. Freely download SWF files from sites like 1000 Web Games, BigDino, Christian Flash Movies, E-Water, Fast Games, Flash Games for Your Website, Flash Physics, Free Christian Graphics, Geology Animations and KScience

Note: SWF files can't have spaces in them; so, rename any that do with dashes or underscores. Right-click --> Rename...

Mozilla Firefox

If an SWF file won't play in Gnash, make a local webpage for it. Right-click an empty space and choose Create New... Empty File. Name the file The-Video-or-Game.html and click "OK." Open the file you created in Leafpad, copy and paste the following template into it and save.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>The SWF</title>
</head>
<body>
<center>
<h1>The SWF</h1>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="600" height="400">
<param name="movie" value="The-Game-or-Video.swf">
<param name="quality" value="high">
<embed src="The-Game-or-Video.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="600" height="400">
</object>
</center>
</body>
</html>

The only things in the above template you'll need to change are the name, the file name (The-Game-or-Video.swf) and the size (600x400). All these are repeated twice and everything is in quotes. The name is between <title> and </title> and between <h1> and </h1>. The file name is after <param name="movie" value= and after embed src=. The size is after both instances of width= and height=


Play SWF Locally

Note: To find the size of the SWF file, open it in Gnash and (even if it looks horrible, is completely black, freezes immediately, or scrolls through scenes in rapid succession) go to File --> Properties. Then click the first triangle next to Stage Properties. The size is the Real dimensions and/or Rendered dimensions.

Stage Properties

To play, simply double-click the resulting .html page to open in Firefox. Combine with tips in our Shortcuts section to organize.


Top