Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old September 1st, 2007   #1
ariel
Way Too Much Ubuntu
 
ariel's Avatar
 
Join Date: Jul 2005
Beans: 315
Lightbulb mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-howto

[Updated for Hardy]

After a long time using the feature-less VLC-Plugin, and messing things up with the MediaPlayerConnectivity plugin to open lots of stand-alone VLC windows every time I wanted to watch BBC or CBC News videos, I finally got the Mplayer plugin to work fine and play all those embedded videos with no stuttering or annoyances.

Hardy Heron (8.04) (for previous versions, scroll to the bottom of this post)

While Stage6 does not exist anymore, the daily BBC News Videos are still a challenge for Ubuntu. Out of the box, Hardy cannot play them. Even after installing hardy's restricted codecs (which we will do below), they do not work past the BBC corporate announcement, and even that takes about half a minute to start playing back.

We will fix the problem by reconfiguring Firefox to use the Mplayer plugin, installing the restricted codecs (to ensure windows media plays) and later installing the Real Video codecs from the Medibuntu repo. Finally, we will set the BBC News site preferences to stream Real Video. The end result will be: BBC news video play nicely and start very fast, plus all other sites to windows media or flash streaming work fine as well.


First part: the mplayer plugin and the basic codecs
  1. Close your Firefox
  2. Remove the plugins you will no longer be using:
    Code:
    sudo apt-get remove totem-mozilla mozilla-plugin-vlc
  3. Install the awesome mplayer plugin:
    Code:
    sudo apt-get install mozilla-mplayer
  4. Now let's install all the mp3, wm codecs, adobe flash player and some other useful stuff, all this from the official "universe" repository
    (note: if you don't know what I am talking about, open your Synaptics package manager, go to Settings > Repositories, and ensure that the lines that contain "(universe)" and "(multiverse)" are checked; if have to check them, ensure that after clossing the settings window, you click on "Reload" in Synaptics main window)
    Code:
    sudo apt-get install ubuntu-restricted-extras

Second part: real video codecs
For this, we will use the medibuntu repository. We will add to the repo list, and then import their keys.
  1. Edit /etc/apt/sources.list
    Code:
    sudo gedit /etc/apt/sources.list
  2. Append the following lines to it:
    Code:
    ## Medibuntu - Ubuntu 8.04 "hardy"
    deb  http://packages.medibuntu.org/ hardy free non-free
  3. Import medibuntu's key and update the local package list
    Code:
    wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
  4. Now install the codec we need:
    Code:
    sudo apt-get install non-free-codecs

Third part: setting up BBC News site preferences
  1. Launch firefox and navigate to the BBC News site: http://news.bbc.co.uk/
  2. Click on one of the [watch] buttons of the daily news videos they happen to be offering
  3. In the new window that will pop up, you will notice a "Preferences" link; click on it
  4. This will show you the preferences; select "High Quality" on the left column, and "Real Media" on the right column; click OK; configuration will be stored persistently in your system
  5. The video should start playing right away!

Optional
: extra tweakings for the mplayer plugin
Some extra settings you can play with to improve the user experience
  • While playing an streaming video in firefox (e.g., any of the BBC ones), right click on the video, then select "Configure"; for your reference, my settings here are:
    • Video Output = xv
    • Audio Output = alsa ## also works with "pulse", if you have pulseaudio set up
    • Minimum Cache Size = 191
    • Percent of Media to Cache = 2
    • All "Enable xyz" settings are checked
    • Connect RTSP over TCP: un-checked (although I've read elsewhere that some sites may require this)
  • For more options, you can open the mozilla-mplayer plugin configuration file directly:
    Code:
    sudo gedit /etc/mplayerplug-in.conf
    Here, I set the following extra options:
    showlogo=0
    black-background=1

That's all, hope this helps reduce the "video streaming woes and frustration" with ubuntu.




Feisty and Edgy (7.04, 7.10) (Not updated; left here for reference purposes only)

The following is for Feisty but I guess it works in other versions and distros as well.

It was (way!) simple. My original problem with mozilla-mplayer was that it simple kept "stuttering" with BBC and CBC streaming videos.

Here's how to install it and configure it, and with the same stone, get embedded Div-X streaming videos from stage6.divx.com to work stunningly well. And also get your plugin to look good...
  1. Close your Firefox
  2. Remove the plugins you will no longer be using:
    Code:
    sudo apt-get remove totem-mozilla mozilla-plugin-vlc
  3. Install the awesome mplayer plugin:
    Code:
    sudo apt-get install mozilla-mplayer
  4. Feisty (7.04) Users: Add these symlinks that enable the plugin to handle Stage6's DIVXs (7.10 users: the symlinks should already be there if you did a fresh install; if not, just add them)

    Code:
    sudo ln -s /usr/lib/mozilla/plugins/mplayerplug-in-dvx.so /usr/lib/firefox/plugins/mplayerplug-in-dvx.so
    Code:
    sudo ln -s /usr/lib/mozilla/plugins/mplayerplug-in-dvx.xpt /usr/lib/firefox/plugins/mplayerplug-in-dvx.xpt
  5. Configure the plugin to with approriate Buffer / Cache size; this fixes the BBC / CBC windows media stream stuttering

    Open the config file:

    Code:
    sudo gedit /etc/mplayerplug-in.conf
    Add the following lines in the file: (this works great in my system; you might have to do some tuning of the cachesize and cache-percent)

    cachesize=1000
    cache-percent=30
    download=0
    showlogo=0
    black-background=1
  6. Start your browser, check your new setup in www.cbc.ca and Stage6
  7. Enjoy!!
Note: You might need to setup the BBC News site to stream windows media to you, instead of RealMedia; you can do this easily, after the above setup is completed:
  • Go to: http://news.bbc.co.uk/
  • Open a video (for example, the 1-minute day news headlines)
  • In the new window, you will notice a "Preferences" link; click on it
  • This will open a window that will let you choose "Windows Media" instead of Real Media; select it, and close; configuration will be stored persistently in your system

Last edited by ariel; March 23rd, 2008 at 08:15 PM..
ariel is offline   Reply With Quote
Old September 4th, 2007   #2
anthortic
First Cup of Ubuntu
 
anthortic's Avatar
 
Join Date: May 2007
Beans: 10
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

that mini guide worked well, thanks
anthortic is offline   Reply With Quote
Old September 4th, 2007   #3
chrome307
Quad Shot of Ubuntu
 
chrome307's Avatar
 
Join Date: Feb 2007
Location: London - UK
Beans: 398
Ubuntu 7.04 Feisty Fawn
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

The BBC site worked for me great, but had problems with playback from the Canadian site .......... not sure why .... only available to Canadian IP addresses ??

The DivX 6 playback worked great here

Code:
http://stage6.divx.com/TV-Jungle-Music-Videos/video/1110653/Blondie---Heart-of-Glass-
__________________
A Fool and His Money Are Soon Partying!!

Last edited by chrome307; September 4th, 2007 at 08:24 PM..
chrome307 is offline   Reply With Quote
Old September 4th, 2007   #4
ariel
Way Too Much Ubuntu
 
ariel's Avatar
 
Join Date: Jul 2005
Beans: 315
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

Quote:
Originally Posted by chrome307 View Post
The BBC site worked for me great, but had problems with playback from the Canadian site .......... not sure why .... only available to Canadian IP addresses ??

The DivX 6 playback worked great here

Code:
http://stage6.divx.com/TV-Jungle-Music-Videos/video/1110653/Blondie---Heart-of-Glass-
Possibly! Some video content in the local BBC channels seems to be blocked as well. BBC World has always worked fine for me though
ariel is offline   Reply With Quote
Old October 21st, 2007   #5
indrajeetak
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 8
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

Quote:
Originally Posted by chrome307 View Post
The BBC site worked for me great, but had problems with playback from the Canadian site .......... not sure why .... only available to Canadian IP addresses ??

The DivX 6 playback worked great here

Code:
http://stage6.divx.com/TV-Jungle-Music-Videos/video/1110653/Blondie---Heart-of-Glass-
The BBC site worked great for me too. However, when I played the Blondie video on stage6, it plays smoothly for a few seconds and then starts buffering as shown below.

When buffering reaches 100%, the screen goes all white.

Does anyone have any idea? Thanks for your time....
indrajeetak is offline   Reply With Quote
Old September 10th, 2007   #6
mithranruin
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 2
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

I have had real problems with BBC streaming video until finding your solution - which worked 'out of the box' - Thankyou

As a newbie to Ubuntu (a refugee from the big 'M'), can anyone tell me :

- what each of the settings in the mplayerplug-in.conf file alters and which are important
- I presume the # needs to be removed from the beginning of each line

Whilst the solution works, a couple of questions please:

1) in my display the video is 'squashed' into the top 2/3rds of the display area - and no changes to the .conf settings seems to alter this (normal/expected?)

2) the video plays well and steady but still seems a little 'blocky' (normal/expected?)

