You are not logged in.

#1 2008-09-04 02:36:31

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

MPlayer packages for Ubuntu Hardy and Intrepid

Introduction: one of the problems that a Ubuntu user may find when using SMPlayer is that not all options in the application work. This is because the version of MPlayer in Ubuntu is quite old (1.0rc2 is almost a year old). For that reason I built updated packages for MPlayer. I have also added some patches to MPlayer, so it can work better with SMPlayer.

While these packages are intented to be used with SMPlayer, of course they can also be used alone. No need to install or use SMPlayer. Indeed I had care MPlayer would work "out of the box".

The mplayer package includes a configuration file (/etc/mplayer/mplayer.conf) which will make mplayer to try to use xv and alsa as default.

These are the main differences you'll find when used along with SMPlayer (compared to mplayer 1.0rc2):

* the option to change the playback speed without altering the pitch will work (thanks to the new scaletempo filter)
* the option to change the volume just before start to play will work too (thanks to the startupvol patch)
* the audio equalizer will work as everybody would expect, when you move the controls you'll notice the change in the audio immediately, no need to click on the "Apply" button. (Thanks to the patcheq patch).
* the options to change the size of the subtitles (in the Subtitles menu) will work better.
* selection of subtitles works better now. Previously under some circumstances, it was possible that the selected subtitle in the SMPlayer menu and the subtitle actually selected by MPlayer may not match.
* you can use "gl:yuv=2:force-pbo:ati-hack" as video output, which is as fast as xv. Also gl (without options) is faster than before.

For the ones interested in MPlayer only, these are the changes since 1.0rc2 (copied from the mplayer changelog):

rc3:
    Decoders:
    * Nellymoser audio decoding via lavc
    * support for X8 frame (fixes "J-type picture is not supported" for WMV2)
    * support for DTS WAV/DTS-CD passthrough by ad_hwac3
    * Apple's raw YUV2 in MOV
    * LATM over LOAS AAC decoding via internal libfaad2
    * video game codecs: BFI video, Playstation MDEC video, ADPCM XA audio,
      EA Maxis XA ADPCM audio, RL2 video, Beam Software SIFF video, V.Flash PTX video
    * AVOption support for libavcodec-based decoders
    * image decoders: Sun rasterfile, PCX image
    * MLP decoder via lavc
    * use lavc ADPCM codecs by default

    Demuxers:
    * -lavfdopts cryptokey allows decrypting MXF and ASF files
    * support for wavpack in Matroska
    * demux_lavf permits program switching
    * AVOption support for lavf demuxing
    * prefer lavf musepack demuxer over libmpdemux
    * prefer lavf MOV demuxer over libmpdemux
    * support -slang in lavf demuxer
    * support nosound switching in lavf demuxer
    * support libass in lavf demuxer
    * support VOBsub in lavf demuxer
    * support MOV subtitle format
    * support for attachments in lavf demuxer
    * support for chapters in lavf demuxer
    * FLAC speedup in lavf demuxer

    Filters:
    * vf_ow new overcomplete wavelet denoiser
    * change vf_screenshot dependency from libpng to lavc
    * add af_scaletempo which maintains audio pitch when changing playback speed
    * fix multi-channel reordering

    Streaming:
    * tv:// support for Windows
    * fix teletext on some systems
    * DVD streams can switch angles
    * DVD still menus are now supported via dvdnav://
    * allow specifying the TV standard for each channel

    FFmpeg/libavcodec:
    * DNxHD (SMPTE VC-3) encoder
    * H.264 speedup and PAFF decoding
    * correctly decode more of the H.264 conformance testsuite
    * Nellymoser audio codec
    * VC-1/WMV3 MMX optimizations
    * VP3 decoder speedup
    * Split-Radix FFT (speedup multiple audio codecs)
    * MMX/SSE/ARM and other misc speedups

    libmpeg2:
    * enable Alpha/ARM optimizations in libmpeg2
    * SSE2-optimized IDCT routines from upstream libmpeg2

    Drivers:
    * replace PolypAudio by PulseAudio (-ao pulse)
    * add force-pbo suboption for faster output in vo_gl
    * add Nintendo Wii/GameCube video driver (-vo wii)
    * VIDIX driver for SuperH Mobile VEU hardware block.
    * support -border on vo_gl/gl2 in x11

    MEncoder:
    * check for system-wide configuration file in MEncoder
    * AVOption support for lavc encoders
    * AVOption support for lavf muxers

    Others:
    * many compiler warning fixes
    * basic support for Closed Captioning roll-up mode
    * reworked screensaver disabling support, most users will need to use
      -heartbeat-cmd due to screensaver authors failing to design a common API
    * grayscale decoding/encoding with FFmpeg disabled where it slowed down
      the color case
    * Linux AppleIR remote support
    * add options to disable some or all configuration files
    * support for DOS-style file:///x:/path paths
    * some new slave commands (check DOCS/tech/slave.txt)
    * misc fixes to libass
    * libdvdcss updated to 1.2.10, now same as upstream version

    Ports:
    * small crash with vo_macosx fixed
    * AC3/DTS passthrough for ao_macosx
    * fix frozen OSD on Mac OS X
    * vo_gl now works with -wid and nVidia drivers on Windows (this is a hack)
    * VIDIX on SuperH.
    * workarounds for AltiVec on Apple gcc 3.3 on Mac OS X dropped

