How to install a new version of VLC

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help

How to install a new version of VLC

Postby prisma on Thu Sep 27, 2012 8:44 pm

I got VDPAU working, but at the momment can only use it with mplayer2 and only if i define some paramaters in the launch command.

My version of VLC does not suport vdpau... How to I compile a deb package from source so I can install it though the package manager?
prisma
Level 1
Level 1
 
Posts: 19
Joined: Fri Feb 17, 2012 11:47 am

Linux Mint is funded by ads and donations.
 

Re: How to install a new version of VLC

Postby lizbeth on Sun Oct 28, 2012 6:49 pm

first edit your sources list

in a terminal

Code: Select all
sudo pluma /etc/apt/sources.list


add this repository

Code: Select all
deb-src http://ftp.us.debian.org/debian/ sid main


save and exit

then

Code: Select all
sudo apt-get update
sudo apt-get install fakeroot
sudo apt-get build-dep vlc


then

Code: Select all
mkdir /home/vlc
cd vlc/
apt-get source vlc


after this runs, a subdirectory with the version number of vlc will be created. I don't know what it is off hand.

Code: Select all
cd vlc-version#
dpkg-buildpackage -rfakeroot -us -uc


this will create a deb package that you can then install on your system and will display the name on the .deb file on your terminal screen

Code: Select all
cd /home/vlc
dpkg -i <output-name-of-the-file>.deb


whammo! you are done

Does vlc make use of vdpau? Maybe try SMPlayer?
lizbeth
Level 4
Level 4
 
Posts: 314
Joined: Thu Mar 31, 2011 5:44 pm

Re: How to install a new version of VLC

Postby lizbeth on Sun Oct 28, 2012 7:12 pm

of course if you download the source, there is another way to get a .deb file

here's the page for vlc 2.0.4. It contains the tarball and a page with other tarballs for depenecies for vlc

Code: Select all
http://www.videolan.org/vlc/download-sources.html


the method for building a .deb from tarball is the same for vlc as for all of its dependencies. Downloand th vlc tarball here:

Code: Select all
http://download.videolan.org/pub/videolan/vlc/2.0.4/vlc-2.0.4.tar.xz


open a terminal

Code: Select all
sudo apt-get install fakeroot dh-make
cd Downloads
tar -zxf vlc-2.0.4.tar.xz
cd vlc-2.0.4
dh_make


dh_make will then ask you if you want to create a: "single binary, multiple binary, library, kernel module or cdbs" and ask you to complete the package maintainer fields.

You might then have to tweak the debian/rules file (e.g. to set configuration options) or set a shell variable. It all depends on the package in question.

Code: Select all
dpkg-buildpackage


again read the terminal for the output file name of the .deb

Code: Select all
dpkg -i <vlc-output-file-name>.deb


Easy enough?
lizbeth
Level 4
Level 4
 
Posts: 314
Joined: Thu Mar 31, 2011 5:44 pm

Re: How to install a new version of VLC

Postby prisma on Sun Oct 28, 2012 7:51 pm

Thank you so much lizbeth, this is fairly simple, yes.

Still baffling that, despite being relatively simple, this sort of info is still sparse. I had no idea I could get the package source running apt-get with the 'source' parameter.

However, I'm still sceptical about creating deb packages by running dh_make against a raw upstream. Not sure it will be go very smoothly, but well, we'll see.

Either way, big thanks. SMPlayer does render video using vdpau but there's still quite a bit of interlacing, errors are kind of frequent, gui is still limited and I still need to manually pass a parameter using a terminal.
prisma
Level 1
Level 1
 
Posts: 19
Joined: Fri Feb 17, 2012 11:47 am

Re: How to install a new version of VLC

Postby lizbeth on Sun Oct 28, 2012 9:10 pm

My vote is for adding the sid source as it gives you access to debian sources for your builds and includes all the extra files that comes with it. Whenever possible, I'd go with this method. Also your system won't update files from the sid source directory and bork your system.
lizbeth
Level 4
Level 4
 
Posts: 314
Joined: Thu Mar 31, 2011 5:44 pm


Return to Sound, Multimedia & Codecs

Who is online

Users browsing this forum: No registered users and 3 guests