Gratefully
mithranruin
mithranruin is offline   Reply With Quote
Old September 13th, 2007   #7
ariel
Way Too Much Ubuntu
 
ariel's Avatar
 
Join Date: Jul 2005
Beans: 315
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

Hey there,

you can find an explanation of the plugin config options here:

http://mplayerplug-in.sourceforge.net/config.php

You should normally leave the "#" you found in your original config file as they are. "#" means "commented out", which means that the configuration line will be taken as a comment, and not processed.

In my system, the "1/3" problem you mention only shows up when going back to normal size after maximizing to full screen

I don't seem to see any 'blockiness' with mplayer. It seem to play exactly the same as stand alone vlc.


Quote:
Originally Posted by mithranruin View Post
I have had real problems with BBC streaming video until finding your solution - which worked 'out of the box' - Thankyou

As a newbie to Ubuntu (a refugee from the big 'M'), can anyone tell me :

- what each of the settings in the mplayerplug-in.conf file alters and which are important
- I presume the # needs to be removed from the beginning of each line

Whilst the solution works, a couple of questions please:

1) in my display the video is 'squashed' into the top 2/3rds of the display area - and no changes to the .conf settings seems to alter this (normal/expected?)

2) the video plays well and steady but still seems a little 'blocky' (normal/expected?)

