rickyrockrat
August 28th, 2011, 08:32 PM
Hi,
Well, I've been frustrated with a GUI multi-media player. I like getting the previews, but when you back up your DVDs to disk, it seems mplayer has to be invoked from the command line - which is REALLY inconvienent if you just want to watch a movie, so I patched MPlayer to behave similar to VLC in that it recognizes DVD structures on disk, so when you do a dvdbackup -M, gmplayer will now play the DVD like it should.
NOTE: someone has written a very nice thread (except for the multiple commands thrown together) on this as well. You might try this:
http://ubuntuforums.org/showthread.php?t=1542240
Then you will have to split the single cd/svn/configure/make command up so make is called all by itself. You can split that command up by removing all the '&& \' from the lines.
Run the patch command just before make, then add --enable-gui to the configure line. (*sigh*, nothing is ever simple.)
If not, read on.
You're going to have to use a terminal for this...
You need to bring in the mediubuntu repo:
sudo wget -O /etc/apt/sources.list.d/medibuntu.list
http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
sudo apt-get update
sudo apt-get install medibuntu-keyring
sudo apt-get update
sudo apt-get upgrade
Now you will need to get the development headers like so: If you are running Lucid like I am, you'll have to build some of your own libs (see end of post for details)
sudo apt-get install libavcodec-extra-* libavdevice-extra-* libavfilter-extra-* \
libavformat-extra-* libpostproc-extra-* libavutil-extra-* \
libdvdcss-dev libswscale-extra-* libdvdcss2 aacgain aacplusenc \
alsa-firmware app-install-data-medibuntu apport-hooks-medibuntu \
ices non-free-codecs w64codecs libdvdnav4 libdvdread4 libdvdnav-dev \
libdvdread-dev liblircclient-dev lirc lirc-modules-source lirc-x \
libmpcdec-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmpg123-dev \
libmp4v2-dev libmpeg4ip-dev libavc1394-dev libavcodec-dev libavdevice-dev \
libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev \
libavbin-dev libavifile-0.7-dev libvalhalla-dev libmpg123-0 libfaad-dev \
libgsm1-dev libogg-dev libschroedinger-dev libspeex-dev libtheora-dev \
libvorbis-dev libx11-dev libxext-dev zlib1g-dev libraw1394-dev \
libdc1394-22-dev libavutil-dev libao-dev libflac-dev libmad0-dev libmad0-dev \
libmtp-dev libnice-dev libsamplerate0-dev libsdl1.2-dev libspeexdsp-dev \
libtagc0-dev libvorbis-dev libvorbisenc2 libvorbis0a libwavpack-dev \
libxine-dev libxine1-ffmpeg libfaac-dev libvpx-dev libopenjpeg-dev \
libdirac-dev libx264-dev libxvidcore-dev libdvd-dev libdv4-dev libdca-dev \
liba52-0.7.4-dev libtwolame-dev liblzo2-dev libdts-dev
Was that fun for you? There's lots of dependencies.
make a directory to do the rest:
mkdir build
cd build
Now, grab MPlayer source:
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
Copy the attached patch (to build):
wget -O patch.txt http://ubuntuforums.org/attachment.php?attachmentid=200988&d=1314561202
Extract the source
tar -xjf ../MPlayer-1.0rc4.tar.bz2
Goto to the build directory
cd MPlayer-1.0rc4
Patch the source (note, if this is not a clean directory, use the exact name of the patch file)
patch -p1 < ../*.txt
Configure it:
./configure ./configure --enable-gui --enable-lirc
Check the printout (scroll a couple pages up) to make sure you've got all the pieces you want enabled. It prints a list of enabled and disabled modules.
Make it:
make
Install it (note: you can run w/out installing, just do ./mplayer -gui):
sudo make install-gui
Now when you Open File..., and browse to a directory that contains VIDEO_TS in it, mplayer assumes that you want to play a DVD, and it pops up a dialog asking if you want to NAV (i.e. DVD menus) or play title 1-5 (button for each). Title 1 is usually the main feature. I need to go look at the DVD, scan the titles, then present the list, but for now it's hard-coded and will work for 90% of the cases.
For Lucid,
Here are my notes and how I built each one. I also removed the -devs using apt (sudo apt-get remove libdvdread-dev libdvdnav-dev libx264-dev libdca-dev)
build Install libdvdread 4.1.x (use autogen.sh first, ./configure, make, make install)
build install libdvdnav 4.1.x (use autogen.sh first, ./configure, make, make install)
build install x264x ./configure --enable-shared --enable-static
build install libdca ./bootstrap, ./configure, make, make install
Links:
libdca -
ftp://ftp5.uk.freebsd.org/pub/FreeBSD/ports/distfiles/libdca-0.0.5.tar.bz2
http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2
libdvdnav -
http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdread-4.1.3.tar.bz2
https://launchpadlibrarian.net/22760800/libdvdread_4.1.3.orig.tar.gz
libdvdread -
http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2
https://launchpadlibrarian.net/22883494/libdvdnav_4.1.3.orig.tar.gz
x264:
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20110827-2245-stable.tar.bz2
THEN build mplayer. Again, these are for lucid.
Cheers.
Well, I've been frustrated with a GUI multi-media player. I like getting the previews, but when you back up your DVDs to disk, it seems mplayer has to be invoked from the command line - which is REALLY inconvienent if you just want to watch a movie, so I patched MPlayer to behave similar to VLC in that it recognizes DVD structures on disk, so when you do a dvdbackup -M, gmplayer will now play the DVD like it should.
NOTE: someone has written a very nice thread (except for the multiple commands thrown together) on this as well. You might try this:
http://ubuntuforums.org/showthread.php?t=1542240
Then you will have to split the single cd/svn/configure/make command up so make is called all by itself. You can split that command up by removing all the '&& \' from the lines.
Run the patch command just before make, then add --enable-gui to the configure line. (*sigh*, nothing is ever simple.)
If not, read on.
You're going to have to use a terminal for this...
You need to bring in the mediubuntu repo:
sudo wget -O /etc/apt/sources.list.d/medibuntu.list
http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
sudo apt-get update
sudo apt-get install medibuntu-keyring
sudo apt-get update
sudo apt-get upgrade
Now you will need to get the development headers like so: If you are running Lucid like I am, you'll have to build some of your own libs (see end of post for details)
sudo apt-get install libavcodec-extra-* libavdevice-extra-* libavfilter-extra-* \
libavformat-extra-* libpostproc-extra-* libavutil-extra-* \
libdvdcss-dev libswscale-extra-* libdvdcss2 aacgain aacplusenc \
alsa-firmware app-install-data-medibuntu apport-hooks-medibuntu \
ices non-free-codecs w64codecs libdvdnav4 libdvdread4 libdvdnav-dev \
libdvdread-dev liblircclient-dev lirc lirc-modules-source lirc-x \
libmpcdec-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmpg123-dev \
libmp4v2-dev libmpeg4ip-dev libavc1394-dev libavcodec-dev libavdevice-dev \
libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev \
libavbin-dev libavifile-0.7-dev libvalhalla-dev libmpg123-0 libfaad-dev \
libgsm1-dev libogg-dev libschroedinger-dev libspeex-dev libtheora-dev \
libvorbis-dev libx11-dev libxext-dev zlib1g-dev libraw1394-dev \
libdc1394-22-dev libavutil-dev libao-dev libflac-dev libmad0-dev libmad0-dev \
libmtp-dev libnice-dev libsamplerate0-dev libsdl1.2-dev libspeexdsp-dev \
libtagc0-dev libvorbis-dev libvorbisenc2 libvorbis0a libwavpack-dev \
libxine-dev libxine1-ffmpeg libfaac-dev libvpx-dev libopenjpeg-dev \
libdirac-dev libx264-dev libxvidcore-dev libdvd-dev libdv4-dev libdca-dev \
liba52-0.7.4-dev libtwolame-dev liblzo2-dev libdts-dev
Was that fun for you? There's lots of dependencies.
make a directory to do the rest:
mkdir build
cd build
Now, grab MPlayer source:
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
Copy the attached patch (to build):
wget -O patch.txt http://ubuntuforums.org/attachment.php?attachmentid=200988&d=1314561202
Extract the source
tar -xjf ../MPlayer-1.0rc4.tar.bz2
Goto to the build directory
cd MPlayer-1.0rc4
Patch the source (note, if this is not a clean directory, use the exact name of the patch file)
patch -p1 < ../*.txt
Configure it:
./configure ./configure --enable-gui --enable-lirc
Check the printout (scroll a couple pages up) to make sure you've got all the pieces you want enabled. It prints a list of enabled and disabled modules.
Make it:
make
Install it (note: you can run w/out installing, just do ./mplayer -gui):
sudo make install-gui
Now when you Open File..., and browse to a directory that contains VIDEO_TS in it, mplayer assumes that you want to play a DVD, and it pops up a dialog asking if you want to NAV (i.e. DVD menus) or play title 1-5 (button for each). Title 1 is usually the main feature. I need to go look at the DVD, scan the titles, then present the list, but for now it's hard-coded and will work for 90% of the cases.
For Lucid,
Here are my notes and how I built each one. I also removed the -devs using apt (sudo apt-get remove libdvdread-dev libdvdnav-dev libx264-dev libdca-dev)
build Install libdvdread 4.1.x (use autogen.sh first, ./configure, make, make install)
build install libdvdnav 4.1.x (use autogen.sh first, ./configure, make, make install)
build install x264x ./configure --enable-shared --enable-static
build install libdca ./bootstrap, ./configure, make, make install
Links:
libdca -
ftp://ftp5.uk.freebsd.org/pub/FreeBSD/ports/distfiles/libdca-0.0.5.tar.bz2
http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2
libdvdnav -
http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdread-4.1.3.tar.bz2
https://launchpadlibrarian.net/22760800/libdvdread_4.1.3.orig.tar.gz
libdvdread -
http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2
https://launchpadlibrarian.net/22883494/libdvdnav_4.1.3.orig.tar.gz
x264:
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20110827-2245-stable.tar.bz2
THEN build mplayer. Again, these are for lucid.
Cheers.