« Back

Video Encoding

VisionOntv are undertaking the re-encoding of the entire Schnews archive into mpeg4 format. This can be done on Mac using Cleaner and in Windoze with Adobe Premier. We'd have liked to be able to do this fron a desktop application in Ubuntu Linux in an easy manner that could be followed by anyone in the community, but we haven't as yet found a way.

From our Schnews encoding party 17/1/2011

A geeky way using the Ubuntu command line#

Use the mencoder tool in Linux (in this case Ubuntu)

Problem : the standard version of mencoder that is provided with Ubuntu does not have inbuilt AAC encoding support. You will get an error message : MPlayer was compiled without libfaac.

To get it working you need to perform the following commands (which can be copied and pasted) :

sudo apt-get remove mencoder

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

sudo apt-get --yes install app-install-data-medibuntu apport-hooks-medibuntu

sudo apt-get install mencoder

The new version of mencoder should now be installed WITH AAC support!!

Now mencoder can be used with the following command in a terminal :

mencoder filetobeconverted.avi -o convertedfile.mp4 -oac faac -ovc x264 -vf scale=640:480 -ofps 25

An example :

mencoder /home/smallblack/Desktop/climateguide1and2/climateguide2.avi -o /home/smallblack/Desktop/climateguide1and2/climateguide2.mp4 -oac faac -ovc x264 -vf scale=640:480 -ofps 25

-oac faac = sets the audio encoding to AAC

-ovc x264 = sets the video encoding to x264

-vf scale=640x480 = sets the output resolution

-ofps 25 = sets the output frame rate

0 Attachments
13464 Views
Average (2 Votes)
The average rating is 3.5 stars out of 5.
Comments