mencoder has also been patched to support the -ass option, so for instance you can use it to convert a mkv video to avi with embedded subtitles on the image which will look like exactly the same as when played with mplayer.

Patches used:
* patcheq.diff (adds a new slave command to change the audio equalizer at runtime)
* ass_support_for_mencoder_with_embeddedfonts.patch  (adds support for -ass in mencoder)

Apt repositories:
Packages for both hardy and intrepid, available at:
https://launchpad.net/~rvm/+archive/ppa
or
https://launchpad.net/~rvm4000/+archive/ppa (experimental packages)

Lines for /etc/apt/sources.list:

Hardy:
deb http://ppa.launchpad.net/rvm/ppa/ubuntu hardy main

Intrepid:
deb http://ppa.launchpad.net/rvm/ppa/ubuntu intrepid main

Last edited by rvm (2008-11-30 19:12:09)


RVM

Offline

#2 2008-09-07 10:35:42

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

The following document will explain how to build the above package, in case you prefer to compile mplayer yourself.

First let's install Subversion and other packages we're going to need:

Code:

sudo apt-get install subversion devscripts fakeroot

These other packages are necessary to create the html documentation:

Code:

sudo apt-get install docbook-xml docbook-xsl xsltproc libxml2-utils

Now we create a directory to save the mplayer sources:

Code:

mkdir mplayer
cd mplayer

Download the mplayer sources from svn:

Code:

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk svn

Now we're going to download the patches we'll use later:

Code:

wget http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches-ubuntu/debian.diff

Now we download and install all build dependencies for mplayer (this may take a while, it may download up to 37 MB):

Code:

cd svn
sudo apt-get build-dep mplayer

Now we're going to patch the mplayer sources (be sure you're in the svn directory):

Code:

patch -p0 -E -i ../debian.diff

(that patch actually includes all patches)

Now we're ready to start to compile. But first, let's give the script create_deb.sh executable permissions:

Code:

chmod 755 create_deb.sh

Finally, let's compile mplayer:

Code:

./create_deb.sh

That'll take some minutes, depending on your processor's speed.

Now we can install the packages:

Code:

cd ..
sudo dpkg -i mplayer_1.0rc2svn27632_amd64.deb mplayer-doc_1.0rc2svn27632_all.deb mencoder_1.0rc2svn27632_amd64.deb

If it complains about missing dependencies, just let's install them with apt-get.

Code:

sudo apt-get install mplayer-skins

If you want to compile mplayer with support for x264 and dvdnav, you'll need newer versions of x264, libdvdread and libdvdnav. The easiest is to get them from here: https://launchpad.net/~rvm/+archive

Last edited by rvm (2008-12-02 02:37:51)


RVM

Offline

#3 2008-09-08 11:14:34

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

A package for i386 is at last available!

BTW, I'd appreciate feedback about these packages. If you find some kind of problem with them, please report and I'll try to fix it in a future package.

http://img299.imageshack.us/img299/3271/mplayermg0.th.jpg


RVM

Offline

#4 2008-09-15 03:14:40

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

New version: SVN r27607

This time with 3 packages: mplayer, mencoder and mplayer-doc.

Available also packages for i386.


RVM

Offline

#5 2008-09-15 12:51:23

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

BTW, now mencoder is patched to support the option -ass. That allows to reencode videos with embedded subtitles on the image which will look the same as when played on mplayer.

Here an example (taken from a script I use):

Code:

#!/bin/sh

FILE=../1x01.avi
SUBS=../1x01.srt
OUTPUT=output_video.avi

mencoder -noodml -o $OUTPUT \
  -oac copy \
  -ovc xvid \
  -xvidencopts bitrate=1000:max_bframes=2 \
  -keep-pts -vf-add ass,harddup \
  -sub $SUBS -subcp latin1 \
  -ass -ass-color ffff4000 -ass-border-color 00000000 \
  -ass-force-style Bold=1,Outline=2,Shadow=3,Fontsize=16 \
  -fontconfig \
  -subcp ISO-8859-1 -ass-line-spacing 0 -ass  \
  $FILE

RVM

Offline

#6 2008-09-18 18:13:27

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

New version available: SVN r27636 (packages for i386 and amd64)

