Skip to main content
Background Image
  1. Teches/

FFmpeg - Convert Any Video Format to MP4

·79 words·1 min· ·
Wildan
Author
Wildan
An Ordinary Human Being

Sebetulnya, perintahnya sangat mudah, tapi supaya saya lebih mudah mengingatnya, maka saya akan abadikan dalam artikel ini1:

ffmpeg -i inputfile.ogv -c:v libx264 -c:a aac outputfile.mp4

Keterangan:

  1. -i inputfile.ogv adalah file video yang akan kita ubah formatnya, bisa video berformat .ogv, .mkv, .avi, .mov, dan lain-lain.
  2. -c:v libx264 setting video codec ke libx264 untuk MP4 (video encoding H.264).
  3. -c:a aac setting audio codec ke aac (advanced audio codec) yang umumnya digunakan untuk MP4.
  4. outputfile.mp4 output file MP4 yang diharapkan.

  1. ChatGPT ↩︎

Related

FFmpeg - Convert MP4 to GIF
·211 words·1 min
My simple note in regards of converting video (MP4) to GIF.
Screen Recorder with FFmpeg
·283 words·2 mins
My simple note in regards of screen recording using ffmpeg.
Mystiq - FFmpeg's GUI
·438 words·3 mins
Do you know FFmpeg? This is the GUI version of it. (If you don’t like FFmpeg CLI version, this is the your right choice!)