Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I created a screencast using recordmydesktop which produed a .ogv file. I believe this is an OGG file encoded using the Theora codec. I'm wondering, how can I convert this to MPEG4/H.264? I've tried to use ffmpeg in a naive way, as follows:

ffmpeg -i demo.ogv -f mp4 demo.mp4

However, this produces an evil blob of dark greens and grays when trying to play it again in mplayer. I then tried to get more sophisticated, using the command-line flags specified here: Converting a video file in arbitrary file format into MPEG4/H.264?

ffmpeg -i demo.ogv -s 352x288 -vcodec libx264 -vpre default -acodec libmp3lame -ab 192k -ac 2 -ar 44100 -f mp4 demo.mp4

But, the result was the same.

If anyone has any insight into what might be the best way to accomplish this task, I'd appreciate it if you could let me know.

share|improve this question
add comment

6 Answers

up vote 19 down vote accepted

Arista Transcoder Install Arista Transcoder

You can use this software, that I always use and I think it's really good. To convert an ogv file to mp4 you should choose any Sony device.

alt text

share|improve this answer
This totally did the trick. –  jbeard4 Nov 9 '10 at 1:58
maybe also mention the Nautilus plugin? –  Tshepang Nov 9 '10 at 23:03
@Tshepang, I've never used the Nautilus plugin. How is it called? I want to try it now! –  DrKenobi Nov 10 '10 at 0:42
nautilus-arista –  Tshepang Nov 10 '10 at 0:49
@Tshepang, I can't try it now :( I'm using 10.04 LTS and the plugin is available for 10.10 and 11.04. I'll have to wait for my new laptop to try it. Thanks for the info! –  DrKenobi Nov 10 '10 at 2:51
show 1 more comment

the ffmpeg in ubuntu cant encoded x264 becouse some lincencing issues, you should compile it by yourself or use a external repository like Medibuntu to get a version of ffmpeg that could encode x264.

share|improve this answer
Can you point me to a resource that describes how to install the x264-enabled ffmpeg from Medibuntu? I have the repository set up, but it's not clear whether there is a special ffmpeg version that I can download from there. Can you perhaps tell me the package name? –  jbeard4 Nov 8 '10 at 22:16
add comment

Arista looks cool but when I tried to use it, it complained about requiring some codecs which it couldn't find, and I was kind of stuck.

I then turned to PiTiVi which was already installed on my machine, and it did the job perfectly.

share|improve this answer
add comment

Here's a tutorial how to compile ffmpeg x264: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

share|improve this answer
Welcome to AskUbuntu! While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Oyibo Oct 27 '12 at 15:18
add comment

Just want to mention that I successfully uploaded an ogv video to Youtube.

I guess one could follow that path and then use an online Youtube to mp4 converter.

share|improve this answer
add comment

FF Multi Converter is another great choice, not only for successful .ogv to .mp4 conversation. Simple, user-friendly and elegant interface, gives a complete log of conversion details, supports a huge list of formats (see below), gets the job done quickly.

enter image description here

Audio/Video formats:

aac, ac3, afc, aiff, amr, asf, au, avi, dvd, flac, flv, mka, mkv, mmf, mov, mp3, mp4, mpg, ogg, ogv, psp, rm, spx, vob, wav, webm, wma, wmv

And any other format supported by ffmpeg.

Image formats:

bmp, cgm, dpx, emf, eps, fpx, gif, jbig, jng, jpeg, mrsid, p7, pdf, picon, png, ppm, psd, rad, tga, tif, webp, xpm

And any other format supported by ImageMagick.

Document file formats:

doc -> odt, pdf
html -> odt
odp -> pdf, ppt
ods -> pdf
odt -> doc, html, pdf, rtf, sxw, txt, xml
ppt -> odp
rtf -> odt
sdw -> odt
sxw -> odt
txt -> odt
xls -> ods
xml -> doc, odt, pdf

Installing on Ubuntu - [Stable release]

To add the ppa to your system resources and install ffmulticonverter, open a terminal and type:

sudo add-apt-repository ppa:ffmulticonverter/stable
sudo apt-get update
sudo apt-get install ffmulticonverter

By default ffmulticonverter will bring all of its optional dependencies (ffmpeg, pythonmagick, unoconv) as well.

If you wish, you can install ffmulticonverter alone and then install only the optional dependencies you like manually:

sudo apt-get install --no-install-recommends ffmulticonverter

Then you can install the rest of the dependencies separately, depending on what you want to convert:

If you wish to convert videos, install ffmpeg: sudo apt-get install ffmpeg
If you wish to convert documents, install unoconv: sudo apt-get install unoconv
If you wish to convert images, install python imagemagick: sudo apt-get install python-pythonmagick

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.