Mencoder ass support on Ubuntu 10.10 Maverick

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Mencoder ass support on Ubuntu 10.10 Maverick

Postby mathmath51 » Sun Nov 21, 2010 10:38 pm

Hi, as RVM depo doesn't have mencoder .deb for Ubuntu's latest version (10.10 Maverick) I'd like to know if any one manage to make mencoder encode ass subtitles.

I tried with the patch commonly used before (http://smplayer.svn.sourceforge.net/vie ... threv=3495) without success, even when checkout-ing the correct version of the mplayer svn repo (30662, it doesn't compile...)

Any ideas ?
mathmath51
 
Posts: 7
Joined: Fri Oct 30, 2009 9:48 pm

Re: Mencoder ass support on Ubuntu 10.10 Maverick

Postby mathmath51 » Fri Dec 10, 2010 7:02 pm

Ok, so I'm answering to myself with a working solution.
Run this script and voilà.
I know it's not subtle, you'll have an mplayer build pretty old (february 2010) but you'll have ass support.

Code: Select all
#! /bin/bash

echo
echo "=================================================="
echo "Welcome to mencoder with ass support import script"
echo "=================================================="
echo

echo
echo "===================================================================================================="
echo "Getting what you need to compile player, checkinstall & svn to create the mplayer package at the end"
echo "===================================================================================================="
echo
sudo apt-get install build-essential checkinstall subversion
sudo apt-get build-dep mplayer

svn checkout --revision 30662 svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer/
cd libavutil/
svn -r {2010-02-20} up
cd ../libavcodec/
svn -r {2010-02-20} up
cd ../libavformat/
svn -r {2010-02-20} up
cd ../libpostproc/
svn -r {2010-02-20} up
cd ../libdvdread4/
svn -r {2010-02-20} up
cd ../libdvdnav/
svn -r {2010-02-20} up
cd ..

wget "http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches/ass_support_for_mencoder_with_embeddedfonts.patch?revision=3442&pathrev=3442"
mv "ass_support_for_mencoder_with_embeddedfonts.patch?revision=3442&pathrev=3442" ass_support_for_mencoder_with_embeddedfonts.patch
patch -p0 -E -i ass_support_for_mencoder_with_embeddedfonts.patch
rm ass_support_for_mencoder_with_embeddedfonts.patch

echo
echo "===================================="
echo "Type the options you like then enter"
echo "===================================="
echo
echo -n "./configure "
read config
./configure --prefix=/usr $config

echo
echo "===================================="
echo "Type the options you like then enter"
echo "===================================="
echo
echo -n "make "
read confmake
make $confmake

sudo checkinstall -D --install=no --fstrans=no --pakdir "mplayer_build" --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default --pkgversion "3:1.0.ASS-Support~svn-$(grep "#define VERSION" version.h | cut -d"-" -f2)"
sudo make uninstall

cp mplayer_build/mplayer*.deb ../
cd ..
sudo rm -rf mplayer

echo
echo "==========================================================="
echo "Now you should have a beautiful .deb ready for installation"
echo "               :) :) :) :) Enjoy :) :) :) :)               "
echo "==========================================================="
echo
mathmath51
 
Posts: 7
Joined: Fri Oct 30, 2009 9:48 pm

Re: Mencoder ass support on Ubuntu 10.10 Maverick

Postby Devilstar » Wed Dec 15, 2010 5:22 pm

and what about compiling mplayer with ffmpeg-mt support? where can i find all necessary libavcodec, libavformat, libdvdnav?
if i try to compile mplayer with the newest ffmpeg-mt libs (using git), i'll get errors...
Devilstar
 
Posts: 1
Joined: Wed Dec 15, 2010 5:13 pm

Re: Mencoder ass support on Ubuntu 10.10 Maverick

Postby mathmath51 » Sat Dec 18, 2010 11:35 am

Well just send money to RVM (https://launchpad.net/~rvm/+archive/mplayer) or the official mplayer team (http://www.mplayerhq.hu) to relaese a patch for the latest revision ;)
mathmath51
 
Posts: 7
Joined: Fri Oct 30, 2009 9:48 pm

Re: Mencoder ass support on Ubuntu 10.10 Maverick

Postby btanoue » Wed Dec 29, 2010 7:08 pm

Thanks for this awesome script!

Worked like a charm! No more stuck subtitles.

Thanks Again,
btanoue
btanoue
 
Posts: 15
Joined: Tue Dec 28, 2010 3:35 am

Compiling mplayer with ffmpeg-mt support on Maverick

Postby lentschi » Fri Feb 04, 2011 6:37 pm

Devilstar wrote:and what about compiling mplayer with ffmpeg-mt support? where can i find all necessary libavcodec, libavformat, libdvdnav?
if i try to compile mplayer with the newest ffmpeg-mt libs (using git), i'll get errors...


Well I got mplayer with ffmpeg-mt compiled and running on Maverick :) - I didn't write down all the commands that were necessary however - sorry. :oops: It wasn't too difficult though.
I followed those two guides (the first one references the second):
http://ubuntuforums.org/showthread.php?t=1049449
http://ubuntuforums.org/showthread.php?t=1024592

...BUT those guides are quite OLD - So on Maverick some things were different for me:
  • The live555 and libopencore-amr libs from the repositories worked fine with the mplayer svn version I used (SVN-r32841-4.4.5), so I didn't download them using git as suggested (I only fetched x264).
  • You will certainly have to adept the list of libraries that shall be installed by 'apt-get install ...'. One good method to find out about those required libs is described in the second guide:
    Code: Select all
    sudo apt-get build-dep mplayer
  • Download ffmpeg from git (as described) and copy it into the 'mplayer' folder completely (Copying the three 'libav...' folders separately as suggested didn't work for me!). Then download libswscale using
    Code: Select all
    git clone git://gitorious.org/libswscale/mainline.git
    Rename it to 'libswscale' and move it into 'ffmpeg'. (The 'libswscale' is empty for ffmpeg-mt but there is a note in the git repository that this should be fetched manually.)
lentschi
 
Posts: 1
Joined: Fri Feb 04, 2011 6:09 pm


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 1 guest