Gratefully
mithranruin
ariel is offline   Reply With Quote
Old September 19th, 2007   #8
stolid_agnostic
Spilled the Beans
 
Join Date: Aug 2007
Beans: 14
Talking Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

this worked absolutely perfectly!!! thanks so much!
stolid_agnostic is offline   Reply With Quote
Old September 24th, 2007   #9
andrew.46
Still having fun...
 
andrew.46's Avatar
 
Join Date: Dec 2006
Beans: 3,007
Ubuntu 9.10 Karmic Koala
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

Hi,

You are an absolute legend! It all worked perfectly for me and complements my brand new svn mplayer:

http://ubuntuforums.org/showthread.php?t=558538

Is there much new in the newest mplayer plugin released a month or so ago?

Thank you very much for this!

Andrew
__________________
Do you think that's air you're breathing?
andrew.46 is offline   Reply With Quote
Old September 26th, 2007   #10
ariel
Way Too Much Ubuntu
 
ariel's Avatar
 
Join Date: Jul 2005
Beans: 315
Re: mozilla-mplayer plugin for firefox: BBC, CBC and Stage6 streaming videos micro-h

@Andrew: you are welcome!

On the new release of mplayerplug-in available in sourceforge: I couldn't help but download it / compile it / install it a few weeks ago. It sort of works but had a few quirks:
- After playing at full screen for a while, suddenly the browser window un-full-screened itself, on its own. big annoyance
- the new version showed a speaker icon, but in my system it was not operational.
- CBC videos behaved weirdly.

In summary: I had to roll back to Feisty's default plugin package.
ariel is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry