Posts

Tuesday, 12 February 2019

How to convert ogv to mp4 in Ubuntu16.04

How to convert ogv file to mp4 file

I am using Ubuntu16.04 and RecordMyDesktop to record my screen. This program makes .ogv file as its output so I wanted to convert it to mp4 file.

wget http://ffmpeg.gusari.org/static/32bit/ffmpeg.static.32bit.latest.tar.gz
tar xzvf ffmpeg.static.32bit.latest.tar.gz

Get ffmpeg like above, or use sudo like below.

sudo apt get install ffmpeg

Then run it. 'out-1.ogv' is the input file. The value 5 after -crf controls the quality. The larger number, lower quality. If you want to resize the video file, control this number.

ffmpeg -i input.ogv -aq 80 -vcodec libx264 -preset slow -crf 5 -threads 0 output.mp4



No comments:

Post a Comment

[ new blog ]

new blog https://jihyo-jeon.github.io/