How to install ffmpeg and ffprobe?



After connecting to ssh, how do I go about installing ffmpeg and ffprobe?

I tried to login as root or sudo but it didn’t allow me:

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes greate responsibility.

abcd is not in the sudoers file. This incident will be reported.

So when I try the following:

apt-get install build-essential libmp3lame-dev libvorbis-dev libtheora-dev 
libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev

I get:

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Any help will be appreciated.