Convert ogv to mp4

I created a screencast utilizing recordmydesktop which produed a .ogv file. I think this is an OGG file encoded making use of the Theora codec. I"m wondering, just how deserve to 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.mp4However before, this produces an evil blob of dark greens and grays once trying to play it aget in mplayer. I then tried to get even more innovative, utilizing 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.mp4But, the outcome was the same.

If anyone has any type of insight right into what might be the finest way to attain this job, I"d appreciate it if you might let me know.

You watching: Convert ogv to mp4


ffmpeg codecs
Share
Improve this question
Follow
edited Apr 13 "17 at 12:24
*

Community♦
1
asked Nov 8 "10 at 21:45
*

jbeard4jbeard4
1,17122 gold badges1212 silver badges1818 bronze badges
2
Add a comment |

3 Answers 3


Active Oldest Votes
34

Arista Transcoder
*

or from command also line

superform apt-obtain install arista -yYou have the right to use this software, that I always usage and also I think it"s really good. To convert an ogv file to mp4 you have to select any kind of Sony device.

*


Share
Improve this answer
Follow
edited May 15 "17 at 18:16
*

Anwar
69.4k2828 gold badges180180 silver badges292292 bronze badges
answered Nov 8 "10 at 21:53
*

DrKenobiDrKenobi
5,90255 gold badges2222 silver badges2525 bronze badges
10
| Sjust how 5 even more comments
53
This is an older question now however a modern-day FFmpeg (under Xenial Xerus and releases adhering to this) would certainly convert an ogv file in the complying with manner:

ffmpeg -i input.ogv -c:v libx264 -preset veryslow -crf 22 -c:a libmp3lame -qscale:a 2 -ac 2 -ar 44100 output.mp4and this have to create an excellent file.

Extra Tweaks:

Some tweaks to these settings are even more than feasible. Here are some suggestions:

If you wanted a collection bitrate for the mp3 sound you would certainly readjust the establishing -qscale:a 2 to the setting -b:a 196k. (Use a higher or lower worth for bitrate as you wish.)If you wanted to obtain a far better top quality video output decrease the crf setting to somepoint like: -crf 18. Bear in mind that file dimension increases as the quality establishing is lowered.
Share
Improve this answer
Follow
edited Mar 19 "19 at 5:45
answered May 22 "14 at 6:17
*

andrew.46anattracted.46
30.9k1717 gold badges120120 silver badges198198 bronze badges
7
| Show 2 even more comments
5
FF Multi Converter is an additional great option, not just for effective .ogv to .mp4 conversation. Simple, user-friendly and elegant interconfront, provides a complete log of convariation details, supports a substantial list of layouts (check out below), gets the job done quickly.

See more: Hard Reset Samsung N9005 Galaxy Note 3, How To Reset Note 3, How To

*

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, wmvAnd any various other format sustained by ffmpeg.

Image formats:

bmp, cgm, dpx, emf, eps, fpx, gif, jhuge, jng, jpeg, mrsid, p7, pdf, psymbol, png, ppm, psd, rad, tga, tif, webp, xpmAnd any type of various other format sustained by ImageMagick.

See more: New Method 2020 All Samsung S7 Edge Android 8 Bypass Google Galaxy S7

Document file formats:

doc -> odt, pdfhtml -> odtodp -> pdf, pptods -> pdfodt -> doc, html, pdf, rtf, sxw, txt, xmlppt -> odprtf -> odtsdw -> odtsxw -> odttxt -> odtxls -> odsxml -> doc, odt, pdfInstalling on Ubuntu -

To add the ppa to your device sources and also install ffmulticonverter, open up a terminal and also type:

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

By default ffmulticonverter will carry all of its optional dependencies (ffmpeg, pythonmagick, unoconv) too.

If you wish, you have the right to install ffmulticonverter alone and then install only the optional dependencies you favor manually:

superform apt-gain install --no-install-recommends ffmulticonverter

Then you deserve to install the remainder of the dependencies independently, depending upon what you desire to convert:

If you wish to convert videos, install ffmpeg: sucarry out apt-gain install ffmpeg If you wish to convert files, install unoconv: suexecute apt-get install unoconvIf you wish to transform imeras, install python imagemagick: superform apt-obtain install python-pythonmagick