This time mplayer and mencoder are compiled with x264 support! (it wasn't easy...)

So in order to install the new mplayer packages you also need to install at least this package:
libx264-64_0.svn20080917_i386.deb
libx264-64_0.svn20080917_amd64.deb

If you want to compile mplayer yourself, you'll need the development package too:
libx264-dev_0.svn20080917_i386.deb
libx264-dev_0.svn20080917_amd64.deb

And finally two documents with the steps to compile this new version of x264:
how_to_build_x264.txt
how_to_build_yasm.txt


RVM

Offline

#7 2008-10-13 13:56:25

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

New packages for SVN r27751.

Compiled with dvdnav support!

Dependencies available here.

In order to play protected dvds you need libdvdcss2.

Two documents which explain how to compile libdvdread and libdvdnav:
how_to_build_libdvdread4.txt
how_to_build_libdvdnav4.txt


RVM

Offline

#8 2008-10-17 14:40:10

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

I managed to compile mplayer in the lauchpad PPA, so now you can install mplayer (and dependencies) adding this line to your /etc/apt/sources.list:

Code:

deb http://ppa.launchpad.net/rvm/ubuntu hardy main

This is experimental!


RVM

Offline

#9 2008-10-19 07:48:44

Darin
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Hi, I've been trying to install these packages, but I've been getting dependency issues with the "obsolete packages" that you were referring to in your first post.  However, I am not using hardy, I am using Kubuntu Intrepid Ibex.  It is asking for liblame0 and one other package.  How can I fix this? Thank you for your time.

#10 2008-10-19 07:57:29

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

I don't have Intrepid installed yet, so I couldn't test the mplayer packages on it.

Maybe you need to get liblame0 from hardy:
http://packages.ubuntu.com/hardy/liblame0


RVM

Offline

#11 2008-10-19 10:32:33

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

It seems liblame0 has been renamed to libmp3lame0 in intrepid, so install that package instead.


RVM

Offline

#12 2008-10-27 17:07:05

Moonshai
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Hello,
Thank you for all the work you make.
Do you envisaged to make a package of Mplayer and Smplayer for intrepid soon, because it is not possible to install the lib lame0 under intrepid ?

#13 2008-10-27 17:09:50

fredlkrue
Member
Registered: 2008-04-17
Posts: 98
Website

Re: MPlayer packages for Ubuntu Hardy and Intrepid

i want an mplayer build with no gui, i just want to use SMPlayer for its gui...

Offline

#14 2008-10-27 17:24:08

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Moonshai wrote:

Hello,
Thank you for all the work you make.
Do you envisaged to make a package of Mplayer and Smplayer for intrepid soon, because it is not possible to install the lib lame0 under intrepid ?

You can get experimental smplayer packages for intrepid here:
https://launchpad.net/~rvm4000/+archive

(They are untested, I just upload the sources and it's compiled there)

I'll try to compile mplayer too, but I think that would be harder.


RVM

Offline

#15 2008-10-27 19:35:20

Moonshai
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Excellent !

I hope the mplayer package will be release soon.

Thx for your quick response.

#16 2008-10-28 17:42:31

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Besides liblame0, is there any other unsatisfied dependency?


RVM

Offline

#17 2008-10-28 19:32:48

deltantor
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

rvm, im also having it complain about libopenal0a when trying to upgrade mplayer and/or mencoder

mplayer:
Depends: liblame0 (>=3.97) but it is not installable
Depends: libopenal0a  but it is not installable

#18 2008-10-28 22:49:26

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Ok. It seems libopenal0a in intrepid is libopenal1.

I built today the mplayer dependencies (yasm, x264, libdvdread and libdvdnav). I'll try tomorrow to compile mplayer.


RVM

Offline

#19 2008-10-29 17:56:06

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Packages for MPlayer SVN r27751 compiled in intrepid, available here:
https://launchpad.net/~rvm4000/+archive

Line for /etc/apt/sources.list:
deb http://ppa.launchpad.net/rvm4000/ubuntu intrepid main

These packages are untested! Please report if they work.


RVM

Offline

#20 2008-10-29 18:09:04

mutorio
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

seems to work perfectly, thanks!

#21 2008-10-30 10:11:58

Moonshai
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Great ! It works for me too !

Thx, and continue like that

#22 2008-10-31 11:39:41

kulight
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

thank you very much
works for me on intrpid

#23 2008-11-02 14:22:18

Guest102
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Wow, i been searching the net, finally found working deb for mencoder with libass

#24 2008-11-03 09:33:17

Kaizoku
Guest

Re: MPlayer packages for Ubuntu Hardy and Intrepid

Hi,

Is there a way to make -ass -embeddedfonts use the font from mkv attatchments? I keep getting missing font errors like 'DejaVu Sans' != 'MetaBoldCE-Roman'. Other than that, I find this very useful! thanks big_smile

#25 2008-11-03 13:19:16

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: MPlayer packages for Ubuntu Hardy and Intrepid

That's exactly what -embeddedfonts should do.

Are you sure those fonts are embedded in the mkv file?


RVM

Offline

Board footer

Powered by PunBB
© The SMPlayer Project